ATLAS Offline Software
TrigL2Bjet.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: TrigL2Bjet.h
8 // PACKAGE: Trigger/TrigEvent/TrigParticle
9 //
10 // AUTHOR: Andrea Coccaro
11 // EMAIL: Andrea.Coccaro@ge.infn.it
12 //
13 // ************************************************
14 
15 #ifndef TRIG_L2_BJET
16 #define TRIG_L2_BJET
17 
18 #include <vector>
19 #include <iostream>
20 #include <string>
21 
22 #include "FourMom/P4PtEtaPhiM.h"
23 #include "Navigation/Navigable.h"
25 
28 
29 
38  virtual public INavigable4Momentum {
39 
40  public:
41 
43  TrigL2Bjet();
44 
46  TrigL2Bjet(int, float, float, const TrigInDetTrackCollection*,
47  const TrigVertexCollection*, const TrigVertexCollection*, float, float,
48  float xcomb, float xIP1d, float xIP2d, float xIP3d, float xChi2,
49  float xSv, float xmvtx, float xevtx, float xnvtx);
50 
52  ~TrigL2Bjet() = default;
53 
55  int roiId() const;
56 
58  float prmVtx() const;
59 
61  void validate(bool v);
63  bool isValid() const;
64 
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 TrigL2Bjet& a);
133 
134 
135 MsgStream& operator<< (MsgStream& m, const TrigL2Bjet& a);
136 
137 
138 bool operator== (const TrigL2Bjet& a, const TrigL2Bjet& b);
139 
140 
141 inline bool operator!= (const TrigL2Bjet& a, const TrigL2Bjet& b) {return !(a == b);}
142 
143 
144 void diff(const TrigL2Bjet& a, const TrigL2Bjet& b, std::map< std::string, double >& variableChange);
145 
146 
147 CLASS_DEF(TrigL2Bjet, 132958341, 1)
148 
149 #endif
150 
TrigL2Bjet::xSV
float xSV() const
To retrieve likelihood weight based on secondary vertex.
Definition: TrigL2Bjet.cxx:80
operator!=
bool operator!=(const TrigL2Bjet &a, const TrigL2Bjet &b)
Definition: TrigL2Bjet.h:141
TrigL2Bjet::xIP1D
float xIP1D() const
To retrieve likelihood weight based on longitudinal impact parameter.
Definition: TrigL2Bjet.cxx:76
python.SystemOfUnits.m
int m
Definition: SystemOfUnits.py:91
TrigL2Bjet::validate
void validate(bool v)
To validate TrigL2Bjet object.
Definition: TrigL2Bjet.cxx:63
TrigL2Bjet::m_xcomb
float m_xcomb
Best likelihood weight (combination of IP3D and SV).
Definition: TrigL2Bjet.h:110
TrigL2Bjet::m_track
const TrigInDetTrackCollection * m_track
Pointer to the track collection.
Definition: TrigL2Bjet.h:100
TrigL2Bjet::TrigL2Bjet
TrigL2Bjet()
Constructor.
Definition: TrigL2Bjet.cxx:18
TrigL2Bjet::TrackCollection
const TrigInDetTrackCollection * TrackCollection() const
To retrieve pointer to track collection of type TrigInDetTrack.
Definition: TrigL2Bjet.cxx:71
INavigable4Momentum.h
TrigL2Bjet::xIP2D
float xIP2D() const
To retrieve likelihood weight based on transverse impact parameter.
Definition: TrigL2Bjet.cxx:77
TrigInDetTrackCollection
Definition: TrigInDetTrackCollection.h:13
TrigL2Bjet::m_secvertex
const TrigVertexCollection * m_secvertex
Pointer to the secondary vertex collection.
Definition: TrigL2Bjet.h:104
NavigableTerminalNode
Dummy type needed fro specialized implementation.
Definition: NavigableTerminalNode.h:19
TrigL2Bjet::~TrigL2Bjet
~TrigL2Bjet()=default
Destructor.
TrigL2Bjet::m_valid
bool m_valid
Boolean variable to declare the object as a valid one.
Definition: TrigL2Bjet.h:94
TrigInDetTrackCollection.h
TrigL2Bjet::m_xChi2
float m_xChi2
Probability weight based on chi2 of track fit.
Definition: TrigL2Bjet.h:118
TrigL2Bjet::isValid
bool isValid() const
To know if TrigL2Bjet object is valid.
Definition: TrigL2Bjet.cxx:65
operator==
bool operator==(const TrigL2Bjet &a, const TrigL2Bjet &b)
Definition: TrigL2Bjet.cxx:117
TrigL2Bjet::m_xIP3d
float m_xIP3d
Likelihood weight based on 2D combination of impact parameters.
Definition: TrigL2Bjet.h:116
TrigL2Bjet
Class representing a b-jet candidate created at L2.
Definition: TrigL2Bjet.h:38
TrigL2Bjet::m_xSv
float m_xSv
Likelihood weight based on secondary vertex.
Definition: TrigL2Bjet.h:120
TrigL2Bjet::xEVtx
float xEVtx() const
To retrieve likelihood weight based on energy of secondary vertex.
Definition: TrigL2Bjet.cxx:82
TrigL2Bjet::m_xIP1d
float m_xIP1d
Likelihood weight based on longitudinal impact parameter.
Definition: TrigL2Bjet.h:112
str
std::string str(const TrigL2Bjet &a)
Definition: TrigL2Bjet.cxx:91
TrigL2Bjet::m_xevtx
float m_xevtx
Likelihood weight based on energy of secondary vertex.
Definition: TrigL2Bjet.h:124
TrigL2Bjet::xNVtx
float xNVtx() const
To retrieve likelihood weight based on number of tracks linked to secondary vertex.
Definition: TrigL2Bjet.cxx:83
plotBeamSpotMon.b
b
Definition: plotBeamSpotMon.py:77
TrigL2Bjet::prmVtx
float prmVtx() const
To retrieve reconstructed z of primary vertex.
Definition: TrigL2Bjet.cxx:69
TrigVertexCollection
Definition: TrigVertexCollection.h:13
TrigL2Bjet::xMVtx
float xMVtx() const
To retrieve likelihood weight based on mass of secondary vertex.
Definition: TrigL2Bjet.cxx:81
diff
void diff(const TrigL2Bjet &a, const TrigL2Bjet &b, std::map< std::string, double > &variableChange)
Definition: TrigL2Bjet.cxx:141
python.PyAthena.v
v
Definition: PyAthena.py:154
TrigL2Bjet::roiId
int roiId() const
To retrieve identifier of the RoI (unique to each LVL1 RoI).
Definition: TrigL2Bjet.cxx:67
Navigable.h
a
TList * a
Definition: liststreamerinfos.cxx:10
operator<<
MsgStream & operator<<(MsgStream &m, const TrigL2Bjet &a)
Definition: TrigL2Bjet.cxx:111
TrigL2Bjet::xComb
float xComb() const
To retrieve best likelihood weight (combination of IP3D and SV).
Definition: TrigL2Bjet.cxx:75
P4PtEtaPhiM.h
TrigL2Bjet::m_prmVtx
float m_prmVtx
Z coordinate of the primary vertex.
Definition: TrigL2Bjet.h:107
TrigL2Bjet::m_xnvtx
float m_xnvtx
Likelihood weight based on number of tracks linked to secondary vertex.
Definition: TrigL2Bjet.h:126
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
TrigL2Bjet::xIP3D
float xIP3D() const
To retrieve likelihood weight based on 2D combination of impact parameters.
Definition: TrigL2Bjet.cxx:78
TrigL2Bjet::m_prmvertex
const TrigVertexCollection * m_prmvertex
Pointer to the primary vertex collection.
Definition: TrigL2Bjet.h:102
TrigL2Bjet::xCHI2
float xCHI2() const
To retrieve probability weight based on chi2 of track fit.
Definition: TrigL2Bjet.cxx:79
P4PtEtaPhiM
Definition: P4PtEtaPhiM.h:25
TrigL2Bjet::SecVertexCollection
const TrigVertexCollection * SecVertexCollection() const
To retrieve pointer to secondary vertex collection of type TrigVertex.
Definition: TrigL2Bjet.cxx:73
TrigL2Bjet::PrmVertexCollection
const TrigVertexCollection * PrmVertexCollection() const
To retrieve pointer to primary vertex collection of type TrigVertex.
Definition: TrigL2Bjet.cxx:72
TrigL2Bjet::m_roiID
int m_roiID
Identifier of the RoI (unique to each LVL1 RoI).
Definition: TrigL2Bjet.h:97
TrigL2Bjet::m_xmvtx
float m_xmvtx
Likelihood weight based on mass of secondary vertex.
Definition: TrigL2Bjet.h:122
TrigVertexCollection.h
TrigL2Bjet::m_xIP2d
float m_xIP2d
Likelihood weight based on transverse impact parameter.
Definition: TrigL2Bjet.h:114