GRSISort "v4.0.0.5"
An extension of the ROOT analysis Framework
|
Definition at line 9 of file ComptonPolarimetryHelper.hh.
Public Types | |
using | Result_t = std::map<std::string, TList> |
Public Member Functions | |
ComptonPolarimetryHelper (TList *list) | |
ROOT::RDF::RResultPtr< std::map< std::string, TList > > | Book (ROOT::RDataFrame *d) override |
void | CreateHistograms (unsigned int slot) override |
virtual void | EndOfSort (std::shared_ptr< std::map< std::string, TList > > &) |
void | Exec (unsigned int slot, TGriffin &fGriffin, TGriffinBgo &fGriffinBgo) |
void | Finalize () |
std::string | GetActionName () const |
std::shared_ptr< std::map< std::string, TList > > | GetResultPtr () const |
void | Initialize () |
void | InitTask (TTreeReader *, unsigned int) |
std::string & | Prefix () |
std::string | Prefix () const |
void | Prefix (const std::string &val) |
virtual void | Setup () |
Protected Member Functions | |
TPPG * | Ppg () |
TRunInfo * | RunInfo () |
TUserSettings * | UserSettings () |
Protected Attributes | |
std::vector< TGRSIMap< std::string, GCube * > > | fCube |
std::map< std::string, TCutG * > | fCuts |
std::vector< TGRSIMap< std::string, TH1 * > > | fH1 |
std::vector< TGRSIMap< std::string, TH2 * > > | fH2 |
std::vector< TGRSIMap< std::string, TH3 * > > | fH3 |
std::vector< std::shared_ptr< std::map< std::string, TList > > > | fLists |
std::vector< TGRSIMap< std::string, TObject * > > | fObject |
TPPG * | fPpg {nullptr} |
std::string | fPrefix {"TGRSIHelper"} |
TRunInfo * | fRunInfo {nullptr} |
std::vector< TGRSIMap< std::string, GHSym * > > | fSym |
std::vector< TGRSIMap< std::string, TTree * > > | fTree |
TUserSettings * | fUserSettings {nullptr} |
Private Member Functions | |
int | CheckEnergy (double energy, int index=-1) const |
void | CheckSizes (unsigned int slot, const char *usage) |
bool | Coincident (TGriffinHit *grif1, TGriffinHit *grif2) const |
bool | ExcludeCrystal (int arraynumber) const |
bool | ExcludeDetector (int detector) const |
double | TimeDiff (TGriffinHit *grif1, TGriffinHit *grif2) const |
Private Attributes | |
int | fBins {3000} |
std::vector< int > | fExcludedCrystals |
std::vector< int > | fExcludedDetectors |
std::array< double, 2 > | fGammaGateHigh = {1176., 1335.} |
std::array< double, 2 > | fGammaGateLow = {1170., 1329.} |
std::map< unsigned int, std::deque< TGriffin * > > | fGriffinDeque |
double | fGriffinDistance {145.} |
double | fMaxEnergy {3000.} |
double | fMinEnergy {0.} |
double | fPrompt {200.} |
int | fThetaBins {180} |
bool | fUseTimestamps {false} |
int | fXiBins {180} |
Static Private Attributes | |
static constexpr int | fSizeLimit = 1073741822 |
|
inherited |
This type is a requirement for every helper.
Definition at line 67 of file TGRSIHelper.h.
|
inlineexplicit |
Definition at line 73 of file ComptonPolarimetryHelper.hh.
References fBins, fExcludedCrystals, fExcludedDetectors, fGammaGateHigh, fGammaGateLow, fGriffinDistance, fMaxEnergy, fMinEnergy, fPrompt, fThetaBins, TGRSIHelper::fUserSettings, fUseTimestamps, fXiBins, TUserSettings::GetBool(), TUserSettings::GetDouble(), TUserSettings::GetInt(), TUserSettings::GetIntVector(), TGRSIHelper::Prefix(), and TGRSIHelper::Setup().
|
inlineoverridevirtual |
This method will call the Book action on the provided dataframe.
Reimplemented from TGRSIHelper.
Definition at line 104 of file ComptonPolarimetryHelper.hh.
|
inlineprivate |
Definition at line 57 of file ComptonPolarimetryHelper.hh.
References fGammaGateHigh, and fGammaGateLow.
Referenced by Exec().
|
privateinherited |
check size of each object in the output list
Definition at line 215 of file TGRSIHelper.cxx.
References DRED, TGRSIHelper::fLists, TGRSIHelper::fSizeLimit, and RESET_COLOR.
Referenced by TGRSIHelper::Finalize(), and TGRSIHelper::Setup().
|
inlineprivate |
Definition at line 48 of file ComptonPolarimetryHelper.hh.
References fPrompt, fUseTimestamps, TDetectorHit::GetTime(), and TDetectorHit::GetTimeStampNs().
Referenced by Exec().
|
overridevirtual |
Virtual helper function that the user uses to create their histograms.
Reimplemented from TGRSIHelper.
Definition at line 3 of file ComptonPolarimetryHelper.cxx.
References ExcludeCrystal(), ExcludeDetector(), fBins, fGriffinDeque, fGriffinDistance, TGRSIHelper::fH1, TGRSIHelper::fH2, fMaxEnergy, fMinEnergy, fThetaBins, fXiBins, and TGriffin::GetPosition().
|
inlinevirtualinherited |
This method gets called at the end of Finalize()
Reimplemented in DirectoryHelper, EfficiencyHelper, and ExampleEventHelper.
Definition at line 100 of file TGRSIHelper.h.
Referenced by TGRSIHelper::Finalize().
|
inlineprivate |
Definition at line 34 of file ComptonPolarimetryHelper.hh.
References fExcludedCrystals.
Referenced by CreateHistograms(), and Exec().
|
inlineprivate |
Definition at line 30 of file ComptonPolarimetryHelper.hh.
References fExcludedDetectors.
Referenced by CreateHistograms(), and Exec().
void ComptonPolarimetryHelper::Exec | ( | unsigned int | slot, |
TGriffin & | fGriffin, | ||
TGriffinBgo & | fGriffinBgo ) |
Definition at line 99 of file ComptonPolarimetryHelper.cxx.
References CheckEnergy(), Coincident(), ExcludeCrystal(), ExcludeDetector(), fGriffinDeque, fGriffinDistance, TGRSIHelper::fH1, TGRSIHelper::fH2, TGriffin::GetGriffinHit(), TGriffin::GetMultiplicity(), TGriffin::GetPosition(), and TimeDiff().
|
inherited |
This required method is called at the end of the event loop. It is used to merge all the internal TLists which were used in each of the data processing slots.
This function merges all maps of lists into the map of the first slot (slot 0)
Definition at line 154 of file TGRSIHelper.cxx.
References TGRSIHelper::CheckSizes(), TGRSIHelper::EndOfSort(), and TGRSIHelper::fLists.
|
inlineinherited |
Definition at line 104 of file TGRSIHelper.h.
References TGRSIHelper::Prefix().
|
inlineinherited |
Definition at line 92 of file TGRSIHelper.h.
References TGRSIHelper::fLists.
|
inlineinherited |
Definition at line 94 of file TGRSIHelper.h.
|
inlineinherited |
Definition at line 93 of file TGRSIHelper.h.
|
inlineprotectedinherited |
Definition at line 43 of file TGRSIHelper.h.
References TGRSIHelper::fPpg.
Referenced by ExampleEventHelper::CreateHistograms().
|
inlineinherited |
Definition at line 40 of file TGRSIHelper.h.
References TGRSIHelper::fPrefix.
Referenced by AlphanumericHelper::AlphanumericHelper(), AngularCorrelationHelper::AngularCorrelationHelper(), ComptonPolarimetryHelper(), CrossTalkHelper::CrossTalkHelper(), DirectoryHelper::DirectoryHelper(), EfficiencyHelper::EfficiencyHelper(), ExampleEventHelper::ExampleEventHelper(), ExampleFragmentHelper::ExampleFragmentHelper(), ExampleTreeHelper::ExampleTreeHelper(), GriffinKValueHelper::GriffinKValueHelper(), TimeWalkHelper::TimeWalkHelper(), TGRSIHelper::Book(), TGRSIHelper::CreateHistograms(), and TGRSIHelper::GetActionName().
|
inlineinherited |
Definition at line 102 of file TGRSIHelper.h.
References TGRSIHelper::fPrefix.
|
inlineinherited |
Definition at line 103 of file TGRSIHelper.h.
References TGRSIHelper::fPrefix.
|
inlineprotectedinherited |
Definition at line 44 of file TGRSIHelper.h.
References TGRSIHelper::fRunInfo.
|
virtualinherited |
This function builds the vectors of TLists and maps for 1D- and 2D-histograms. It calls the overloaded CreateHistograms functions in which the user can define their histograms. Then it adds all those histograms to the list of the corresponding slot.
Definition at line 71 of file TGRSIHelper.cxx.
References TGRSIHelper::CheckSizes(), TGRSIHelper::CreateHistograms(), TGRSIHelper::fCube, TGRSIHelper::fH1, TGRSIHelper::fH2, TGRSIHelper::fH3, TGRSIHelper::fLists, TGRSIHelper::fObject, TGRSIHelper::fSym, TGRSIHelper::fTree, TGRSIOptions::Get(), and TGRSIOptions::GetMaxWorkers().
Referenced by AlphanumericHelper::AlphanumericHelper(), AngularCorrelationHelper::AngularCorrelationHelper(), ComptonPolarimetryHelper(), CrossTalkHelper::CrossTalkHelper(), DirectoryHelper::DirectoryHelper(), EfficiencyHelper::EfficiencyHelper(), ExampleEventHelper::ExampleEventHelper(), ExampleFragmentHelper::ExampleFragmentHelper(), ExampleTreeHelper::ExampleTreeHelper(), GriffinKValueHelper::GriffinKValueHelper(), and TimeWalkHelper::TimeWalkHelper().
|
inlineprivate |
Definition at line 39 of file ComptonPolarimetryHelper.hh.
References fUseTimestamps, TDetectorHit::GetTime(), and TDetectorHit::GetTimeStampNs().
Referenced by Exec().
|
inlineprotectedinherited |
Definition at line 45 of file TGRSIHelper.h.
References TGRSIHelper::fUserSettings.
|
private |
Definition at line 18 of file ComptonPolarimetryHelper.hh.
Referenced by ComptonPolarimetryHelper(), and CreateHistograms().
Definition at line 52 of file TGRSIHelper.h.
Referenced by TGRSIHelper::Setup().
|
protectedinherited |
Definition at line 55 of file TGRSIHelper.h.
Referenced by TGRSIHelper::TGRSIHelper().
|
private |
Definition at line 13 of file ComptonPolarimetryHelper.hh.
Referenced by ComptonPolarimetryHelper(), and ExcludeCrystal().
|
private |
Definition at line 12 of file ComptonPolarimetryHelper.hh.
Referenced by ComptonPolarimetryHelper(), and ExcludeDetector().
|
private |
Definition at line 26 of file ComptonPolarimetryHelper.hh.
Referenced by ComptonPolarimetryHelper(), and CheckEnergy().
|
private |
Definition at line 25 of file ComptonPolarimetryHelper.hh.
Referenced by ComptonPolarimetryHelper(), and CheckEnergy().
|
private |
Definition at line 28 of file ComptonPolarimetryHelper.hh.
Referenced by CreateHistograms(), and Exec().
|
private |
Definition at line 11 of file ComptonPolarimetryHelper.hh.
Referenced by ComptonPolarimetryHelper(), CreateHistograms(), and Exec().
|
protectedinherited |
Definition at line 48 of file TGRSIHelper.h.
Referenced by CreateHistograms(), CrossTalkHelper::CreateHistograms(), DirectoryHelper::CreateHistograms(), EfficiencyHelper::CreateHistograms(), ExampleEventHelper::CreateHistograms(), ExampleTreeHelper::CreateHistograms(), GriffinKValueHelper::CreateHistograms(), Exec(), CrossTalkHelper::Exec(), DirectoryHelper::Exec(), EfficiencyHelper::Exec(), ExampleEventHelper::Exec(), ExampleTreeHelper::Exec(), GriffinKValueHelper::Exec(), and TGRSIHelper::Setup().
|
protectedinherited |
Definition at line 49 of file TGRSIHelper.h.
Referenced by AlphanumericHelper::CreateHistograms(), AngularCorrelationHelper::CreateHistograms(), CreateHistograms(), CrossTalkHelper::CreateHistograms(), DirectoryHelper::CreateHistograms(), EfficiencyHelper::CreateHistograms(), ExampleEventHelper::CreateHistograms(), ExampleFragmentHelper::CreateHistograms(), ExampleTreeHelper::CreateHistograms(), GriffinKValueHelper::CreateHistograms(), TimeWalkHelper::CreateHistograms(), ExampleEventHelper::EndOfSort(), AlphanumericHelper::Exec(), AngularCorrelationHelper::Exec(), Exec(), CrossTalkHelper::Exec(), DirectoryHelper::Exec(), EfficiencyHelper::Exec(), ExampleEventHelper::Exec(), ExampleFragmentHelper::Exec(), ExampleTreeHelper::Exec(), GriffinKValueHelper::Exec(), TimeWalkHelper::Exec(), and TGRSIHelper::Setup().
|
protectedinherited |
Definition at line 50 of file TGRSIHelper.h.
Referenced by TimeWalkHelper::CreateHistograms(), TimeWalkHelper::Exec(), and TGRSIHelper::Setup().
|
protectedinherited |
Definition at line 47 of file TGRSIHelper.h.
Referenced by TGRSIHelper::CheckSizes(), TGRSIHelper::Finalize(), TGRSIHelper::GetResultPtr(), and TGRSIHelper::Setup().
|
private |
Definition at line 20 of file ComptonPolarimetryHelper.hh.
Referenced by ComptonPolarimetryHelper(), and CreateHistograms().
|
private |
Definition at line 19 of file ComptonPolarimetryHelper.hh.
Referenced by ComptonPolarimetryHelper(), and CreateHistograms().
|
protectedinherited |
Definition at line 54 of file TGRSIHelper.h.
Referenced by AngularCorrelationHelper::CreateHistograms(), and TGRSIHelper::Setup().
|
protectedinherited |
Definition at line 56 of file TGRSIHelper.h.
Referenced by TGRSIHelper::Ppg().
|
protectedinherited |
Definition at line 59 of file TGRSIHelper.h.
Referenced by TGRSIHelper::Prefix(), TGRSIHelper::Prefix(), and TGRSIHelper::Prefix().
|
private |
Definition at line 16 of file ComptonPolarimetryHelper.hh.
Referenced by ComptonPolarimetryHelper(), and Coincident().
|
protectedinherited |
Definition at line 57 of file TGRSIHelper.h.
Referenced by TGRSIHelper::RunInfo().
|
staticconstexprprivateinherited |
! 1 GiB size limit for objects in ROOT
Definition at line 62 of file TGRSIHelper.h.
Referenced by TGRSIHelper::CheckSizes().
Definition at line 51 of file TGRSIHelper.h.
Referenced by TGRSIHelper::Setup().
|
private |
Definition at line 22 of file ComptonPolarimetryHelper.hh.
Referenced by ComptonPolarimetryHelper(), and CreateHistograms().
|
protectedinherited |
Definition at line 53 of file TGRSIHelper.h.
Referenced by ExampleTreeHelper::CreateHistograms(), ExampleTreeHelper::Exec(), and TGRSIHelper::Setup().
|
protectedinherited |
Definition at line 58 of file TGRSIHelper.h.
Referenced by AngularCorrelationHelper::AngularCorrelationHelper(), ComptonPolarimetryHelper(), and TGRSIHelper::UserSettings().
|
private |
Definition at line 15 of file ComptonPolarimetryHelper.hh.
Referenced by ComptonPolarimetryHelper(), Coincident(), and TimeDiff().
|
private |
Definition at line 21 of file ComptonPolarimetryHelper.hh.
Referenced by ComptonPolarimetryHelper(), and CreateHistograms().