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