ATLAS Offline Software
Loading...
Searching...
No Matches
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"
25
28
29
35
36
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
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
132std::string str(const TrigL2Bjet& a);
133
134
135MsgStream& operator<< (MsgStream& m, const TrigL2Bjet& a);
136
137
138bool operator== (const TrigL2Bjet& a, const TrigL2Bjet& b);
139
140
141inline bool operator!= (const TrigL2Bjet& a, const TrigL2Bjet& b) {return !(a == b);}
142
143
144void diff(const TrigL2Bjet& a, const TrigL2Bjet& b, std::map< std::string, double >& variableChange);
145
146
147CLASS_DEF(TrigL2Bjet, 132958341, 1)
148
149#endif
150
#define CLASS_DEF(NAME, CID, VERSION)
associate a clid and a version to a type eg
static Double_t a
MsgStream & operator<<(MsgStream &m, const TrigL2Bjet &a)
bool operator==(const TrigL2Bjet &a, const TrigL2Bjet &b)
bool operator!=(const TrigL2Bjet &a, const TrigL2Bjet &b)
Definition TrigL2Bjet.h:141
void diff(const TrigL2Bjet &a, const TrigL2Bjet &b, std::map< std::string, double > &variableChange)
P4PtEtaPhiM(const double pt, const double eta, const double phi, const double m)
constructor with all data members
Definition P4PtEtaPhiM.h:29
Class representing a b-jet candidate created at L2.
Definition TrigL2Bjet.h:38
float m_xChi2
Probability weight based on chi2 of track fit.
Definition TrigL2Bjet.h:118
const TrigInDetTrackCollection * m_track
Pointer to the track collection.
Definition TrigL2Bjet.h:100
bool isValid() const
To know if TrigL2Bjet object is valid.
TrigL2Bjet()
Constructor.
float m_xSv
Likelihood weight based on secondary vertex.
Definition TrigL2Bjet.h:120
float xEVtx() const
To retrieve likelihood weight based on energy of secondary vertex.
const TrigVertexCollection * SecVertexCollection() const
To retrieve pointer to secondary vertex collection of type TrigVertex.
float xComb() const
To retrieve best likelihood weight (combination of IP3D and SV).
float xIP1D() const
To retrieve likelihood weight based on longitudinal impact parameter.
float m_xmvtx
Likelihood weight based on mass of secondary vertex.
Definition TrigL2Bjet.h:122
float xNVtx() const
To retrieve likelihood weight based on number of tracks linked to secondary vertex.
~TrigL2Bjet()=default
Destructor.
float m_xcomb
Best likelihood weight (combination of IP3D and SV).
Definition TrigL2Bjet.h:110
float xSV() const
To retrieve likelihood weight based on secondary vertex.
float m_xIP3d
Likelihood weight based on 2D combination of impact parameters.
Definition TrigL2Bjet.h:116
float m_xIP2d
Likelihood weight based on transverse impact parameter.
Definition TrigL2Bjet.h:114
const TrigVertexCollection * m_secvertex
Pointer to the secondary vertex collection.
Definition TrigL2Bjet.h:104
float m_prmVtx
Z coordinate of the primary vertex.
Definition TrigL2Bjet.h:107
float m_xevtx
Likelihood weight based on energy of secondary vertex.
Definition TrigL2Bjet.h:124
float xIP2D() const
To retrieve likelihood weight based on transverse impact parameter.
bool m_valid
Boolean variable to declare the object as a valid one.
Definition TrigL2Bjet.h:94
void validate(bool v)
To validate TrigL2Bjet object.
float xMVtx() const
To retrieve likelihood weight based on mass of secondary vertex.
float xCHI2() const
To retrieve probability weight based on chi2 of track fit.
float prmVtx() const
To retrieve reconstructed z of primary vertex.
int m_roiID
Identifier of the RoI (unique to each LVL1 RoI).
Definition TrigL2Bjet.h:97
const TrigVertexCollection * PrmVertexCollection() const
To retrieve pointer to primary vertex collection of type TrigVertex.
float m_xnvtx
Likelihood weight based on number of tracks linked to secondary vertex.
Definition TrigL2Bjet.h:126
int roiId() const
To retrieve identifier of the RoI (unique to each LVL1 RoI).
float m_xIP1d
Likelihood weight based on longitudinal impact parameter.
Definition TrigL2Bjet.h:112
float xIP3D() const
To retrieve likelihood weight based on 2D combination of impact parameters.
const TrigVertexCollection * m_prmvertex
Pointer to the primary vertex collection.
Definition TrigL2Bjet.h:102
const TrigInDetTrackCollection * TrackCollection() const
To retrieve pointer to track collection of type TrigInDetTrack.