GRSISort "v4.0.0.5"
An extension of the ROOT analysis Framework
Loading...
Searching...
No Matches
SummingCorrectionsHelper Class Reference

Detailed Description

Definition at line 14 of file SummingCorrectionsHelper.hh.

Public Types

using Result_t = std::map<std::string, TList>
 

Public Member Functions

 SummingCorrectionsHelper (TList *list)
 
ROOT::RDF::RResultPtr< std::map< std::string, TList > > Book (ROOT::RDataFrame *d) override
 
void CreateHistograms (unsigned int slot) override
 
void EndOfSort (std::shared_ptr< std::map< std::string, TList > > &list) override
 
void Exec (unsigned int slot, TGriffin &grif, TGriffinBgo &grifBgo)
 
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

TPPGPpg ()
 
TRunInfoRunInfo ()
 
TUserSettingsUserSettings ()
 

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
 
TPPGfPpg {nullptr}
 
std::string fPrefix {"TGRSIHelper"}
 
TRunInfofRunInfo {nullptr}
 
std::vector< TGRSIMap< std::string, GHSym * > > fSym
 
std::vector< TGRSIMap< std::string, TTree * > > fTree
 
TUserSettingsfUserSettings {nullptr}
 

Private Member Functions

bool Background (TGriffinHit *h1) const
 
void CheckSizes (unsigned int slot, const char *usage)
 
bool Coincident (TGriffinHit *h1, TGriffinHit *h2) const
 
void FillBranchingRatioHistograms (unsigned int slot, TGriffin &grif, TGriffinBgo &grifBgo)
 
void FillEfficiencyHistograms (unsigned int slot, TGriffin &grif, TGriffinBgo &grifBgo)
 
bool Gate (TGriffinHit *h1) const
 
bool GoodCfd (TDetectorHit *h1) const
 
bool Prompt (TGriffinHit *h1, TGriffinHit *h2) const
 
bool Reject (TGriffinHit *hit) const
 
bool TimeRandom (TGriffinHit *h1, TGriffinHit *h2) const
 

Private Attributes

double fCoincidentHigh {250.}
 
double fCoincidentLow {-250.}
 
std::vector< std::pair< double, double > > fEnergyBackground
 
int fEnergyBins1D {10000}
 
int fEnergyBins2D {2000}
 
double fEnergyGateHigh {0.}
 
double fEnergyGateLow {0.}
 
double fEnergyRatio {0.}
 
double fHighEnergy {2000.}
 
int fKValueGriffin {379}
 
double fLowEnergy {0.}
 
double fMaxCfd {20.}
 
double fMinimumGriffinEnergy {0.}
 
bool fPileUpRejection {true}
 
double fPromptHigh {250.}
 
double fPromptLow {-250.}
 
double fTimeRandomHigh {1500.}
 
double fTimeRandomLow {500.}
 
double fTimeRandomRatio {0.}
 

Static Private Attributes

static constexpr int fSizeLimit = 1073741822
 
+ Inheritance diagram for SummingCorrectionsHelper:
+ Collaboration diagram for SummingCorrectionsHelper:

Member Typedef Documentation

◆ Result_t

using TGRSIHelper::Result_t = std::map<std::string, TList>
inherited

This type is a requirement for every helper.

Definition at line 63 of file TGRSIHelper.h.

Constructor & Destructor Documentation

◆ SummingCorrectionsHelper()

Member Function Documentation

◆ Background()

bool SummingCorrectionsHelper::Background ( TGriffinHit * h1) const
inlineprivate

Definition at line 140 of file SummingCorrectionsHelper.hh.

Referenced by FillBranchingRatioHistograms().

◆ Book()

ROOT::RDF::RResultPtr< std::map< std::string, TList > > SummingCorrectionsHelper::Book ( ROOT::RDataFrame * )
inlineoverridevirtual

This method will call the Book action on the provided dataframe.

Reimplemented from TGRSIHelper.

Definition at line 72 of file SummingCorrectionsHelper.hh.

◆ CheckSizes()

void TGRSIHelper::CheckSizes ( unsigned int slot,
const char * usage )
privateinherited

check size of each object in the output list

Definition at line 219 of file TGRSIHelper.cxx.

References DRED, TGRSIHelper::fLists, TGRSIHelper::fSizeLimit, and RESET_COLOR.

Referenced by TGRSIHelper::Finalize(), and TGRSIHelper::Setup().

◆ Coincident()

bool SummingCorrectionsHelper::Coincident ( TGriffinHit * h1,
TGriffinHit * h2 ) const
inlineprivate

Definition at line 127 of file SummingCorrectionsHelper.hh.

References TDetectorHit::GetTime().

Referenced by FillBranchingRatioHistograms().

◆ CreateHistograms()

void SummingCorrectionsHelper::CreateHistograms ( unsigned int )
overridevirtual

Virtual helper function that the user uses to create their histograms.

Reimplemented from TGRSIHelper.

Definition at line 3 of file SummingCorrectionsHelper.cxx.

References fEnergyBins1D, fEnergyBins2D, TGRSIHelper::fH1, TGRSIHelper::fH2, fHighEnergy, and fLowEnergy.

◆ EndOfSort()

void SummingCorrectionsHelper::EndOfSort ( std::shared_ptr< std::map< std::string, TList > > & )
inlineoverridevirtual

This method gets called at the end of Finalize()

Reimplemented from TGRSIHelper.

Definition at line 81 of file SummingCorrectionsHelper.hh.

◆ Exec()

void SummingCorrectionsHelper::Exec ( unsigned int slot,
TGriffin & grif,
TGriffinBgo & grifBgo )

◆ FillBranchingRatioHistograms()

◆ FillEfficiencyHistograms()

◆ Finalize()

void TGRSIHelper::Finalize ( )
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 158 of file TGRSIHelper.cxx.

References TGRSIHelper::CheckSizes(), TGRSIHelper::EndOfSort(), and TGRSIHelper::fLists.

◆ Gate()

bool SummingCorrectionsHelper::Gate ( TGriffinHit * h1) const
inlineprivate

Definition at line 136 of file SummingCorrectionsHelper.hh.

References TDetectorHit::GetEnergy().

Referenced by FillBranchingRatioHistograms().

◆ GetActionName()

std::string TGRSIHelper::GetActionName ( ) const
inlineinherited

Definition at line 100 of file TGRSIHelper.h.

References TGRSIHelper::Prefix().

◆ GetResultPtr()

std::shared_ptr< std::map< std::string, TList > > TGRSIHelper::GetResultPtr ( ) const
inlineinherited

Definition at line 88 of file TGRSIHelper.h.

References TGRSIHelper::fLists.

◆ GoodCfd()

bool SummingCorrectionsHelper::GoodCfd ( TDetectorHit * h1) const
inlineprivate

◆ Initialize()

void TGRSIHelper::Initialize ( )
inlineinherited

Definition at line 90 of file TGRSIHelper.h.

◆ InitTask()

void TGRSIHelper::InitTask ( TTreeReader * ,
unsigned int  )
inlineinherited

Definition at line 89 of file TGRSIHelper.h.

◆ Ppg()

TPPG * TGRSIHelper::Ppg ( )
inlineprotectedinherited

Definition at line 39 of file TGRSIHelper.h.

References TGRSIHelper::fPpg.

Referenced by ExampleEventHelper::CreateHistograms().

◆ Prefix() [1/3]

◆ Prefix() [2/3]

std::string TGRSIHelper::Prefix ( ) const
inlineinherited

Definition at line 98 of file TGRSIHelper.h.

References TGRSIHelper::fPrefix.

◆ Prefix() [3/3]

void TGRSIHelper::Prefix ( const std::string & val)
inlineinherited

Definition at line 99 of file TGRSIHelper.h.

References TGRSIHelper::fPrefix.

◆ Prompt()

bool SummingCorrectionsHelper::Prompt ( TGriffinHit * h1,
TGriffinHit * h2 ) const
inlineprivate

Definition at line 122 of file SummingCorrectionsHelper.hh.

References TDetectorHit::GetTime().

◆ Reject()

bool SummingCorrectionsHelper::Reject ( TGriffinHit * hit) const
inlineprivate

◆ RunInfo()

TRunInfo * TGRSIHelper::RunInfo ( )
inlineprotectedinherited

Definition at line 40 of file TGRSIHelper.h.

References TGRSIHelper::fRunInfo.

◆ Setup()

◆ TimeRandom()

bool SummingCorrectionsHelper::TimeRandom ( TGriffinHit * h1,
TGriffinHit * h2 ) const
inlineprivate

Definition at line 131 of file SummingCorrectionsHelper.hh.

References TDetectorHit::GetTime().

Referenced by FillBranchingRatioHistograms().

◆ UserSettings()

TUserSettings * TGRSIHelper::UserSettings ( )
inlineprotectedinherited

Definition at line 41 of file TGRSIHelper.h.

References TGRSIHelper::fUserSettings.

Member Data Documentation

◆ fCoincidentHigh

double SummingCorrectionsHelper::fCoincidentHigh {250.}
private

Definition at line 105 of file SummingCorrectionsHelper.hh.

Referenced by SummingCorrectionsHelper().

◆ fCoincidentLow

double SummingCorrectionsHelper::fCoincidentLow {-250.}
private

Definition at line 104 of file SummingCorrectionsHelper.hh.

Referenced by SummingCorrectionsHelper().

◆ fCube

std::vector<TGRSIMap<std::string, GCube*> > TGRSIHelper::fCube
protectedinherited

Definition at line 48 of file TGRSIHelper.h.

Referenced by TGRSIHelper::Setup().

◆ fCuts

std::map<std::string, TCutG*> TGRSIHelper::fCuts
protectedinherited

Definition at line 51 of file TGRSIHelper.h.

Referenced by TGRSIHelper::TGRSIHelper().

◆ fEnergyBackground

std::vector<std::pair<double, double> > SummingCorrectionsHelper::fEnergyBackground
private

Definition at line 112 of file SummingCorrectionsHelper.hh.

Referenced by SummingCorrectionsHelper().

◆ fEnergyBins1D

int SummingCorrectionsHelper::fEnergyBins1D {10000}
private

Definition at line 87 of file SummingCorrectionsHelper.hh.

Referenced by SummingCorrectionsHelper(), and CreateHistograms().

◆ fEnergyBins2D

int SummingCorrectionsHelper::fEnergyBins2D {2000}
private

Definition at line 88 of file SummingCorrectionsHelper.hh.

Referenced by SummingCorrectionsHelper(), and CreateHistograms().

◆ fEnergyGateHigh

double SummingCorrectionsHelper::fEnergyGateHigh {0.}
private

Definition at line 111 of file SummingCorrectionsHelper.hh.

Referenced by SummingCorrectionsHelper(), and Exec().

◆ fEnergyGateLow

double SummingCorrectionsHelper::fEnergyGateLow {0.}
private

Definition at line 110 of file SummingCorrectionsHelper.hh.

Referenced by SummingCorrectionsHelper(), and Exec().

◆ fEnergyRatio

double SummingCorrectionsHelper::fEnergyRatio {0.}
private

◆ fH1

◆ fH2

◆ fH3

std::vector<TGRSIMap<std::string, TH3*> > TGRSIHelper::fH3
protectedinherited

◆ fHighEnergy

double SummingCorrectionsHelper::fHighEnergy {2000.}
private

Definition at line 90 of file SummingCorrectionsHelper.hh.

Referenced by SummingCorrectionsHelper(), and CreateHistograms().

◆ fKValueGriffin

int SummingCorrectionsHelper::fKValueGriffin {379}
private

Definition at line 93 of file SummingCorrectionsHelper.hh.

Referenced by SummingCorrectionsHelper().

◆ fLists

std::vector<std::shared_ptr<std::map<std::string, TList> > > TGRSIHelper::fLists
protectedinherited

◆ fLowEnergy

double SummingCorrectionsHelper::fLowEnergy {0.}
private

Definition at line 89 of file SummingCorrectionsHelper.hh.

Referenced by SummingCorrectionsHelper(), and CreateHistograms().

◆ fMaxCfd

double SummingCorrectionsHelper::fMaxCfd {20.}
private

Definition at line 96 of file SummingCorrectionsHelper.hh.

Referenced by SummingCorrectionsHelper().

◆ fMinimumGriffinEnergy

double SummingCorrectionsHelper::fMinimumGriffinEnergy {0.}
private

Definition at line 95 of file SummingCorrectionsHelper.hh.

Referenced by SummingCorrectionsHelper().

◆ fObject

std::vector<TGRSIMap<std::string, TObject*> > TGRSIHelper::fObject
protectedinherited

Definition at line 50 of file TGRSIHelper.h.

Referenced by AngularCorrelationHelper::CreateHistograms(), and TGRSIHelper::Setup().

◆ fPileUpRejection

bool SummingCorrectionsHelper::fPileUpRejection {true}
private

Definition at line 94 of file SummingCorrectionsHelper.hh.

Referenced by SummingCorrectionsHelper().

◆ fPpg

TPPG* TGRSIHelper::fPpg {nullptr}
protectedinherited

Definition at line 52 of file TGRSIHelper.h.

Referenced by AngularCorrelationHelper::CreateHistograms(), and TGRSIHelper::Ppg().

◆ fPrefix

std::string TGRSIHelper::fPrefix {"TGRSIHelper"}
protectedinherited

Definition at line 55 of file TGRSIHelper.h.

Referenced by TGRSIHelper::Prefix(), TGRSIHelper::Prefix(), and TGRSIHelper::Prefix().

◆ fPromptHigh

double SummingCorrectionsHelper::fPromptHigh {250.}
private

Definition at line 100 of file SummingCorrectionsHelper.hh.

Referenced by SummingCorrectionsHelper().

◆ fPromptLow

double SummingCorrectionsHelper::fPromptLow {-250.}
private

Definition at line 99 of file SummingCorrectionsHelper.hh.

Referenced by SummingCorrectionsHelper().

◆ fRunInfo

TRunInfo* TGRSIHelper::fRunInfo {nullptr}
protectedinherited

Definition at line 53 of file TGRSIHelper.h.

Referenced by TGRSIHelper::RunInfo().

◆ fSizeLimit

int TGRSIHelper::fSizeLimit = 1073741822
staticconstexprprivateinherited

! 1 GiB size limit for objects in ROOT

Definition at line 58 of file TGRSIHelper.h.

Referenced by TGRSIHelper::CheckSizes().

◆ fSym

std::vector<TGRSIMap<std::string, GHSym*> > TGRSIHelper::fSym
protectedinherited

Definition at line 47 of file TGRSIHelper.h.

Referenced by TGRSIHelper::Setup().

◆ fTimeRandomHigh

double SummingCorrectionsHelper::fTimeRandomHigh {1500.}
private

Definition at line 107 of file SummingCorrectionsHelper.hh.

Referenced by SummingCorrectionsHelper().

◆ fTimeRandomLow

double SummingCorrectionsHelper::fTimeRandomLow {500.}
private

Definition at line 106 of file SummingCorrectionsHelper.hh.

Referenced by SummingCorrectionsHelper().

◆ fTimeRandomRatio

double SummingCorrectionsHelper::fTimeRandomRatio {0.}
private

◆ fTree

std::vector<TGRSIMap<std::string, TTree*> > TGRSIHelper::fTree
protectedinherited

◆ fUserSettings