forked from UCATLAS/xAODAnaHelpers
-
Notifications
You must be signed in to change notification settings - Fork 0
/
METConstructor.h
85 lines (64 loc) · 2.13 KB
/
METConstructor.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
#ifndef xAODAnaHelpers_METConstructor_H
#define xAODAnaHelpers_METConstructor_H
#include <xAODAnaHelpers/Algorithm.h>
// Infrastructure include(s):
#include "xAODRootAccess/Init.h"
#include "xAODRootAccess/TEvent.h"
#include "xAODRootAccess/TStore.h"
using std::string;
namespace met { class METMaker; }
namespace TauAnalysisTools { class TauSelectionTool; }
class METConstructor : public xAH::Algorithm
{
// put your configuration variables here as public variables.
// that way they can be set directly from CINT and python.
public:
xAOD::TEvent *m_event; //!
xAOD::TStore *m_store; //!
// configuration variables
TString m_referenceMETContainer;
TString m_mapName;
TString m_coreName;
TString m_outputContainer;
TString m_inputJets;
TString m_inputElectrons;
TString m_inputPhotons;
TString m_inputTaus;
TString m_inputMuons;
bool m_doElectronCuts;
bool m_doPhotonCuts;
bool m_doTauCuts;
bool m_doMuonCuts;
bool m_doMuonEloss;
bool m_doIsolMuonEloss;
bool m_doJVTCut;
bool m_useCaloJetTerm;
bool m_useTrackJetTerm;
private:
// tools
met::METMaker* m_metmaker; //!
TauAnalysisTools::TauSelectionTool* m_tauSelTool; //!
// variables that don't get filled at submission time should be
// protected from being send from the submission node to the worker
// node (done by the //!)
public:
// Tree *myTree; //!
// TH1 *myHist; //!
// this is a standard constructor
METConstructor (std::string className = "METConstructor");
// these are the functions inherited from Algorithm
virtual EL::StatusCode setupJob (EL::Job& job);
virtual EL::StatusCode fileExecute ();
virtual EL::StatusCode histInitialize ();
virtual EL::StatusCode changeInput (bool firstFile);
virtual EL::StatusCode initialize ();
virtual EL::StatusCode execute ();
virtual EL::StatusCode postExecute();
virtual EL::StatusCode finalize();
virtual EL::StatusCode histFinalize();
// these are the functions not inherited from Algorithm
virtual EL::StatusCode configure ();
// this is needed to distribute the algorithm to the workers
ClassDef(METConstructor, 1);
};
#endif