ATLAS Offline Software
TrigEFBjet.h
Go to the documentation of this file.
1 /*
2  Copyright (C) 2002-2018 CERN for the benefit of the ATLAS collaboration
3 */
4 
5 // ************************************************
6 //
7 // NAME: TrigEFBjet.h
8 // PACKAGE: Trigger/TrigEvent/TrigParticle
9 //
10 // AUTHOR: Andrea Coccaro
11 // EMAIL: Andrea.Coccaro@ge.infn.it
12 //
13 // ************************************************
14 
15 #ifndef TRIG_EF_BJET
16 #define TRIG_EF_BJET
17 
18 #include <vector>
19 #include <iostream>
20 #include <string>
21 
22 #include "FourMom/P4PtEtaPhiM.h"
23 #include "Navigation/Navigable.h"
25 
27 #include "VxVertex/VxContainer.h"
28 
29 
38  virtual public INavigable4Momentum {
39 
40  public:
41 
43  TrigEFBjet();
44 
46  TrigEFBjet(int, float, float, const Rec::TrackParticleContainer*,
47  const VxContainer*, const VxContainer*, float, float,
48  float xcomb, float xIP1d, float xIP2d, float xIP3d, float xChi2,
49  float xSv, float xmvtx, float xevtx, float xnvtx);
50 
52  ~TrigEFBjet() = default;
53 
55  int roiId() const;
56 
58  float prmVtx() const;
59 
61  void validate(bool v);
63  bool isValid() const;
64 
68  const VxContainer* PrmVertexCollection() const;
70  const VxContainer* SecVertexCollection() const;
71 
73  float xComb() const;
75  float xIP1D() const;
77  float xIP2D() const;
79  float xIP3D() const;
81  float xCHI2() const;
83  float xSV() const;
85  float xMVtx() const;
87  float xEVtx() const;
89  float xNVtx() const;
90 
91  private:
92 
94  bool m_valid;
95 
97  int m_roiID;
98 
105 
107  float m_prmVtx;
108 
110  float m_xcomb;
112  float m_xIP1d;
114  float m_xIP2d;
116  float m_xIP3d;
118  float m_xChi2;
120  float m_xSv;
122  float m_xmvtx;
124  float m_xevtx;
126  float m_xnvtx;
127 
128 };
129 
130 
131 
132 std::string str(const TrigEFBjet& a);
133 
134 
135 MsgStream& operator<< (MsgStream& m, const TrigEFBjet& a);
136 
137 
138 bool operator== (const TrigEFBjet& a, const TrigEFBjet& b);
139 
140 
141 inline bool operator!= (const TrigEFBjet& a, const TrigEFBjet& b) {return !(a == b);}
142 
143 
144 void diff(const TrigEFBjet& a, const TrigEFBjet& b, std::map< std::string, double >& variableChange);
145 
146 
147 CLASS_DEF(TrigEFBjet, 86579774, 1)
148 
149 #endif
TrigEFBjet::m_xIP1d
float m_xIP1d
Likelihood weight based on transverse impact parameter.
Definition: TrigEFBjet.h:112
TrigEFBjet::~TrigEFBjet
~TrigEFBjet()=default
Destructor.
TrigEFBjet::m_xIP2d
float m_xIP2d
Likelihood weight based on longitudinal impact parameter.
Definition: TrigEFBjet.h:114
TrigEFBjet::xEVtx
float xEVtx() const
To retrieve likelihood weight based on energy of secondary vertex.
Definition: TrigEFBjet.cxx:81
TrigEFBjet::m_valid
bool m_valid
Boolean variable to declare the object as a valid one.
Definition: TrigEFBjet.h:94
python.SystemOfUnits.m
int m
Definition: SystemOfUnits.py:91
str
std::string str(const TrigEFBjet &a)
Definition: TrigEFBjet.cxx:90
TrigEFBjet::m_xIP3d
float m_xIP3d
Likelihood weight based on 2D combination of impact parameters.
Definition: TrigEFBjet.h:116
INavigable4Momentum.h
operator==
bool operator==(const TrigEFBjet &a, const TrigEFBjet &b)
Definition: TrigEFBjet.cxx:116
NavigableTerminalNode
Dummy type needed fro specialized implementation.
Definition: NavigableTerminalNode.h:19
TrigEFBjet::xNVtx
float xNVtx() const
To retrieve likelihood weight based on number of tracks linked to secondary vertex.
Definition: TrigEFBjet.cxx:82
operator<<
MsgStream & operator<<(MsgStream &m, const TrigEFBjet &a)
Definition: TrigEFBjet.cxx:110
TrigEFBjet::xCHI2
float xCHI2() const
To retrieve probability weight based on chi2 of track fit.
Definition: TrigEFBjet.cxx:78
TrigEFBjet::isValid
bool isValid() const
To know if TrigEFBjet object is valid.
Definition: TrigEFBjet.cxx:64
TrigEFBjet::m_xcomb
float m_xcomb
Best likelihood weight (combination of IP3D and SV) - not filled yet.
Definition: TrigEFBjet.h:110
TrigEFBjet
Class representing a b-jet candidate created at EF.
Definition: TrigEFBjet.h:38
TrigEFBjet::roiId
int roiId() const
To retrieve identifier of the RoI (unique to each LVL1 RoI).
Definition: TrigEFBjet.cxx:66
diff
void diff(const TrigEFBjet &a, const TrigEFBjet &b, std::map< std::string, double > &variableChange)
Definition: TrigEFBjet.cxx:140
TrigEFBjet::prmVtx
float prmVtx() const
To retrieve reconstructed z of primary vertex.
Definition: TrigEFBjet.cxx:68
TrigEFBjet::m_xmvtx
float m_xmvtx
Likelihood weight based on mass of secondary vertex - not filled yet.
Definition: TrigEFBjet.h:122
TrigEFBjet::m_xevtx
float m_xevtx
Likelihood weight based on energy of secondary vertex - not filled yet.
Definition: TrigEFBjet.h:124
VxContainer.h
VxContainer
Definition: VxContainer.h:28
TrigEFBjet::m_xnvtx
float m_xnvtx
Likelihood weight based on number of tracks linked to secondary vertex - not filled yet.
Definition: TrigEFBjet.h:126
TrigEFBjet::validate
void validate(bool v)
To validate TrigEFBjet object.
Definition: TrigEFBjet.cxx:62
TrigEFBjet::xSV
float xSV() const
To retrieve likelihood weight based on secondary vertex.
Definition: TrigEFBjet.cxx:79
plotBeamSpotMon.b
b
Definition: plotBeamSpotMon.py:77
TrigEFBjet::m_secvertex
const VxContainer * m_secvertex
Pointer to the secondary vertex collection.
Definition: TrigEFBjet.h:104
TrigEFBjet::xComb
float xComb() const
To retrieve best likelihood weight (combination of IP3D and SV).
Definition: TrigEFBjet.cxx:74
Rec::TrackParticleContainer
Definition: Reconstruction/Particle/Particle/TrackParticleContainer.h:33
TrigEFBjet::xIP1D
float xIP1D() const
To retrieve likelihood weight based on longitudinal impact parameter.
Definition: TrigEFBjet.cxx:75
TrigEFBjet::SecVertexCollection
const VxContainer * SecVertexCollection() const
To retrieve pointer to secondary vertex collection of type VxVertex.
Definition: TrigEFBjet.cxx:72
python.PyAthena.v
v
Definition: PyAthena.py:154
Navigable.h
TrigEFBjet::TrackCollection
const Rec::TrackParticleContainer * TrackCollection() const
To retrieve pointer to track collection of type TrackParticle.
Definition: TrigEFBjet.cxx:70
a
TList * a
Definition: liststreamerinfos.cxx:10
TrigEFBjet::xIP3D
float xIP3D() const
To retrieve likelihood weight based on 2D combination of impact parameters.
Definition: TrigEFBjet.cxx:77
P4PtEtaPhiM.h
TrigEFBjet::TrigEFBjet
TrigEFBjet()
Constructor.
Definition: TrigEFBjet.cxx:18
INavigable4Momentum
Definition: INavigable4Momentum.h:21
CLASS_DEF
#define CLASS_DEF(NAME, CID, VERSION)
associate a clid and a version to a type eg
Definition: Control/AthenaKernel/AthenaKernel/CLASS_DEF.h:64
TrigEFBjet::m_xSv
float m_xSv
Likelihood weight based on secondary vertex - not filled yet.
Definition: TrigEFBjet.h:120
TrigEFBjet::PrmVertexCollection
const VxContainer * PrmVertexCollection() const
To retrieve pointer to primary vertex collection of type VxVertex.
Definition: TrigEFBjet.cxx:71
TrigEFBjet::m_track
const Rec::TrackParticleContainer * m_track
Pointer to the track collection.
Definition: TrigEFBjet.h:100
P4PtEtaPhiM
Definition: P4PtEtaPhiM.h:25
TrigEFBjet::m_xChi2
float m_xChi2
Probability weight based on chi2 of track fit.
Definition: TrigEFBjet.h:118
operator!=
bool operator!=(const TrigEFBjet &a, const TrigEFBjet &b)
Definition: TrigEFBjet.h:141
TrigEFBjet::m_prmvertex
const VxContainer * m_prmvertex
Pointer to the primary vertex collection.
Definition: TrigEFBjet.h:102
TrigEFBjet::m_roiID
int m_roiID
Identifier of the RoI.
Definition: TrigEFBjet.h:97
TrigEFBjet::m_prmVtx
float m_prmVtx
Z coordinate of the primary vertex.
Definition: TrigEFBjet.h:107
TrigEFBjet::xMVtx
float xMVtx() const
To retrieve likelihood weight based on mass of secondary vertex.
Definition: TrigEFBjet.cxx:80
TrigEFBjet::xIP2D
float xIP2D() const
To retrieve likelihood weight based on transverse impact parameter.
Definition: TrigEFBjet.cxx:76
TrackParticleContainer.h