GRSISort "v4.0.0.5"
An extension of the ROOT analysis Framework
Loading...
Searching...
No Matches
ExampleFragmentSelector.C
Go to the documentation of this file.
1#define ExampleFragmentSelector_cxx
2// The class definition in ExampleFragmentSelector.h has been generated automatically
4
6{
7 fH2["hp_charge"] = new TH2D("hp_charge", "#gamma Charge vs. Channel", 128, 0., 128., 12000, 0., 12000.);
8 fH2["hp_energy"] = new TH2D("hp_energy", "#gamma Energy vs. Channel", 128, 0., 128., 16000, 0., 8000.);
9
10 for(auto it : fH1) {
11 GetOutputList()->Add(it.second);
12 }
13 for(auto it : fH2) {
14 GetOutputList()->Add(it.second);
15 }
16 for(auto it : fHSparse) {
17 GetOutputList()->Add(it.second);
18 }
19}
20
22{
23 fH2.at("hp_charge")->Fill(fFragment->GetChannelNumber(), fFragment->GetCharge());
24 fH2.at("hp_energy")->Fill(fFragment->GetChannelNumber(), fFragment->GetEnergy());
25}
virtual Float_t GetCharge() const
!
virtual double GetEnergy(Option_t *opt="") const
virtual int GetChannelNumber() const
!
TGRSIMap< std::string, TH1 * > fH1
TGRSIMap< std::string, TH2 * > fH2
TGRSIMap< std::string, THnSparseF * > fHSparse
TList * GetOutputList() const override
this does the same as TSelector::GetOutputList()