 |
ATLAS Offline Software
|
Go to the documentation of this file.
5 #ifndef TAURECTOOLS_TAUWPDECORATOR_H
6 #define TAURECTOOLS_TAUWPDECORATOR_H
75 double transformScore(
double score,
double cutLow,
double effLow,
double cutHigh,
double effHigh)
const;
77 Gaudi::Property<bool>
m_useAbsEta{
this,
"UseAbsEta",
false,
"Whether we are flatterning electron veto WP"};
78 Gaudi::Property<bool>
m_defineWPs{
this,
"DefineWPs",
false,
"Whether to decorate the WPs"};
79 Gaudi::Property<std::string>
m_scoreName{
this,
"ScoreName",
"",
"Name of the original score"};
80 Gaudi::Property<std::string>
m_scoreNameTrans{
this,
"NewScoreName",
"",
"Name of the transformed score"};
81 Gaudi::Property<std::string>
m_file0p{
this,
"flatteningFile0Prong",
"",
"Calibration file name of 0-prong taus"};
82 Gaudi::Property<std::string>
m_file1p{
this,
"flatteningFile1Prong",
"",
"Calibration file name of 1-prong taus"};
83 Gaudi::Property<std::string>
m_file2p{
this,
"flatteningFile2Prong",
"",
"Calibration file name of 2-prong taus"};
84 Gaudi::Property<std::string>
m_file3p{
this,
"flatteningFile3Prong",
"",
"Calibration file name of 3-prong taus"};
85 Gaudi::Property<std::vector<int>>
m_EDMWPs{
this,
"CutEnumVals", {},
"Vector of WPs in the EDM"};
86 Gaudi::Property<std::vector<float>>
m_EDMWPEffs0p{
this,
"SigEff0P", {},
"Efficiency of each WP in EDM for 0-prong taus"};
87 Gaudi::Property<std::vector<float>>
m_EDMWPEffs1p{
this,
"SigEff1P", {},
"Efficiency of each WP in EDM for 1-prong taus"};
88 Gaudi::Property<std::vector<float>>
m_EDMWPEffs2p{
this,
"SigEff2P", {},
"Efficiency of each WP in EDM for 2-prong taus"};
89 Gaudi::Property<std::vector<float>>
m_EDMWPEffs3p{
this,
"SigEff3P", {},
"Efficiency of each WP in EDM for 3-prong taus"};
90 Gaudi::Property<std::vector<std::string>>
m_decorWPs{
this,
"DecorWPNames", {},
"Name of WPs"};
91 Gaudi::Property<std::vector<float>>
m_decorWPEffs0p{
this,
"DecorWPCutEffs0P", {},
"Efficiency of each WP to be docorated for 0-prong taus"};
92 Gaudi::Property<std::vector<float>>
m_decorWPEffs1p{
this,
"DecorWPCutEffs1P", {},
"Efficiency of each WP to be docorated for 1-prong taus"};
93 Gaudi::Property<std::vector<float>>
m_decorWPEffs2p{
this,
"DecorWPCutEffs2P", {},
"Efficiency of each WP to be docorated for 2-prong taus"};
94 Gaudi::Property<std::vector<float>>
m_decorWPEffs3p{
this,
"DecorWPCutEffs3P", {},
"Efficiency of each WP to be docorated for 3-prong taus"};
100 Gaudi::Property<std::string>
m_tauContainerName{
this,
"TauContainerName",
"",
"Name of TauJetContainer, must be set when using "};
104 "averageInteractionsPerCrossingKey",
105 "EventInfo.averageInteractionsPerCrossing",
106 "Decoration for Average Interaction Per Crossing"};
108 typedef std::pair<double, std::shared_ptr<TH2> >
m_pair_t;
121 #endif // TAURECTOOLS_TAUWPDECORATOR_H
Implementation of tool to decorate flattened BDT score and working points.
std::vector< SG::AuxElement::Accessor< char > > m_charDecors
std::map< int, double > m_yMax
Map of n-prong and the maximum value of y variables.
Gaudi::Property< std::vector< float > > m_EDMWPEffs2p
SG::WriteDecorHandleKeyArray< xAOD::TauJetContainer > m_decorHandleKeys
Gaudi::Property< std::vector< std::string > > m_decorWPs
Gaudi::Property< std::vector< float > > m_EDMWPEffs3p
std::map< int, double > m_xMax
Map of n-prong and the maximum value of x variables.
~TauWPDecorator()
Destructor.
double transformScore(double score, double cutLow, double effLow, double cutHigh, double effHigh) const
Obtain the flattened score.
virtual StatusCode initialize() override
Initialization of this tool.
Gaudi::Property< std::vector< float > > m_decorWPEffs0p
Gaudi::Property< std::vector< float > > m_EDMWPEffs0p
std::shared_ptr< std::vector< m_pair_t > > m_hists1p
Efficiency and corresponding score distributions of 1-prong taus.
Gaudi::Property< std::vector< int > > m_EDMWPs
Gaudi::Property< std::vector< float > > m_decorWPEffs1p
SG::ReadDecorHandleKey< xAOD::EventInfo > m_aveIntPerXKey
Gaudi::Property< std::string > m_scoreName
TauWPDecorator(const std::string &name="TauWPDecorator")
Constructor.
::StatusCode StatusCode
StatusCode definition for legacy code.
std::shared_ptr< std::vector< m_pair_t > > m_hists0p
Efficiency and corresponding score distributions of 0-prong taus.
Class describing a tau jet.
std::map< int, double > m_xMin
Map of n-prong and the minimum value of x variables.
StatusCode storeLimits(int nProng)
Obtain the limit of the dependent variables.
Gaudi::Property< std::vector< float > > m_EDMWPEffs1p
std::shared_ptr< std::vector< m_pair_t > > m_hists2p
Efficiency and corresponding score distributions of 2-prong taus.
Gaudi::Property< std::string > m_file3p
Gaudi::Property< std::string > m_file2p
Gaudi::Property< std::string > m_file0p
Gaudi::Property< std::string > m_file1p
virtual StatusCode execute(xAOD::TauJet &tau) const override
Executation of this tool.
std::map< int, double > m_yMin
Map of n-prong and the minimum value of y variables.
Gaudi::Property< bool > m_useAbsEta
Gaudi::Property< std::string > m_tauContainerName
Gaudi::Property< std::string > m_scoreNameTrans
Gaudi::Property< std::vector< float > > m_decorWPEffs3p
Property holding a SG store/key/clid/attr name from which a ReadDecorHandle is made.
Gaudi::Property< bool > m_defineWPs
std::shared_ptr< std::vector< m_pair_t > > m_hists3p
Efficiency and corresponding score distributions of 3-prong taus.
StatusCode retrieveHistos(int nProng)
Retrieve the histograms containing BDT/RNN score distributions as a function of dependent variables.
Gaudi::Property< std::vector< float > > m_decorWPEffs2p
std::pair< double, std::shared_ptr< TH2 > > m_pair_t