HighLAND
|
#include <baseTrackerAnalysis.hxx>
Public Types | |
enum | enumStandardMicroTrees_baseTrackerAnalysis { ntpctracks = enumStandardMicroTreesLast_baseAnalysis+1, ntpcposQualityFV, ntpcnegQualityFV, nfgdtracks, nfgdonlytracks, chargeid_ncorrect, chargeid_nwrong, tpcfgdmatch_ncorrect, tpcfgdmatch_nwrong, tpctr_ncorrect, tpctr_nwrong, fgdtr_ncorrect, fgdtr_nwrong, fgdhybtr_ncorrect, fgdhybtr_nwrong, meeff_ncorrect, meeff_nwrong, mepur_ncorrect, mepur_nwrong, tpc_ecal_match_ncorrect, tpc_ecal_match_nwrong, tpc_p0d_match_ncorrect, tpc_p0d_match_nwrong, fgd_ecal_match_ncorrect, fgd_ecal_match_nwrong, fgd_ecal_smrd_match_ncorrect, fgd_ecal_smrd_match_nwrong, ecal_pid_ncorrect, ecal_pid_nwrong, ecal_tr_ncorrect, ecal_tr_nwrong, ecal_emhippid_ncorrect, ecal_emhippid_nwrong, fgd2shower_ncorrect, fgd2shower_nwrong, enumStandardMicroTreesLast_baseTrackerAnalysis } |
enum | enumConf_baseTrackerAnalysis { bfield_syst =baseAnalysis::enumConfLast_baseAnalysis+1, momscale_syst, momresol_syst, momrange_resol_syst, tpcpid_syst, fgdpid_syst, chargeideff_syst, tpctrackeff_syst, fgdtrackeff_syst, fgdhybridtrackeff_syst, tpcfgdmatcheff_syst, tpcclustereff_syst, michel_syst, oofv_syst, pileup_syst, fgdmass_syst, sandmu_syst, ecal_emresol_syst, ecal_emscale_syst, tpc_ecal_matcheff_syst, tpc_p0d_matcheff_syst, fgd_ecal_matcheff_syst, fgd_ecal_smrd_matcheff_syst, ecal_trackeff_syst, ecal_pid_syst, tof_resol_syst, ecal_emhippid_syst, fgd2shower_syst, nuetpcpileup_syst, nuep0dpileup_syst, nueecalpileup_syst, nueoofv_syst, p0d_elossscale_syst, p0d_elossresol_syst, p0d_veto_syst, enumConfLast_baseTrackerAnalysis } |
![]() | |
enum | enumStandardMicroTrees_baseAnalysis { run = enumStandardMicroTreesLast_AnalysisAlgorithm+1, subrun, evt, evt_time, bunch, NWEIGHTS, weight, TruthVertexID, TruthVertexNB, RooVtxIndex, RooVtxEntry, RooVtxEntry2, RooVtxFile, nu_pdg, nu_trueE, nu_truereac, nu_truedir, truelepton_mom, truelepton_costheta, truelepton_dir, truevtx_pos, selvtx_det, selvtx_pos, selvtx_truepos, true_signal, weight_syst_total_noflux, enumStandardMicroTreesLast_baseAnalysis } |
enum | enumConf_baseAnalysis { sipion_syst =ConfigurationManager::enumConfLast_ConfigurationManager+1, siproton_syst, nuflux_syst, antinuflux_syst, all_syst, zero_var, enumConfLast_baseAnalysis } |
![]() | |
enum | enumAnalysisPoint { kInitialize =0, kDefineProductions, kDefineInputConverters, kDefineSelections, kDefineCorrections, kDefineSystematics, kDefineConfigurations, kDefineMicroTrees, kDefineTruthTree, kFillConfigTree, kInitializeSpill, kInitializeBunch, kInitializeConfiguration, kInitializeToy, kInitializeSelection, kFinalizeSelection, kFinalizeToy, kFillToyVarsInMicroTrees, kFinalizeConfiguration, kFillCategories, kFillMicroTrees, kFinalizeBunch, kFillTruthTree, kFinalizeSpill, kFinalize } |
enum | enumStandardMicroTrees_AnalysisAlgorithm { firstCategory = OutputManager::enumStandardMicroTreesLast_OutputManager+1, firstCategoryCounter = firstCategory+NMAXCATEG, entry = firstCategoryCounter + NMAXCATEGCOUNTERS, toy_ref, toy_index, toy_par_weight, toy_par_var, NWEIGHTSYST, weight_syst, weight_syst_total, weight_corr, weight_corr_total, redo, accum_level, first_cut, last_cut =first_cut+NMAXSTEPS, enumStandardMicroTreesLast_AnalysisAlgorithm } |
enum | enumConfigTree_AnalysisAlgorithm { SoftwareVersion =0, HOSTNAME, CMTPATH, INPUTFILE, OriginalFile, MinAccumLevelToSave, enumConfigTreeLast_AnalysisAlgorithm } |
Public Member Functions | |
baseTrackerAnalysis (AnalysisAlgorithm *ana=NULL) | |
virtual bool | Initialize () |
[AnalysisAlgorithm_mandatory] | |
virtual void | DefineCorrections () |
virtual void | DefineSystematics () |
virtual void | DefineConfigurations () |
virtual void | DefineMicroTrees (bool addBase=true) |
virtual void | DefineTruthTree () |
virtual void | FillMicroTrees (bool addBase=true) |
virtual void | FillToyVarsInMicroTrees (bool addBase=true) |
virtual void | FillTruthTreeBase (const AnaTrueVertex &vtx, const SubDetId::SubDetEnum det=SubDetId::kFGD1, bool IsAntinu=false) |
virtual const ToyBoxTracker & | box (Int_t isel=-1) const |
Returns the ToyBoxTracker. | |
virtual AnaVertexB * | GetVertex () const |
Returns the vertex for the ToyBoxTracker. | |
virtual AnaTrueVertexB * | GetTrueVertex () const |
Returns the true vertex for the ToyBoxTracker. | |
![]() | |
baseAnalysis (AnalysisAlgorithm *ana=NULL) | |
virtual bool | InitializeSpill () |
virtual bool | FinalizeConfiguration () |
virtual void | DefineProductions () |
virtual void | DefineInputConverters () |
virtual bool | CheckFillTruthTree (const AnaTrueVertex &vtx)=0 |
virtual void | FillTruthTree (const AnaTrueVertex &vtx)=0 |
void | FillMicroTreesBase (bool addBase=true) |
void | FillToyVarsInMicroTreesBase (bool addBase=true) |
void | FillTruthTree () |
void | FillTruthTreeBase (const AnaTrueVertex &vtx, const SubDetId::SubDetEnum det=SubDetId::kFGD1, bool IsAntinu=false) |
AnaSpill & | GetSpill () |
Get a casted AnaSpillC to AnaSpill from the InputManager. | |
AnaBunch & | GetBunch () |
Get a casted AnaBunchBB to AnaBunch from the InputManager (TODO the protection) | |
AnaEvent & | GetEvent () |
Get a casted AnaEventC to AnaEvent. | |
virtual AnaEventC * | MakeEvent () |
Create the appropriate event time from an Spill and a Bunch in that spill. | |
void | SetSaveRooTracker (bool save) |
Set whether to save the RooTrackerVtx tree or not. | |
void | SetRooVtxManager (RooTrackerVtxManager *man) |
Set the RooTrackerVtxManager. | |
![]() | |
AnalysisAlgorithm (AnalysisAlgorithm *ana=NULL) | |
virtual void | Finalize () |
[AnalysisAlgorithm_optional] | |
virtual void | FinalizeSpill () |
virtual void | InitializeBunch () |
virtual void | FinalizeBunch () |
virtual void | InitializeConfiguration () |
virtual void | InitializeToy () |
virtual void | FinalizeToy () |
virtual void | InitializeSelection (const SelectionBase &) |
virtual void | FinalizeSelection (const SelectionBase &) |
virtual void | FillCategories () |
virtual void | FillConfigTree () |
virtual void | DefineSelections ()=0 |
void | FinalizeToyBase () |
[AnalysisAlgorithm_mandatory] More... | |
void | SetFillSuccessOnly (bool fill) |
Fill trees and process weight systematics only when any of the branches is successful. | |
bool | GetFillSuccessOnly () |
void | SetInitializeTrees (bool ini) |
Initialize trees at the beginning of each configuration. | |
bool | GetInitializeTrees () |
void | SetMinAccumCutLevelToSave (Int_t level) |
Set the minimum accumulated cut level to save an event into the micro-tree. | |
Int_t | GetMinAccumCutLevelToSave () |
Get the minimum accumulated cut level to save an event into the micro-tree. | |
bool | CheckAccumLevelToSave () |
Check if the condition is fulfilled for at least one branch. | |
void | SetEvent (AnaEventC *event) |
Set the current event into the algorithm and all used algorithms. | |
void | SetToyBox (const ToyBoxB *box, Int_t isel=0) |
Set the current box into the algorithm and all used algorithms. This is useful when one Analysis uses another. | |
void | UseAnalysis (AnalysisAlgorithm *ana) |
Used a given analysis. | |
void | SetSelectedSelection (Int_t sel) |
Select one of the selections. | |
void | SetVersionCheck (bool check) |
Set version checking. | |
void | SetAnalysisPoint (enumAnalysisPoint point) |
Set the point of the analysis at which AnalysisLoop is. | |
HighlandInputManager & | input () |
SelectionManager & | sel () |
CorrectionManager & | corr () |
SystematicManager & | syst () |
EventWeightManager & | eweight () |
EventVariationManager & | evar () |
OutputManager & | output () |
ConfigurationManager & | conf () |
CategoryManager & | cat () |
DocStringManager & | doc () |
virtual const ToyBoxB & | boxB (Int_t isel=-1) const |
Protected Attributes | |
bool | _computeEfficiency |
Compute analysis sample efficiency. | |
ChargeIDEffSystematics * | _chargeid |
TPCFGDMatchEffSystematics * | _tpcfgdmatch |
TPCTrackEffSystematics * | _tpctr |
FGDTrackEffSystematics * | _fgdtr |
FGDHybridTrackEffSystematics * | _fgdhybtr |
MichelElectronEffSystematics * | _me |
TPCECalMatchEffSystematics * | _tpc_ecal_matcheff |
TPCP0DMatchEffSystematics * | _tpc_p0d_matcheff |
FGDECalMatchEffSystematics * | _fgd_ecal_matcheff |
FGDECalSMRDMatchEffSystematics * | _fgd_ecal_smrd_matcheff |
ECalTrackEffSystematics * | _ecal_trackeff |
ECalPIDSystematics * | _ecal_pid |
ECalEmHipPIDSystematics * | _ecal_emhippid |
FGD2ShowerSystematics * | _fgd2shower |
![]() | |
RooTrackerVtxManager * | _rooVtxManager |
the manager of the RooTrackerVtx | |
bool | _saveRooTrackerVtxTree |
Save RooTracker tree in output file. | |
FluxWeighting * | _flux |
Access to the flux weighting. | |
bool | _applyFluxWeight |
Flag to enable/disable flux weight. | |
std::string | _fluxFile |
Flux file and option. | |
std::string | _fluxTuning |
bool | _enableSingleVariationSystConf |
bool | _enableSingleWeightSystConf |
bool | _enableAllSystConfig |
bool | _enableZeroVarConfig |
Int_t | _ntoys |
Int_t | _randomSeed |
![]() | |
HighlandInputManager * | _inputManager |
Input Manager: access to the current Event. | |
CorrectionManager * | _corrManager |
Correction Manager. | |
SystematicManager * | _systManager |
Systematics Manager. | |
EventWeightManager * | _weightManager |
EventWeight Manager. | |
EventVariationManager * | _variationManager |
EventVariation Manager. | |
OutputManager * | _outputManager |
Output Manager. | |
ConfigurationManager * | _confManager |
Configuration Manager. | |
SelectionManager * | _selManager |
CategoryManager * | _categManager |
DocStringManager * | _docManager |
const ToyBoxB * | _box [NMAXSELECTIONS] |
The analysis box. | |
Int_t | _min_accum_cut_level |
the minimum accumulated cut level to save an event into the micro-tree | |
bool | _fillSuccessOnly |
Fill trees and process weight systematics only when any of the branches is succesful. | |
bool | _initializeTrees |
Initialize trees at the beginning of each configuration. | |
AnaEventC * | _event |
The current event. | |
std::vector< AnalysisAlgorithm * > | _usedAnalyses |
The Vector of used analysis. | |
Int_t | _selectedSelection |
The selected selection. | |
bool | _setMethodCalled |
Boolean parameter to know whether nny of the methods that sets things into used analysis has been called. | |
bool | _versionCheck |
enumAnalysisPoint | _analysisPoint |
Additional Inherited Members | |
![]() | |
void | AddZeroVarConfiguration () |
This class provides a base for user analyses. It handles many common functions, and provides a structure so that users don't have to write too much "boiler-plate" code.
User analyses should inherit from this class.
Definition at line 36 of file baseTrackerAnalysis.hxx.
baseTrackerAnalysis::baseTrackerAnalysis | ( | AnalysisAlgorithm * | ana = NULL | ) |
Constructor, which instantiates the necessary converters for converting input files to the AnaSpill format.
Definition at line 50 of file baseTrackerAnalysis.cxx.
|
virtual |
[baseTrackerAnalysis_all_syst]
[baseTrackerAnalysis_all_syst]
Reimplemented from baseAnalysis.
Reimplemented in tutorialAnalysis.
Definition at line 189 of file baseTrackerAnalysis.cxx.
|
virtual |
[baseTrackerAnalysis_varsyst]
[baseTrackerAnalysis_varsyst]
[baseTrackerAnalysis_weightsyst]
[baseTrackerAnalysis_weightsyst]
Reimplemented from baseAnalysis.
Reimplemented in tutorialAnalysis.
Definition at line 75 of file baseTrackerAnalysis.cxx.