forked from UCATLAS/xAODAnaHelpers
/
BJetEfficiencyCorrector.h
83 lines (64 loc) · 2.43 KB
/
BJetEfficiencyCorrector.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
#ifndef xAODAnaHelpers_BJetEfficiencyCorrector_H
#define xAODAnaHelpers_BJetEfficiencyCorrector_H
// CP interface includes
#include "PATInterfaces/SystematicRegistry.h"
#include "PATInterfaces/SystematicSet.h"
#include "PATInterfaces/SystematicsUtil.h"
#include "PATInterfaces/SystematicVariation.h"
#include "PATInterfaces/ISystematicsTool.h"
// external tools include(s):
#include "xAODBTaggingEfficiency/BTaggingSelectionTool.h"
#include "xAODBTaggingEfficiency/BTaggingEfficiencyTool.h"
// algorithm wrapper
#include "xAODAnaHelpers/Algorithm.h"
class BJetEfficiencyCorrector : public xAH::Algorithm
{
// put your configuration variables here as public variables.
// that way they can be set directly from CINT and python.
public:
std::string m_inContainerName;
// systematics
bool m_runAllSyst;
std::string m_systName;
std::string m_outputSystName;
std::string m_corrFileName;
std::string m_jetAuthor;
std::string m_taggerName;
bool m_useDevelopmentFile;
bool m_coneFlavourLabel;
std::string m_operatingPt; // Operating point.
std::string m_decor; // The decoration key written to passing objects
std::string m_decorSF; // The decoration key written to passing objects
private:
bool m_isMC; //!
// tools
BTaggingSelectionTool *m_BJetSelectTool; //!
BTaggingEfficiencyTool *m_BJetEffSFTool; //!
// configuration variables
std::string m_operatingPtCDI; // the one CDI will understand
bool m_getScaleFactors;
std::vector<CP::SystematicSet> m_systList; //!
// 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:
// this is a standard constructor
BJetEfficiencyCorrector ();
// 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 ();
/// @cond
// this is needed to distribute the algorithm to the workers
ClassDef(BJetEfficiencyCorrector, 1);
/// @endcond
};
#endif