39 OxInj(
const string aFilePattern,
const unsigned int aNbins=20);
68 void Match(
const Long64_t aEventEntry,
const double aEventRank,
const unsigned int aEventStartTime,
const unsigned int aEventEndTime);
77 void Process(
const double aRankDetectionThreshold);
91 void ReadTree(
const string aFilePattern);
98 inline unsigned int GetValidN(
const unsigned int aNameIndex){
return (
unsigned int)
h1_inj_amp_tot[aNameIndex]->GetEntries(); };
Manage injections for Ox analyses.
Definition OxInj.h:19
double * inj_rk
List of event ranks.
Definition OxInj.h:145
Long64_t * inj_entry
List of event entries.
Definition OxInj.h:146
TH1D * GetHistoInjectionAmplitude(const unsigned int aNameIndex, const bool aDetectedOnly=false)
Returns a pointer to the injection amplitude histogram.
Definition OxInj.h:114
TH1D ** h1_inj_freq_det
Detected frequency amplitude distribution /injection name.
Definition OxInj.h:153
void ReadTree(const string aFilePattern)
Reads injection analysis results from a list of TTrees.
Definition OxInj.cc:234
void Process(const double aRankDetectionThreshold)
Processes injections.
Definition OxInj.cc:150
TH1D ** h1_inj_time_tot
Injection time distribution /injection name.
Definition OxInj.h:150
TH1D * GetHistoInjectionTime(const unsigned int aNameIndex, const bool aDetectedOnly=false)
Returns a pointer to the injection time histogram.
Definition OxInj.h:126
TH1D ** h1_inj_time_det
Detected time amplitude distribution /injection name.
Definition OxInj.h:151
virtual ~OxInj(void)
Destructor of the OxInj class.
Definition OxInj.cc:74
void SaveTree(void)
Fill and save a TTree with the results of the injection analysis.
Definition OxInj.cc:194
OxInj(const string aFilePattern, const unsigned int aNbins=20)
Constructor of the OxInj class.
unsigned int GetValidN(const unsigned int aNameIndex)
Returns the number of valid injections of a given name.
Definition OxInj.h:98
TH1D ** h1_inj_amp_tot
Injection amplitude distribution /injection name.
Definition OxInj.h:148
void Match(const Long64_t aEventEntry, const double aEventRank, const unsigned int aEventStartTime, const unsigned int aEventEndTime)
Matches injections with an Ox event.
Definition OxInj.cc:118
TH1D ** h1_inj_amp_det
Detected injection amplitude distribution /injection name.
Definition OxInj.h:149
void Reset(void)
Resets the ijection set.
Definition OxInj.cc:96
unsigned int GetDetectedN(const unsigned int aNameIndex)
Returns the number of detected injections of a given name.
Definition OxInj.h:105
TH1D ** h1_inj_freq_tot
Injection frequency distribution /injection name.
Definition OxInj.h:152
TH1D * GetHistoInjectionFrequency(const unsigned int aNameIndex, const bool aDetectedOnly=false)
Returns a pointer to the injection frequency histogram.
Definition OxInj.h:138