ATLAS Offline Software
TauTrack_v1.h
Go to the documentation of this file.
1 /*
2  Copyright (C) 2002-2020 CERN for the benefit of the ATLAS collaboration
3 */
4 
5 #ifndef XAODTAU_VERSIONS_TAUTRACK_V1_H
6 #define XAODTAU_VERSIONS_TAUTRACK_V1_H
7 
8 #include <cstdint>
9 
10 // Core include(s):
11 #include "AthLinks/ElementLink.h"
12 
13 // xAOD include(s):
14 #include "xAODBase/IParticle.h"
16 
17 // local include(s):
18 #include "xAODTau/TauDefs.h"
19 
20 // ROOT include(s):
21 #include "Math/Vector4D.h"
22 
23 namespace xAOD {
24 
25 
26 
27  class TauTrack_v1 : public IParticle {
28 
29  public:
31  TauTrack_v1();
32 
33 
34  virtual double pt() const;
35  virtual double eta() const;
36  virtual double phi() const;
37  virtual double e() const;
38 
39  virtual double m() const;
40  virtual double rapidity() const;
41 
43  virtual FourMom_t p4() const;
44 
46  typedef ROOT::Math::LorentzVector<ROOT::Math::PtEtaPhiM4D<double> > GenVecFourMom_t;
47 
49  GenVecFourMom_t genvecP4() const;
50 
52  void setP4(double pt, double eta, double phi, double m);
53 
55  virtual Type::ObjectType type() const;
56 
57  //track flag
59  bool flagWithMask(unsigned int) const;
64 
65  // additional bdt input variables
66  float z0sinThetaTJVA(const xAOD::IParticle&) const;
67  // void setZ0sinThetaTJVA(float z0sinThetaTJVA);
68 
69  // track IP w.r.t. TJVA vertex
70  float d0TJVA() const;
71  float d0SigTJVA() const;
72  float z0sinthetaTJVA() const;
73  float z0sinthetaSigTJVA() const;
74 
75  float rConv() const;
76  // void setRConv(float rConv);
77  float rConvII() const;
78  // void setRConvII(float rConvII);
79  float dRJetSeedAxis(const xAOD::IParticle&) const;
80  // void setDRJetSeedAxis(float dRJetSeedAxis);
81 
82  //bdt decision
83  const std::vector<float>& bdtScores() const;
84  void setBdtScores(const std::vector<float>& bdtScores);
85 
86  float bdtScore( size_t i) const;
87  size_t nBdtScores() const;
88  void addBdtScore( const float score);
89  void clearBdtScores();
90 
91 
92  // //name accessors for trackEtaStrip
93  // float etaStrip() const;
94  // void setEtaStrip(float eta);
95 
96  // //name accessors for trackPhiStrip
97  // float phiStrip() const;
98  // void setPhiStrip(float phi);
99 
100  bool detail( TauJetParameters::TrackDetail detail, float& value ) const;
102 
103  // tracks
104  typedef std::vector< ElementLink< xAOD::TrackParticleContainer > > TrackParticleLinks_t;
105 
107  void setTrackLinks( const TrackParticleLinks_t& trackParticle );
108  // Get the pointer to a associated track
109  const TrackParticle* track() const;
113  void clearTrackLinks();
114 
115  }; // class TauTrack
116 
117 } // namespace xAOD
118 
119 // Declare IParticle as a base class of TauTrack_v1:
122 
123 #endif // XAODTAU_VERSIONS_TAUTRACK_V1_H
124 
xAOD::TauTrack_v1::type
virtual Type::ObjectType type() const
The type of the object as a simple enumeration.
Definition: TauTrack_v1.cxx:55
xAOD::TauJetParameters::TauTrackFlag
TauTrackFlag
Enum for tau track flags.
Definition: TauDefs.h:400
xAOD::TauTrack_v1::setFlag
void setFlag(TauJetParameters::TauTrackFlag flag, bool value)
Definition: TauTrack_v1.cxx:93
xAOD::TauTrack_v1::p4
virtual FourMom_t p4() const
The full 4-momentum of the particle.
Definition: TauTrack_v1.cxx:31
IParticle.h
xAOD::TauTrack_v1::dRJetSeedAxis
float dRJetSeedAxis(const xAOD::IParticle &) const
Definition: TauTrack_v1.cxx:151
xAOD::TauTrack_v1::d0SigTJVA
float d0SigTJVA() const
Definition: TauTrack_v1.cxx:129
xAOD::TauTrack_v1::clearTrackLinks
void clearTrackLinks()
Remove all tracks from the collection.
Definition: TauTrack_v1.cxx:229
xAOD::TauTrack_v1::eta
virtual double eta() const
The pseudorapidity ( ) of the particle.
xAOD::TauTrack_v1::z0sinthetaSigTJVA
float z0sinthetaSigTJVA() const
Definition: TauTrack_v1.cxx:139
xAOD::TauTrack_v1::TauTrack_v1
TauTrack_v1()
Default constructor.
Definition: TauTrack_v1.cxx:20
athena.value
value
Definition: athena.py:124
xAOD::TauTrack_v1::flag
bool flag(TauJetParameters::TauTrackFlag flag) const
Definition: TauTrack_v1.cxx:74
xAOD
ICaloAffectedTool is abstract interface for tools checking if 4 mom is in calo affected region.
Definition: ICaloAffectedTool.h:24
detail
Definition: extract_histogram_tag.cxx:14
xAOD::TauTrack_v1::TrackParticleLinks_t
std::vector< ElementLink< xAOD::TrackParticleContainer > > TrackParticleLinks_t
Definition: TauTrack_v1.h:104
xAOD::IParticle
Class providing the definition of the 4-vector interface.
Definition: Event/xAOD/xAODBase/xAODBase/IParticle.h:41
xAOD::TauTrack_v1::detail
bool detail(TauJetParameters::TrackDetail detail, float &value) const
Definition: TauTrack_v1.cxx:166
xAOD::IParticle::FourMom_t
TLorentzVector FourMom_t
Definition of the 4-momentum type.
Definition: Event/xAOD/xAODBase/xAODBase/IParticle.h:69
xAOD::TauTrack_v1::GenVecFourMom_t
ROOT::Math::LorentzVector< ROOT::Math::PtEtaPhiM4D< double > > GenVecFourMom_t
Base 4 Momentum type for taus.
Definition: TauTrack_v1.h:46
TauDefs.h
xAOD::TauTrack_v1::rConvII
float rConvII() const
Definition: TauTrack_v1.cxx:147
xAOD::TauTrack_v1::d0TJVA
float d0TJVA() const
Definition: TauTrack_v1.cxx:124
xAOD::uint16_t
setWord1 uint16_t
Definition: eFexEMRoI_v1.cxx:88
xAOD::TauTrack_v1::setFlagSet
void setFlagSet(TrackFlagType flag)
lumiFormat.i
int i
Definition: lumiFormat.py:85
xAOD::TauTrack_v1::flagSet
TrackFlagType flagSet() const
xAOD::TauTrack_v1::addBdtScore
void addBdtScore(const float score)
add a cluster to the tau
Definition: TauTrack_v1.cxx:200
xAOD::TauTrack_v1::z0sinthetaTJVA
float z0sinthetaTJVA() const
Definition: TauTrack_v1.cxx:134
xAOD::TauJetParameters::TrackDetail
TrackDetail
Definition: TauDefs.h:419
xAOD::TauTrack_v1::phi
virtual double phi() const
The azimuthal angle ( ) of the particle.
xAOD::TauTrack_v1::setTrackLinks
void setTrackLinks(const TrackParticleLinks_t &trackParticle)
xAOD::TauTrack_v1::nBdtScores
size_t nBdtScores() const
Definition: TauTrack_v1.cxx:195
xAOD::TauTrack_v1::flagWithMask
bool flagWithMask(unsigned int) const
Definition: TauTrack_v1.cxx:81
xAOD::TauTrack_v1::bdtScores
const std::vector< float > & bdtScores() const
xAOD::TauTrack_v1::setP4
void setP4(double pt, double eta, double phi, double m)
Set methods for IParticle values.
Definition: TauTrack_v1.cxx:41
xAOD::TauTrack_v1::setDetail
void setDetail(TauJetParameters::TrackDetail detail, float value)
Definition: TauTrack_v1.cxx:178
xAOD::TauTrack_v1::pt
virtual double pt() const
The transverse momentum ( ) of the particle.
xAOD::TauTrack_v1::TrackFlagType
uint16_t TrackFlagType
Definition: TauTrack_v1.h:61
xAOD::TauTrack_v1::setBdtScores
void setBdtScores(const std::vector< float > &bdtScores)
xAOD::TauTrack_v1::m
virtual double m() const
The invariant mass of the particle.
Definition: TauTrack_v1.cxx:64
xAOD::TauTrack_v1::addTrackLink
void addTrackLink(const ElementLink< TrackParticleContainer > &tr)
add a track to the collection
Definition: TauTrack_v1.cxx:223
xAOD::TauTrack_v1::rapidity
virtual double rapidity() const
The true rapidity (y) of the particle.
Definition: TauTrack_v1.cxx:60
xAOD::score
@ score
Definition: TrackingPrimitives.h:513
xAOD::TauTrack_v1::rConv
float rConv() const
Definition: TauTrack_v1.cxx:143
xAOD::TauTrack_v1::e
virtual double e() const
The total energy of the particle.
Definition: TauTrack_v1.cxx:68
DataVector.h
An STL vector of pointers that by default owns its pointed-to elements.
xAOD::TauTrack_v1::bdtScore
float bdtScore(size_t i) const
xAOD::TauTrack_v1::genvecP4
GenVecFourMom_t genvecP4() const
The full 4-momentum of the particle : internal taus type.
Definition: TauTrack_v1.cxx:37
xAOD::TauTrack_v1
Definition: TauTrack_v1.h:27
xAOD::TauTrack_v1::trackLinks
const TrackParticleLinks_t & trackLinks() const
xAOD::TauTrack_v1::clearBdtScores
void clearBdtScores()
Remove all clusters from the tau.
Definition: TauTrack_v1.cxx:205
xAOD::TauTrack_v1::track
const TrackParticle * track() const
xAOD::TrackParticle_v1
Class describing a TrackParticle.
Definition: TrackParticle_v1.h:43
xAODType::ObjectType
ObjectType
Type of objects that have a representation in the xAOD EDM.
Definition: ObjectType.h:32
TrackParticleContainer.h
xAOD::TauTrack_v1::z0sinThetaTJVA
float z0sinThetaTJVA(const xAOD::IParticle &) const
Definition: TauTrack_v1.cxx:107
DATAVECTOR_BASE
DATAVECTOR_BASE(xAOD::TauTrack_v1, xAOD::IParticle)