4 #include "HighlandAnalysisUtils.hxx" 5 #include "FluxWeighting.hxx" 6 #include "AnalysisAlgorithm.hxx" 8 #include "Parameters.hxx" 9 #include "CutUtils.hxx" 10 #include "VersioningUtils.hxx" 12 #include "Versioning.hxx" 13 #include "CategoriesUtils.hxx" 14 #include "CategoryManager.hxx" 15 #include "ToyBoxTracker.hxx" 16 #include "RooTrackerVtxManager.hxx" 33 virtual bool InitializeSpill();
34 virtual bool FinalizeConfiguration();
36 virtual void DefineProductions();
37 virtual void DefineInputConverters();
39 virtual void DefineCorrections();
40 virtual void DefineSystematics();
41 virtual void DefineConfigurations();
42 virtual void DefineMicroTrees(
bool addBase=
true);
43 virtual void DefineTruthTree();
45 virtual bool CheckFillTruthTree(
const AnaTrueVertex& vtx) = 0;
48 void FillMicroTreesBase(
bool addBase=
true);
49 void FillToyVarsInMicroTreesBase(
bool addBase=
true);
58 if (_analysisPoint < AnalysisAlgorithm::kInitializeSpill || _analysisPoint> kFinalizeBunch){
59 std::cout <<
"baseAnalysis::GetBunch(). The Bunch is not available before InitializeBunch or after FinalizeBunch (see AnalysisAlgorithm.hxx) !!!" << std::endl;
67 if (_analysisPoint < AnalysisAlgorithm::kInitializeBunch || _analysisPoint> kFinalizeBunch){
68 std::cout <<
"baseAnalysis::GetEvent(). The Event is not available before InitializeBunch or after FinalizeBunch (see AnalysisAlgorithm.hxx) !!!" << std::endl;
107 std::string _fluxTuning;
110 bool _enableSingleVariationSystConf;
111 bool _enableSingleWeightSystConf;
112 bool _enableAllSystConfig;
121 void AddZeroVarConfiguration();
125 enum enumStandardMicroTrees_baseAnalysis{
126 run = enumStandardMicroTreesLast_AnalysisAlgorithm+1,
153 weight_syst_total_noflux,
154 enumStandardMicroTreesLast_baseAnalysis
157 enum enumConf_baseAnalysis{
158 sipion_syst=ConfigurationManager::enumConfLast_ConfigurationManager+1,
164 enumConfLast_baseAnalysis
169 #define AddConfiguration(conf, name, ntoys, randomSeed,toyMaker) conf.AddConfiguration(name,#name,ntoys,randomSeed,toyMaker); 170 #define GetConfigurationIndex(name) conf().GetConfigurationIndex(#name)
FluxWeighting * _flux
Access to the flux weighting.
Representation of a true Monte Carlo vertex.
virtual bool Initialize()
[AnalysisAlgorithm_mandatory]
bool _enableZeroVarConfig
AnaBunch & GetBunch()
Get a casted AnaBunchBB to AnaBunch from the InputManager (TODO the protection)
Representation of a true Monte Carlo vertex.
bool _applyFluxWeight
Flag to enable/disable flux weight.
RooTrackerVtxManager * _rooVtxManager
the manager of the RooTrackerVtx
AnaEventC * _event
The current event.
SubDetEnum
Enumeration of all detector systems and subdetectors.
virtual AnaEventC * MakeEvent()
Create the appropriate event time from an Spill and a Bunch in that spill.
AnaEvent & GetEvent()
Get a casted AnaEventC to AnaEvent.
bool _saveRooTrackerVtxTree
Save RooTracker tree in output file.
Representation of a global vertex.
std::string _fluxFile
Flux file and option.
void SetSaveRooTracker(bool save)
Set whether to save the RooTrackerVtx tree or not.
AnaSpill & GetSpill()
Get a casted AnaSpillC to AnaSpill from the InputManager.
baseAnalysis(AnalysisAlgorithm *ana=NULL)
void SetRooVtxManager(RooTrackerVtxManager *man)
Set the RooTrackerVtxManager.