GRSISort "v4.0.0.5"
An extension of the ROOT analysis Framework
Loading...
Searching...
No Matches
ExampleFragmentHelper.cxx
Go to the documentation of this file.
2
4{
5 fH2[slot]["hp_charge"] = new TH2D("hp_charge", "#gamma Charge vs. Channel", 128, 0., 128., 12000, 0., 12000.);
6 fH2[slot]["hp_energy"] = new TH2D("hp_energy", "#gamma Energy vs. Channel", 128, 0., 128., 16000, 0., 8000.);
7}
8
9void ExampleFragmentHelper::Exec(unsigned int slot, TFragment& frag)
10{
11 fH2[slot].at("hp_charge")->Fill(frag.GetChannelNumber(), frag.GetCharge());
12 fH2[slot].at("hp_energy")->Fill(frag.GetChannelNumber(), frag.GetEnergy());
13}
void CreateHistograms(unsigned int slot) override
Virtual helper function that the user uses to create their histograms.
void Exec(unsigned int slot, TFragment &frag)
virtual Float_t GetCharge() const
!
virtual double GetEnergy(Option_t *opt="") const
virtual int GetChannelNumber() const
!
std::vector< TGRSIMap< std::string, TH2 * > > fH2
Definition TGRSIHelper.h:49