HighLAND
Public Types | Public Member Functions | Protected Attributes | List of all members
p0dExampleAnalysis Class Reference
Inheritance diagram for p0dExampleAnalysis:
baseP0DAnalysis baseAnalysis AnalysisAlgorithm

Public Types

enum  enumStandardMicroTrees_p0dExampleAnalysis {
  vertexFiducial = enumStandardMicroTreesLast_baseP0DAnalysis+1, vertexCycle, vertexPosition, vertexValidDim,
  ClusterInVertexTruePDG, ClusterInVertexPosition, HitInVertexPosition, nP0DTracksInGlobal,
  nP0DOnlyTracksInGlobal, P0DTracksInGlobalID, P0DOnlyTracksInGlobalID, nMichel,
  nShowers, Shower1EDeposit, Shower2EDeposit, Shower1Direction,
  Shower2Direction, truevertex_pos, nVertices, nParticles,
  nClusters, nParticlesInVertex, nClustersInVertex, nHitsInVertex,
  nTracksInParticle, nShowersInParticle, nHitsInParticle, nNodesInParticle,
  ParticlePosition, nClustersInParticleInVertex, nTracksInParticleInVertex, nShowersInParticleInVertex,
  nHitsInParticleInVertex, nNodesInParticleInVertex, nClustersInParticleInVertex2, ParticleInVertexPosition,
  ParticleInVertexMomentum, ParticleInVertexEDeposit, ParticleInVertexLength, ParticleInVertexID,
  ParticleInVertexLink, ParticleInVertexGlobal, ParticleInVertexTrueMomentum, ParticleInVertexTruePDG,
  ClusterInParticleInVertexTruePDG, ClusterInParticleInVertexPosition, HitInParticleInVertexPosition, HitInParticleInVertexCharge,
  HitInParticleInVertexType, ClusterPosition, ClusterTruePDG, nHitsInCluster,
  enumStandardMicroTreesLast_p0dExampleAnalysis
}
 
- Public Types inherited from baseP0DAnalysis
enum  enumStandardMicroTrees_baseP0DAnalysis {
  np0dtracks = enumStandardMicroTreesLast_baseAnalysis+1, np0donlytracks, np0dreconvertices, np0drecontracks,
  np0dreconclusters, enumStandardMicroTreesLast_baseP0DAnalysis
}
 
- Public Types inherited from baseAnalysis
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
}
 
- Public Types inherited from AnalysisAlgorithm
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

 p0dExampleAnalysis (AnalysisAlgorithm *ana=NULL)
 
bool Initialize ()
 [AnalysisAlgorithm_mandatory]
 
void DefineSelections ()
 
void DefineCorrections ()
 
void DefineSystematics ()
 
void DefineConfigurations ()
 
void DefineMicroTrees (bool addBase=true)
 
void DefineTruthTree ()
 
void FillMicroTrees (bool addBase=true)
 
void FillToyVarsInMicroTrees (bool addBase=true)
 
bool CheckFillTruthTree (const AnaTrueVertex &vtx)
 
void FillTruthTree (const AnaTrueVertex &vtx)
 
virtual AnaEventCMakeEvent ()
 Create the appropriate event type from an Spill and a Bunch in that spill.
 
virtual const ToyBoxP0Dbox (Int_t isel=-1) const
 Returns the ToyBoxP0D.
 
virtual AnaVertexBGetVertex () const
 The ToyBoxP0D does not have a Vertex method.
 
virtual AnaTrueVertexBGetTrueVertex () const
 returns the true vertex from the ToyBoxP0D
 
void FillMicroTreesNative ()
 
void FillMicroTreesLocal ()
 
void FillCategories ()
 
- Public Member Functions inherited from baseP0DAnalysis
 baseP0DAnalysis (AnalysisAlgorithm *ana=NULL)
 
virtual void FillTruthTreeBase (const AnaTrueVertex &vtx, const SubDetId::SubDetEnum det=SubDetId::kP0D, bool IsAntinu=false)
 
AnaP0DBunchGetBunch ()
 Get a casted AnaBunchBB to AnaBunch from the InputManager.
 
AnaP0DEventGetEvent ()
 Get a casted AnaEventC to AnaEvent.
 
- Public Member Functions inherited from baseAnalysis
 baseAnalysis (AnalysisAlgorithm *ana=NULL)
 
virtual bool InitializeSpill ()
 
virtual bool FinalizeConfiguration ()
 
virtual void DefineProductions ()
 
virtual void DefineInputConverters ()
 
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)
 
AnaSpillGetSpill ()
 Get a casted AnaSpillC to AnaSpill from the InputManager.
 
AnaBunchGetBunch ()
 Get a casted AnaBunchBB to AnaBunch from the InputManager (TODO the protection)
 
AnaEventGetEvent ()
 Get a casted AnaEventC to AnaEvent.
 
void SetSaveRooTracker (bool save)
 Set whether to save the RooTrackerVtx tree or not.
 
void SetRooVtxManager (RooTrackerVtxManager *man)
 Set the RooTrackerVtxManager.
 
- Public Member Functions inherited from AnalysisAlgorithm
 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 FillConfigTree ()
 
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.
 
HighlandInputManagerinput ()
 
SelectionManagersel ()
 
CorrectionManagercorr ()
 
SystematicManagersyst ()
 
EventWeightManagereweight ()
 
EventVariationManagerevar ()
 
OutputManageroutput ()
 
ConfigurationManagerconf ()
 
CategoryManagercat ()
 
DocStringManagerdoc ()
 
virtual const ToyBoxBboxB (Int_t isel=-1) const
 

Protected Attributes

bool _isUsingReconDirP0D
 
bool _isUsingReconDirP0DNew
 
bool _debug
 
- Protected Attributes inherited from baseAnalysis
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
 
- Protected Attributes inherited from AnalysisAlgorithm
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

- Protected Member Functions inherited from baseAnalysis
void AddZeroVarConfiguration ()
 

Detailed Description

Definition at line 9 of file p0dExampleAnalysis.hxx.


The documentation for this class was generated from the following files: