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.
1
#include "
ExampleFragmentHelper.hh
"
2
3
void
ExampleFragmentHelper::CreateHistograms
(
unsigned
int
slot)
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
9
void
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
}
ExampleFragmentHelper.hh
ExampleFragmentHelper::CreateHistograms
void CreateHistograms(unsigned int slot) override
Virtual helper function that the user uses to create their histograms.
Definition
ExampleFragmentHelper.cxx:3
ExampleFragmentHelper::Exec
void Exec(unsigned int slot, TFragment &frag)
Definition
ExampleFragmentHelper.cxx:9
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
TFragment
Definition
TFragment.h:29
TGRSIHelper::fH2
std::vector< TGRSIMap< std::string, TH2 * > > fH2
Definition
TGRSIHelper.h:49
examples
ExampleFragmentHelper.cxx
GRSISort ("v4.0.0.5") Reference Guide Generated on Mon Feb 3 2025 16:38:04.