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
3
#include "
ExampleFragmentSelector.h
"
4
5
void
ExampleFragmentSelector::CreateHistograms
()
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
21
void
ExampleFragmentSelector::FillHistograms
()
22
{
23
fH2
.at(
"hp_charge"
)->Fill(
fFragment
->
GetChannelNumber
(),
fFragment
->
GetCharge
());
24
fH2
.at(
"hp_energy"
)->Fill(
fFragment
->
GetChannelNumber
(),
fFragment
->
GetEnergy
());
25
}
ExampleFragmentSelector.h
ExampleFragmentSelector::fFragment
TFragment * fFragment
Definition
ExampleFragmentSelector.h:23
ExampleFragmentSelector::FillHistograms
void FillHistograms()
Definition
ExampleFragmentSelector.C:21
ExampleFragmentSelector::CreateHistograms
void CreateHistograms()
Definition
ExampleFragmentSelector.C:5
TDetectorHit::GetCharge
virtual Float_t GetCharge() const
!
Definition
TDetectorHit.cxx:54
TDetectorHit::GetEnergy
virtual double GetEnergy(Option_t *opt="") const
Definition
TDetectorHit.cxx:69
TDetectorHit::GetChannelNumber
virtual int GetChannelNumber() const
!
Definition
TDetectorHit.cxx:214
TGRSISelector::fH1
TGRSIMap< std::string, TH1 * > fH1
Definition
TGRSISelector.h:65
TGRSISelector::fH2
TGRSIMap< std::string, TH2 * > fH2
Definition
TGRSISelector.h:66
TGRSISelector::fHSparse
TGRSIMap< std::string, THnSparseF * > fHSparse
Definition
TGRSISelector.h:70
TGRSISelector::GetOutputList
TList * GetOutputList() const override
this does the same as TSelector::GetOutputList()
Definition
TGRSISelector.h:53
GRSIProof
ExampleFragmentSelector.C
GRSISort ("v4.0.0.5") Reference Guide Generated on Mon Feb 3 2025 16:38:04.