ATLAS Offline Software
Loading...
Searching...
No Matches
TauDefs.h
Go to the documentation of this file.
1// Dear emacs, this is -*- c++ -*-
2
3/*
4 Copyright (C) 2002-2021 CERN for the benefit of the ATLAS collaboration
5*/
6
7#ifndef XAODTAU_TAUDEFS_H
8#define XAODTAU_TAUDEFS_H
9
10// Local include(s):
11#include "Math/Vector4D.h"
12#include <bitset>
13
15namespace xAOD {
16 typedef ROOT::Math::LorentzVector<ROOT::Math::PtEtaPhiM4D<float> > PtEtaPhiMVectorF;
17
18 /* define type traits for xAOD Tau.
19 * needs to be outside of the TauJet namespace
20 */
21 // empty return type for all types T.
22 // Leads to a compilation failure if one tries to use it with other types then a specialization is given for.
23 template <class T>
25
26 // specialization for ints
27 template <>
28 struct xAODTAU_return_type<int> { typedef int type; };
29
30 // specialization for floats
31 template <>
32 struct xAODTAU_return_type<float> { typedef float type; };
33
34
36{
37 //-------------------------------------------------------------------------
38 // DO NOT CHANGE THE ORDER OF THE ENUMS!
39 // You can add, but changing the order may lead to disaster!
40 //-------------------------------------------------------------------------
41
42 //-------------------------------------------------------------------------
44 //-------------------------------------------------------------------------
45 enum TauID
46 {
48 // = 0,
52 Likelihood = 2, //deprecated
54 // = 3,
56 // = 4,
58 // = 5,
60 // = 6,
62 // = 7,
64 // = 8,
66 // = 9,
68 // = 10,
70 // = 11,
72 // = 12,
74 // = 13,
76 // = 14,
82 SafeLikelihood = 17, //deprecated
86 // = 19, // new
88 PanTauScore= 20, //deprecated
97 };
98
99 //-------------------------------------------------------------------------
101 //-------------------------------------------------------------------------
103 {
110 };
111
112 //-------------------------------------------------------------------------
114 //-------------------------------------------------------------------------
116 {
118 // = 1,
119 // = 2,
120 // = 3,
122 // = 5,
123 // = 6,
124 // = 7,
125 // = 8,
126 // = 9,
127 // = 10,
128 // = 11,
129 // = 12,
130 // = 13,
131 // = 14,
135 JetBDTSigVeryLoose = 18, // new in r21
136 JetBDTSigLoose = 19, // rename (add sig)
137 JetBDTSigMedium = 20, // rename (add sig)
138 JetBDTSigTight = 21, // rename (add sig)
142 JetBDTBkgLoose = 25, // new
143 JetBDTBkgMedium = 26, // new
144 JetBDTBkgTight = 27, // new
148 JetRNNSigTight = 31, // DON'T USE ANYTHING ABOVE 31, IsTauFlag is encoded on 32 bits!
149 };
150
151 //-------------------------------------------------------------------------
154 //-------------------------------------------------------------------------
156 {
164 // etEflow=7,//r21 cleanup
165 // mEflow=8,//r21 cleanup
166 // /// name accessors for electron LLH variables
167 // ele_E237E277=9,//r21 cleanup
168 // ele_PresamplerFraction=10,//r21 cleanup
169 // ele_ECALFirstFraction=11,//r21 cleanup
170 //name accessors for topocluster ID variables
185 //
186 // Applicable for calo seeded tau reconstruction
187 //
206 // etEMCalib=27,//r21 cleanup
208 // etHadCalib=28,//r21 cleanup
210 // seedCalo_eta=29,//r21 cleanup same as detectorAxis Eta
212 // seedCalo_phi=30,//r21 cleanup same as detectorAxis Phi
227
228
233
235 //EM_TES_scale=41,//r21 cleanup
237 //LC_TES_precalib=42,//r21 cleanup
238
239
241 //
242 // Cell-based energies in rings getters/setters
243 //
263
264 //substructure details
265 //nPi0=52,//r21 cleanup
267 //ptRatioEflow=54,//r21 cleanup
268
269 //nPi0Topo=55, //deprecated//r21 cleanup
270 //nChargedTopo=56,//r21 cleanup
271 //etEflowTopo=57,//r21 cleanup
272 //mEflowTopo=58,//r21 cleanup
273 //ptRatioEflowTopo=59,//r21 cleanup
274
275
276 //trigger details
280
281 //for TES parameters
284
291
294
304
305
306
307 //currently dynamic enums
308 // CaloSamplingEtaEM
309 // CaloSamplingEtaHad
310 // CaloSamplingPhiEM
311 // CaloSamplingPhiHad
317 GhostMuonSegmentCount=105,//this is just a copy of the jet-seed detail
321
324 nModifiedIsolationTracks=111,//no static variable for now
327
328 };
329
330
331 //-------------------------------------------------------------------------
333 //-------------------------------------------------------------------------
335 {
341 // =5,
342 // =6,
343 PanTauCellBasedProto=7, //4-vector by using CellBased pfos in seed
344 PanTauCellBased=8, //4-vector by adjusting CellBased pfos using decay mode
347 };
348
349
350
351 //-------------------------------------------------------------------------
353 //-------------------------------------------------------------------------
382
383
385 {
391 Mode_Other=5, // for 2p, 4p, 5p taus
392 Mode_NotSet=6, // for 0p, >= 6p
393 Mode_Error=7, // use this as initialisation
394 };
395
396 //-------------------------------------------------------------------------
398 //-------------------------------------------------------------------------
400 {
403 coreTrack = 2, //all tracks dR<0.2
404 wideTrack = 3, //all tracks 0.2<dR<0.4
405 passTrkSelector = 4, // pass the old track selector tool; old tau tracks are coreTrack&passTrkSelector
406 classifiedCharged = 5, // classified as charged track from tau decay
407 classifiedIsolation = 6, // track from the same interaction as the tau candidate: to be used for isolation
408 classifiedConversion = 7, // classified as conversion by the global track classifier
409 classifiedFake = 8, // track classified as pileup or fake tracks (should not be used for isolation computation)
410 unclassified = 9, // helper enum for not yet classified tracks
411 passTrkSelectionTight = 10, //pass the xAOD Tight track selection
412 modifiedIsolationTrack = 11, //passTrkSelector && !classifiedCharged
413 LargeRadiusTrack = 12, // Large Radius Track
414 //if you add another flag, you'll need to check the track sorting alg, it assumes unclassified is the last flag *This should be fixed in TauTrackClassifier now*
415 //Track sorting just requires that the classifiedXXX bits are consecutive, charged is first (of classifiedXXX), and fake is last (of classifiedXXX)
416 };
417
425
426}//end namespace TauJetParameters
427
428}
429
430#endif // XAODTAU_TAUDEFS_H
TauTrackFlag
Enum for tau track flags.
Definition TauDefs.h:400
TauCalibType
Enum for tau calib type.
Definition TauDefs.h:335
Detail
Enum for tau parameters - used mainly for backward compatibility with the analysis code.
Definition TauDefs.h:156
@ hadRadius
Get hadron calorimeter radius.
Definition TauDefs.h:192
@ EMRadius
Get E_T radius.
Definition TauDefs.h:190
@ secMaxStripEt
migrate only seedTrk_ variables which are used in reco and ID and without prefix
Definition TauDefs.h:230
@ TauJetVtxFraction
@Tau Jet Vertex Fraction
Definition TauDefs.h:262
@ stripWidth2
Get strip width ^2.
Definition TauDefs.h:202
@ ipSigLeadTrkCorrected
pileup-corrected ID variables
Definition TauDefs.h:296
@ topoInvMass
get invariant mass from topoclusters of jet associated to tau candidate
Definition TauDefs.h:177
@ etHadAtEMScale
Get Hadronic energy at EM scale.
Definition TauDefs.h:196
@ isolFrac
Get isolation fraction.
Definition TauDefs.h:198
@ lead2ClusterEOverAllClusterE
Get sum of 2 leading cluster energy over all cluster energy.
Definition TauDefs.h:218
@ topoMeanDeltaR
get mean distance to leading topocluster for topoclusters of jet associated to tau candidate
Definition TauDefs.h:181
@ trkRmsDist
Get the RMS of track distance to calorimeter seed.
Definition TauDefs.h:216
@ nStrip
Get number of strips.
Definition TauDefs.h:204
@ cellBasedEnergyRing4
Ring 4: 0.10 < R < 0.125.
Definition TauDefs.h:252
@ effTopoMeanDeltaR
get mean distance to leading topocluster for effective topoclusters of jet associated to tau candidat...
Definition TauDefs.h:183
@ caloIso
Get sum of transvers energy of clusters around jet seed within 0.2 < dR < 0.4.
Definition TauDefs.h:222
@ trkAvgDist
Get calibrated EM transverse energy (DEPRECATED since r19)
Definition TauDefs.h:214
@ cellBasedEnergyRing6
Ring 6: 0.15 < R < 0.2.
Definition TauDefs.h:256
@ cellBasedEnergyRing5
Ring 5: 0.125 < R < 0.15.
Definition TauDefs.h:254
@ effTopoInvMass
get invariant mass from effective topoclusters of jet associated to tau candidate
Definition TauDefs.h:179
@ cellBasedEnergyRing7
Ring 7: 0.2 < R < 0.4.
Definition TauDefs.h:258
@ etEMAtEMScale
Get EM energy at EM scale.
Definition TauDefs.h:194
@ TRT_NHT_OVER_NLT
TRT hits high threshold over low threshold.
Definition TauDefs.h:260
@ centFrac
Get centrality fraction.
Definition TauDefs.h:200
@ caloIsoCorrected
Get sum of transvers energy of clusters around jet seed within 0.2 < dR < 0.4 (pile up corrected)
Definition TauDefs.h:224
@ cellBasedEnergyRing2
Ring 2: 0.05 < R < 0.075.
Definition TauDefs.h:248
@ numTopoClusters
get number of topocluster constituents of jet associated to tau candidate
Definition TauDefs.h:173
@ numEffTopoClusters
get number of effective topocluster constituents of jet associated to tau candidate !...
Definition TauDefs.h:175
@ cellBasedEnergyRing3
Ring 3: 0.075 < R < 0.10.
Definition TauDefs.h:250
@ cellBasedEnergyRing1
EM+TES final scale.
Definition TauDefs.h:246
@ dRmax
Get maximal dR of tracks associated to calo-seeded tau.
Definition TauDefs.h:226
@ lead3ClusterEOverAllClusterE
Get sum of 3 leading cluster energy over all cluster energy.
Definition TauDefs.h:220
PanTauDetails
Enum for tau details (scalar) calculated by pantau.
Definition TauDefs.h:355
@ PanTau_BDTVar_Neutral_PID_BDTValues_BDTSort_2
Definition TauDefs.h:371
@ PanTau_BDTVar_Charged_JetMoment_EtDRxTotalEt
Definition TauDefs.h:367
@ PanTau_BDTVar_Neutral_Ratio_1stBDTEtOverEtAllConsts
Definition TauDefs.h:372
@ PanTau_BDTVar_Neutral_PID_BDTValues_BDTSort_1
Definition TauDefs.h:370
@ PanTau_BDTVar_Combined_DeltaR1stNeutralTo1stCharged
Definition TauDefs.h:375
@ PanTau_BDTVar_Neutral_Ratio_EtOverEtAllConsts
Definition TauDefs.h:373
@ PanTau_BDTVar_Charged_StdDev_Et_WrtEtAllConsts
Definition TauDefs.h:368
@ PanTau_BDTVar_Neutral_Shots_NPhotonsInSeed
Definition TauDefs.h:374
VetoFlags
Enum for Veto flags.
Definition TauDefs.h:103
@ ElectronFlag
electron veto flag based on cuts (used by tau1p3p)
Definition TauDefs.h:105
@ EgammaFlag
electron veto flag based on egamma information (used by tau1p3p)
Definition TauDefs.h:107
@ MuonFlag
muon veto flag based on ETCalo cut (used by tau1p3p)
Definition TauDefs.h:109
TauID
Enum for discriminants.
Definition TauDefs.h:46
@ RNNEleScore
RNN score for Ele rejection (not transformed)
Definition TauDefs.h:94
@ PanTauScore
needed by TauJet_v1/2
Definition TauDefs.h:88
@ BDTJetScore
Boosted Decision Tree socre for Jet rejection (not transformed)
Definition TauDefs.h:78
@ Likelihood
needed by TauJet_v1/2
Definition TauDefs.h:52
@ EleMatchLikelihoodScore
Likelihood of matched electron (PassEleOLR)
Definition TauDefs.h:50
@ BDTEleScore
Boosted Decision Tree score for electron rejection.
Definition TauDefs.h:80
@ RNNEleScoreSigTrans
RNN score which is signal transformed/flattened.
Definition TauDefs.h:96
@ RNNJetScore
RNN score for Jet rejection (not transformed)
Definition TauDefs.h:90
@ BDTJetScoreSigTrans
BDT score which is signal transformed/flattened.
Definition TauDefs.h:84
@ SafeLikelihood
needed by TauJet_v1/2
Definition TauDefs.h:82
@ RNNJetScoreSigTrans
RNN score which is signal transformed/flattened.
Definition TauDefs.h:92
IsTauFlag
Enum for IsTau flags.
Definition TauDefs.h:116
ICaloAffectedTool is abstract interface for tools checking if 4 mom is in calo affected region.
ROOT::Math::LorentzVector< ROOT::Math::PtEtaPhiM4D< float > > PtEtaPhiMVectorF
setRawEt setRawPhi int