ATLAS Offline Software
Loading...
Searching...
No Matches
TauSelectionTool.cxx
Go to the documentation of this file.
1/*
2 Copyright (C) 2002-2025 CERN for the benefit of the ATLAS collaboration
3*/
4
5// Local include(s):
8
9// Framework include(s):
11
12// ROOT include(s)
13#include "TEnv.h"
14#include "THashList.h"
15
16using namespace TauAnalysisTools;
17
18//=================================PUBLIC-PART==================================
19//______________________________________________________________________________
20TauSelectionTool::TauSelectionTool( const std::string& name )
21 : asg::AsgMetadataTool( name )
22 , m_sJetIDWP("JETIDNONE")
23 , m_sEleIDWP("ELEIDNONE")
24 , m_fOutFile(nullptr)
25 , m_aAccept( "TauSelection" )
26{}
27
28//______________________________________________________________________________
33
34//______________________________________________________________________________
36{
37
38 m_vPtRegion = m_vecPtRegion.value();
41 m_vNTracks = m_vecNTracks.value();
42
43 bool bConfigViaConfigFile = !m_sConfigPath.empty();
44 bool bConfigViaProperties = false;
45 if (!bConfigViaProperties and !m_vPtRegion.empty()) bConfigViaProperties = true;
46 if (!bConfigViaProperties and !std::isnan(m_dPtMin.value())) bConfigViaProperties = true;
47 if (!bConfigViaProperties and !std::isnan(m_dPtMax.value())) bConfigViaProperties = true;
48 if (!bConfigViaProperties and !m_vAbsEtaRegion.empty()) bConfigViaProperties = true;
49 if (!bConfigViaProperties and !std::isnan(m_dAbsEtaMin.value())) bConfigViaProperties = true;
50 if (!bConfigViaProperties and !std::isnan(m_dAbsEtaMax.value())) bConfigViaProperties = true;
51 if (!bConfigViaProperties and !m_vAbsCharges.empty()) bConfigViaProperties = true;
52 if (!bConfigViaProperties and !std::isnan(m_iAbsCharge.value())) bConfigViaProperties = true;
53 if (!bConfigViaProperties and !m_vNTracks.empty()) bConfigViaProperties = true;
54 if (!bConfigViaProperties and !std::isnan(m_iNTrack.value())) bConfigViaProperties = true;
55 if (!bConfigViaProperties and !std::isnan(m_dJetRNNSigTransMin.value())) bConfigViaProperties = true;
56 if (!bConfigViaProperties and !std::isnan(m_dGNTauSigTransMin.value())) bConfigViaProperties = true;
57 if (!bConfigViaProperties and m_iJetIDWP != TauAnalysisTools::JetID::JETIDNONE) bConfigViaProperties = true;
58 if (!bConfigViaProperties and !std::isnan(m_dEleRNNSigTransMin.value())) bConfigViaProperties = true;
59 if (!bConfigViaProperties and m_iEleIDWP != 0) bConfigViaProperties = true;
60 if (!bConfigViaProperties and m_bMuonOLR) bConfigViaProperties = true;
61
62 if (bConfigViaConfigFile and bConfigViaProperties)
63 {
64 ATH_MSG_ERROR("Configured tool via setProperty and configuration file, which may lead to unexpected configuration. Please setup the TauSelectionTool using only one of the two methods. For further details please refer to the documentation https://gitlab.cern.ch/atlas/athena/blob/main/PhysicsAnalysis/TauID/TauAnalysisTools/doc/README-TauSelectionTool.rst or contact the TauCP group.");
65 return StatusCode::FAILURE;
66 }
67 if (!bConfigViaConfigFile and !bConfigViaProperties)
68 {
69 ATH_MSG_WARNING("No cut configuration provided, the tool will not do anything. For further details please refer to the documentation:");
70 ATH_MSG_WARNING("https://gitlab.cern.ch/atlas/athena/blob/main/PhysicsAnalysis/TauID/TauAnalysisTools/doc/README-TauSelectionTool.rst");
71 return StatusCode::SUCCESS;
72 }
73
74 if (bConfigViaConfigFile)
75 {
76 TEnv rEnv;
77 std::string sInputFilePath = PathResolverFindCalibFile(m_sConfigPath);
78
79 if (!testFileForEOFContainsCharacters(sInputFilePath))
80 ATH_MSG_WARNING("Config file for TauSelectionTool with path "<<sInputFilePath<<" does not contain an empty last line. The tool might not be properly configured!");
81
82 rEnv.ReadFile(sInputFilePath.c_str(),
83 kEnvAll);
84
85 std::vector<std::string> vCuts;
86 // if Cuts are specified in the config file take these ones, if not take all
87 // specified in the config
88 if (rEnv.Defined("SelectionCuts"))
89 TauAnalysisTools::split(rEnv, "SelectionCuts", ' ', vCuts);
90 else
91 {
92 auto lList = rEnv.GetTable();
93 for( Int_t i = 0; i < lList->GetEntries(); ++i )
94 {
95 vCuts.push_back( lList->At( i )->GetName() );
96 }
97 }
98
99 int iSelectionCuts = 0;
100
101 for (const std::string& sCut : vCuts)
102 {
103 if (sCut == "PtRegion")
104 {
105 iSelectionCuts = iSelectionCuts | CutPt;
106 if (m_vPtRegion.empty())
107 TauAnalysisTools::split(rEnv,"PtRegion", ';', m_vPtRegion);
108 }
109 else if (sCut == "PtMin")
110 {
111 iSelectionCuts = iSelectionCuts | CutPt;
112 if (std::isnan(m_dPtMin.value()))
113 m_dPtMin = rEnv.GetValue("PtMin",NAN);
114 }
115 else if (sCut == "PtMax")
116 {
117 iSelectionCuts = iSelectionCuts | CutPt;
118 if (std::isnan(m_dPtMax.value()))
119 m_dPtMax = rEnv.GetValue("PtMax",NAN);
120 }
121 else if (sCut == "AbsEtaRegion")
122 {
123 iSelectionCuts = iSelectionCuts | CutAbsEta;
124 if (m_vAbsEtaRegion.empty())
125 TauAnalysisTools::split(rEnv,"AbsEtaRegion", ';', m_vAbsEtaRegion);
126 }
127 else if (sCut == "AbsEtaMin")
128 {
129 iSelectionCuts = iSelectionCuts | CutAbsEta;
130 if (std::isnan(m_dAbsEtaMin.value()))
131 m_dAbsEtaMin = rEnv.GetValue("AbsEtaMin",NAN);
132 }
133 else if (sCut == "AbsEtaMax")
134 {
135 iSelectionCuts = iSelectionCuts | CutAbsEta;
136 if (std::isnan(m_dAbsEtaMax.value()))
137 m_dAbsEtaMax = rEnv.GetValue("AbsEtaMax",NAN);
138 }
139 else if (sCut == "AbsCharges")
140 {
141 iSelectionCuts = iSelectionCuts | CutAbsCharge;
142 if (m_vAbsCharges.empty())
143 TauAnalysisTools::split(rEnv,"AbsCharges", ';', m_vAbsCharges);
144 }
145 else if (sCut == "AbsCharge")
146 {
147 iSelectionCuts = iSelectionCuts | CutAbsCharge;
148 if (std::isnan(m_iAbsCharge.value()))
149 m_iAbsCharge = rEnv.GetValue("AbsCharge",NAN);
150 }
151 else if (sCut == "NTracks")
152 {
153 iSelectionCuts = iSelectionCuts | CutNTrack;
154 if (m_vNTracks.empty())
155 TauAnalysisTools::split(rEnv,"NTracks", ';', m_vNTracks);
156 }
157 else if (sCut == "NTrack")
158 {
159 iSelectionCuts = iSelectionCuts | CutNTrack;
160 if (std::isnan(m_iNTrack.value()))
161 m_iNTrack = rEnv.GetValue("NTrack",NAN);
162 }
163 else if (sCut == "JetRNNSigTransMin")
164 {
165 iSelectionCuts = iSelectionCuts | CutJetRNNScoreSigTrans;
166 if (std::isnan(m_dJetRNNSigTransMin.value()))
167 m_dJetRNNSigTransMin = rEnv.GetValue("JetRNNSigTransMin",NAN);
168 }
169 else if (sCut == "GNTauSigTransMin")
170 {
171 iSelectionCuts = iSelectionCuts | CutGNTauScoreSigTrans;
172 if (std::isnan(m_dGNTauSigTransMin.value()))
173 m_dGNTauSigTransMin = rEnv.GetValue("GNTauSigTransMin",NAN);
174
175 // check if using GNTau
176 m_useGNTau = true;
177 }
178 else if (sCut == "EleRNNSigTransMin")
179 {
180 iSelectionCuts = iSelectionCuts | CutEleRNNScoreSigTrans;
181 if (std::isnan(m_dEleRNNSigTransMin.value()))
182 m_dEleRNNSigTransMin = rEnv.GetValue("EleRNNSigTransMin",NAN);
183 }
184 else if (sCut == "JetIDWP")
185 {
186 iSelectionCuts = iSelectionCuts | CutJetIDWP;
187 if (m_iJetIDWP == JETIDNONE){
188 m_sJetIDWP = rEnv.GetValue("JetIDWP","JETIDNONE");
190 }
191 // check for possible mis-config in Tau selection
192 for (const std::string& checkCut : vCuts){
193 if (checkCut.find("SigTrans") != std::string::npos) {
194 ATH_MSG_ERROR("Misconfig due to JetIDWP and SigTrans cuts both present in the config file. Please CHECK carefully config file again");
195 return StatusCode::FAILURE;
196 }
197 }
198 }
199 else if (sCut == "EleIDWP")
200 {
201 iSelectionCuts = iSelectionCuts | CutEleIDWP;
203 m_sEleIDWP = rEnv.GetValue("EleIDWP","ELEIDNONE");
205 }
206 }
207 else if (sCut == "MuonOLR")
208 {
209 iSelectionCuts = iSelectionCuts | CutMuonOLR;
210 if (!m_bMuonOLR)
211 m_bMuonOLR = rEnv.GetValue("MuonOLR",false);
212 }
213 else ATH_MSG_WARNING("Cut " << sCut << " is not available");
214 }
215
216 if (m_iSelectionCuts == NoCut)
217 m_iSelectionCuts = iSelectionCuts;
218 }
219
220 // check if using GNTau
221 if(m_sJetIDWP.find("GNTAU") != std::string::npos)
222 m_useGNTau = true;
223
224 // initialise the ReadHandleKey of the muon container when the muon veto is applied
226
227 ATH_CHECK( m_tauContainerKey.initialize() );
228
229 // initialise the ReadDecorHandleKey if GNTau is applied
230 if (m_useGNTau) {
231 ATH_CHECK( m_GNTauDecorKey.assign(m_tauContainerKey.key()+".GNTauScoreSigTrans_v0prune"));
232 }
233 ATH_CHECK( m_GNTauDecorKey.initialize( m_useGNTau ) );
234
235 // initialise the ReadDecorHandleKey if eVeto is applied
237 ATH_CHECK( m_eVetoDecorKey.assign(m_tauContainerKey.key()+".RNNEleScoreSigTrans_v"+std::to_string(m_iEleIDVersion)) );
238 }
240
241 // specify all available cut descriptions
242 using map_type = std::map<SelectionCuts, std::unique_ptr<TauAnalysisTools::TauSelectionCut>>;
243 using pair_type = map_type::value_type;
244
245 pair_type elements[] =
246 {
247 {CutPt, std::make_unique<TauAnalysisTools::TauSelectionCutPt>(this)},
248 {CutAbsEta, std::make_unique<TauAnalysisTools::TauSelectionCutAbsEta>(this)},
249 {CutAbsCharge, std::make_unique<TauAnalysisTools::TauSelectionCutAbsCharge>(this)},
250 {CutNTrack, std::make_unique<TauAnalysisTools::TauSelectionCutNTracks>(this)},
251 {CutJetRNNScoreSigTrans, std::make_unique<TauAnalysisTools::TauSelectionCutRNNJetScoreSigTrans>(this)},
252 {CutGNTauScoreSigTrans, std::make_unique<TauAnalysisTools::TauSelectionCutGNTauScoreSigTrans>(this)},
253 {CutJetIDWP, std::make_unique<TauAnalysisTools::TauSelectionCutJetIDWP>(this)},
254 {CutEleRNNScoreSigTrans, std::make_unique<TauAnalysisTools::TauSelectionCutRNNEleScoreSigTrans>(this)},
255 {CutEleIDWP, std::make_unique<TauAnalysisTools::TauSelectionCutEleIDWP>(this)},
256 {CutMuonOLR, std::make_unique<TauAnalysisTools::TauSelectionCutMuonOLR>(this)}
257 };
258
259 m_cMap = { std::make_move_iterator( begin(elements) ), std::make_move_iterator( end(elements) ) };
260
261 ATH_MSG_INFO( "Initializing TauSelectionTool" );
269
272 PrintConfigValue ("AbsCharge", m_vAbsCharges);
273 PrintConfigValue ("NTrack", m_vNTracks);
274 PrintConfigRegion ("RNNJetScoreSigTrans", m_vJetRNNSigTransRegion);
275 PrintConfigRegion ("GNTauScoreSigTrans", m_vGNTauSigTransRegion);
276 PrintConfigRegion ("RNNEleScoreSigTrans", m_vEleRNNSigTransRegion);
277 PrintConfigValue ("JetIDWP", m_sJetIDWP);
278 PrintConfigValue ("JetIDWP ENUM",m_iJetIDWP);
279 PrintConfigValue ("EleIDWP", m_sEleIDWP);
280 PrintConfigValue ("EleIDWP ENUM",m_iEleIDWP);
281 PrintConfigValue ("EleIDVersion",m_iEleIDVersion);
282 PrintConfigValue ("MuonOLR", m_bMuonOLR);
283
284 std::string sCuts = "";
285 if (m_iSelectionCuts & CutPt) sCuts += "Pt ";
286 if (m_iSelectionCuts & CutAbsEta) sCuts += "AbsEta ";
287 if (m_iSelectionCuts & CutAbsCharge) sCuts += "AbsCharge ";
288 if (m_iSelectionCuts & CutNTrack) sCuts += "NTrack ";
289 if (m_iSelectionCuts & CutJetRNNScoreSigTrans) sCuts += "JetRNNScoreSigTrans ";
290 if (m_iSelectionCuts & CutGNTauScoreSigTrans) sCuts += "GNTauScoreSigTrans ";
291 if (m_iSelectionCuts & CutJetIDWP) sCuts += "JetIDWP ";
292 if (m_iSelectionCuts & CutEleRNNScoreSigTrans) sCuts += "EleRNNScoreSigTrans ";
293 if (m_iSelectionCuts & CutEleIDWP) sCuts += "EleIDWP ";
294 if (m_iSelectionCuts & CutMuonOLR) sCuts += "MuonOLR ";
295
296 ATH_MSG_DEBUG( "cuts: " << sCuts);
297
300
301 for ( const auto& entry : m_cMap ) {
302 if ( m_iSelectionCuts &entry.first ) {
303 entry.second->setAcceptInfo(m_aAccept);
304 }
305 }
306
307 return StatusCode::SUCCESS;
308}
309
310
311//______________________________________________________________________________
313{
314 return StatusCode::SUCCESS;
315}
316
317//______________________________________________________________________________
319{
320 return m_aAccept;
321}
322
323//______________________________________________________________________________
325{
326 // Check if this is a tau:
327 if( xP->type() != xAOD::Type::Tau )
328 {
329 ATH_MSG_ERROR( "accept(...) Function received a non-tau" );
330 return asg::AcceptData (&m_aAccept);
331 }
332
333 // Cast it to a tau:
334 const xAOD::TauJet* xTau = dynamic_cast< const xAOD::TauJet* >( xP );
335 if( ! xTau )
336 {
337 ATH_MSG_FATAL( "accept(...) Failed to cast particle to tau" );
338 return asg::AcceptData (&m_aAccept);
339 }
340
341 // Let the specific function do the work:
342 return accept( *xTau );
343}
344
345//______________________________________________________________________________
347{
348 asg::AcceptData acceptData (&m_aAccept);
349
350 int iNBin = 0;
351
353 {
354 // fill cutflow 'All' bin
355 m_hCutFlow->Fill(iNBin);
356 // fill main distributions before all cuts
357 for (const auto& entry : m_cMap)
358 entry.second->fillHistogramCutPre(xTau);
359 }
360 try
361 {
362 for (const auto& entry : m_cMap)
363 {
364 if (m_iSelectionCuts & entry.first)
365 {
366 if (!entry.second->accept(xTau, acceptData))
367 return acceptData;
368 else
369 {
371 {
372 // fill cutflow after each passed cut
373 iNBin++;
374 m_hCutFlow->Fill(iNBin);
375 }
376 }
377 }
378 }
379 }
380 catch (const std::runtime_error& error)
381 {
382 // LEGACY: In practical terms this should probably just throw, not
383 // print a warning/error and then continue on. However, I leave
384 // that to the experts who probably had a reason not to let the
385 // exception escape. For now I just downgraded it from error to
386 // warning and limited the number of warnings (04 Jan 22).
387 static std::atomic<uint64_t> warning_count (0u);
388 auto mycount = ++ warning_count;
389 if (mycount < 10u)
390 {
391 ATH_MSG_WARNING(error.what());
392 if (mycount == 9u)
393 ATH_MSG_WARNING ("this is your last warning");
394 }
395 }
396
397 // fill main distributions after all cuts
399 {
400 for (const auto& entry : m_cMap)
401 entry.second->fillHistogramCut(xTau);
402 }
403
404 // // Return the result:
405 return acceptData;
406}
407
408//______________________________________________________________________________
409void TauSelectionTool::setOutFile( TFile* fOutFile )
410{
411 m_fOutFile = fOutFile;
412}
413
414//______________________________________________________________________________
416{
418 ATH_MSG_WARNING("CreateControlPlots was set to true, but no valid file pointer was provided");
420 {
422 m_fOutFile->mkdir((this->name()+"_control").c_str());
423 m_fOutFile->cd((this->name()+"_control").c_str());
425 m_hCutFlow->Write();
426
427 for (const auto& entry : m_cMap)
428 entry.second->writeControlHistograms();
429 }
430}
431
432
433//=================================PRIVATE-PART=================================
435{
436 // count number of cuts
437 int iNBins = 0;
438 for (const auto& entry : m_cMap)
439 if (m_iSelectionCuts & entry.first)
440 iNBins++;
441 // create cutflow histogram with iNBins+1 bins, where first bin is 'All' bin
442 m_hCutFlow = std::make_shared<TH1F>("hCutFlow","CutFlow;; events",iNBins+1,0,iNBins+1);
443 m_hCutFlow->GetXaxis()->SetBinLabel(1,"All");
444
445 // reusing this variable to reduce overhead
446 iNBins = 2;
447 // set bin labels
448 for (const auto& entry : m_cMap)
449 if (m_iSelectionCuts & entry.first)
450 {
451 m_hCutFlow->GetXaxis()->SetBinLabel(iNBins, entry.second->getName().c_str());
452 iNBins++;
453 }
454}
455
456//______________________________________________________________________________
457template<typename T, typename U>
458void TauSelectionTool::FillRegionVector(std::vector<T>& vRegion, U tMin, U tMax) const
459{
460 if (!vRegion.empty())
461 return;
462 if (tMin == tMin) // if tMin is NAN, then this assumption fails and -inf is added to the vector
463 vRegion.push_back(tMin);
464 else
465 vRegion.push_back(-std::numeric_limits<T>::infinity());
466
467 if (tMax == tMax) // if tMax is NAN, then this assumption fails and inf is added to the vector
468 vRegion.push_back(tMax);
469 else
470 vRegion.push_back(std::numeric_limits<T>::infinity());
471}
472
473//______________________________________________________________________________
474template<typename T, typename U>
475void TauSelectionTool::FillValueVector(std::vector<T>& vRegion, U tVal) const
476{
477 if (!vRegion.empty())
478 return;
479 if (tVal == tVal) // if tMax is NAN, then this assumption fails and nothing is added to the vector
480 vRegion.push_back(tVal);
481}
482
483//______________________________________________________________________________
484template<typename T>
485void TauSelectionTool::PrintConfigRegion(const std::string& sCutName, std::vector<T>& vRegion) const
486{
487 unsigned int iNumRegion = vRegion.size()/2;
488 for( unsigned int iRegion = 0; iRegion < iNumRegion; iRegion++ )
489 {
490 ATH_MSG_DEBUG( sCutName<<": " << vRegion.at(iRegion*2) << " to " << vRegion.at(iRegion*2+1) );
491 }
492}
493
494//______________________________________________________________________________
495template<typename T>
496void TauSelectionTool::PrintConfigValue(const std::string& sCutName, std::vector<T>& vRegion) const
497{
498 for (auto tVal : vRegion)
499 ATH_MSG_DEBUG( sCutName<<": " << tVal );
500}
501
502//______________________________________________________________________________
503template<typename T>
504void TauSelectionTool::PrintConfigValue(const std::string& sCutName, T& tVal) const
505{
506 ATH_MSG_DEBUG( sCutName<<": " << tVal );
507}
508
509//______________________________________________________________________________
510int TauSelectionTool::convertStrToJetIDWP(const std::string& sJetIDWP) const
511{
512 if (sJetIDWP == "JETIDNONE") return int(JETIDNONE);
513 else if (sJetIDWP == "JETIDRNNVERYLOOSE") return int(JETIDRNNVERYLOOSE);
514 else if (sJetIDWP == "JETIDRNNLOOSE") return int(JETIDRNNLOOSE);
515 else if (sJetIDWP == "JETIDRNNMEDIUM") return int(JETIDRNNMEDIUM);
516 else if (sJetIDWP == "JETIDRNNTIGHT") return int(JETIDRNNTIGHT);
517 else if (sJetIDWP == "JETIDGNTAUVERYLOOSE") return int(JETIDGNTAUVERYLOOSE);
518 else if (sJetIDWP == "JETIDGNTAULOOSE") return int(JETIDGNTAULOOSE);
519 else if (sJetIDWP == "JETIDGNTAUMEDIUM") return int(JETIDGNTAUMEDIUM);
520 else if (sJetIDWP == "JETIDGNTAUTIGHT") return int(JETIDGNTAUTIGHT);
521
522 ATH_MSG_ERROR( "jet ID working point "<<sJetIDWP<<" is unknown, the JetIDWP cut will not accept any tau!" );
523 return -1;
524}
525
526//______________________________________________________________________________
527int TauSelectionTool::convertStrToEleIDWP(const std::string& sEleIDWP) const
528{
529 if (sEleIDWP == "ELEIDNONE") return int(ELEIDNONE);
530 else if (sEleIDWP == "ELEIDRNNLOOSE") return int(ELEIDRNNLOOSE);
531 else if (sEleIDWP == "ELEIDRNNMEDIUM") return int(ELEIDRNNMEDIUM);
532 else if (sEleIDWP == "ELEIDRNNTIGHT") return int(ELEIDRNNTIGHT);
533
534 ATH_MSG_ERROR( "electron ID working point " << sEleIDWP << " is unknown, the EleIDWP cut will not accept any tau!" );
535 return -1;
536}
537
#define ATH_CHECK
Evaluate an expression and check for errors.
#define ATH_MSG_ERROR(x)
#define ATH_MSG_FATAL(x)
#define ATH_MSG_INFO(x)
#define ATH_MSG_WARNING(x)
#define ATH_MSG_DEBUG(x)
std::string PathResolverFindCalibFile(const std::string &logical_file_name)
Gaudi::Property< float > m_dPtMax
void FillValueVector(std::vector< T > &vRegion, U tVal) const
virtual StatusCode beginEvent() override
Function called when a new events is loaded.
SG::ReadDecorHandleKey< xAOD::TauJetContainer > m_GNTauDecorKey
Gaudi::Property< float > m_dAbsEtaMax
std::vector< float > m_vJetRNNSigTransRegion
void FillRegionVector(std::vector< T > &vRegion, U tMin, U tMax) const
Gaudi::Property< std::string > m_sConfigPath
Gaudi::Property< std::vector< float > > m_vecAbsEtaRegion
Gaudi::Property< float > m_iNTrack
Gaudi::Property< int > m_iEleIDVersion
void PrintConfigRegion(const std::string &sCutName, std::vector< T > &vRegion) const
SG::ReadDecorHandleKey< xAOD::TauJetContainer > m_eVetoDecorKey
Gaudi::Property< float > m_dEleRNNSigTransMin
int convertStrToJetIDWP(const std::string &sJetIDWP) const
SG::ReadHandleKey< xAOD::TauJetContainer > m_tauContainerKey
virtual void setOutFile(TFile *fOutFile) override
Set output file for control histograms.
Gaudi::Property< std::vector< unsigned > > m_vecNTracks
asg::AcceptInfo m_aAccept
Object used to store selection information.
Gaudi::Property< float > m_dAbsEtaMin
SG::ReadHandleKey< xAOD::MuonContainer > m_muonContainerKey
Gaudi::Property< float > m_dPtMin
std::vector< float > m_vEleRNNSigTransRegion
std::map< SelectionCuts, std::unique_ptr< TauAnalysisTools::TauSelectionCut > > m_cMap
virtual StatusCode initialize() override
Function initialising the tool.
TauSelectionTool(const std::string &name)
Constructor for standalone usage.
int convertStrToEleIDWP(const std::string &sEleIDWP) const
virtual const asg::AcceptInfo & getAcceptInfo() const override
Get an object describing the "selection steps" of the tool.
virtual void writeControlHistograms() override
Write control histograms to output file.
Gaudi::Property< bool > m_bCreateControlPlots
virtual asg::AcceptData accept(const xAOD::IParticle *p) const override
Get the decision using a generic IParticle pointer.
Gaudi::Property< int > m_iSelectionCuts
std::vector< float > m_vGNTauSigTransRegion
Gaudi::Property< float > m_dGNTauSigTransMin
Gaudi::Property< std::vector< int > > m_vecAbsCharges
void PrintConfigValue(const std::string &sCutName, std::vector< T > &vRegion) const
Gaudi::Property< float > m_dJetRNNSigTransMin
Gaudi::Property< std::vector< float > > m_vecPtRegion
Gaudi::Property< float > m_iAbsCharge
AsgMetadataTool(const std::string &name)
Normal ASG tool constructor with a name.
Class providing the definition of the 4-vector interface.
virtual Type::ObjectType type() const =0
The type of the object as a simple enumeration.
void split(const std::string &sInput, const char cDelim, std::vector< std::string > &vOut)
bool testFileForEOFContainsCharacters(const std::string &sFileName)
returns true if last line in file is empty or the line starts with the number sign
@ Tau
The object is a tau (jet)
Definition ObjectType.h:49
TauJet_v3 TauJet
Definition of the current "tau version".