ATLAS Offline Software
Toggle main menu visibility
Loading...
Searching...
No Matches
Trigger
TrigEvent
TrigParticle
TrigParticle
TrigL2Bphys.h
Go to the documentation of this file.
1
// -*- C++ -*-
2
3
/*
4
Copyright (C) 2002-2018 CERN for the benefit of the ATLAS collaboration
5
*/
6
7
23
24
#ifndef TRIG_L2BPHYS
25
#define TRIG_L2BPHYS
26
27
#include <vector>
28
#include <iostream>
29
#include <string>
30
#include <map>
31
32
#include "
TrigInDetEvent/TrigInDetTrackCollection.h
"
33
#include "
TrigInDetEvent/TrigVertexCollection.h
"
34
#include "AthLinks/ElementLink.h"
35
#include "AthLinks/ElementLinkVector.h"
36
class
TrigL2BphysContainer
;
37
class
TrigL2Bphys
;
38
39
40
ELEMENTLINK_FWD
(
TrigL2BphysContainer
,
TrigL2Bphys
);
41
42
43
class
TrigL2Bphys
{
44
public
:
45
47
enum
pType
{
PHIKK
=0,
DSPHIPI
=1,
BMUMU
=2,
BMUMUX
=3,
JPSIEE
=4,
JPSIMUMU
=5,
MULTIMU
=6,
BKMUMU
=7,
BDKSTMUMU
=8,
BSPHIMUMU
=9,
LBLMUMU
=10,
BCDSMUMU
=11};
49
TrigL2Bphys
();
50
52
TrigL2Bphys
(
int
roi,
float
eta
,
float
phi
,
pType
particleType
,
53
float
mass
,
const
ElementLink<TrigL2BphysContainer>
& sDecay);
54
56
TrigL2Bphys
(
int
roi,
float
eta
,
float
phi
,
pType
particleType
,
float
mass
);
57
58
59
TrigL2Bphys
(
const
TrigL2Bphys
& te) =
default
;
60
TrigL2Bphys
&
operator=
(
const
TrigL2Bphys
& te) =
default
;
61
63
~TrigL2Bphys
() =
default
;
64
66
int
roiId
()
const
{
return
m_roiID
; }
68
pType
particleType
()
const
{
return
m_particleType
; }
70
float
eta
()
const
{
return
m_eta
; }
72
float
phi
()
const
{
return
m_phi
; }
74
float
mass
()
const
{
return
m_mass
; }
76
float
fitmass
()
const
{
return
m_fitmass
; }
78
float
fitchi2
()
const
{
return
m_fitchi2
; }
80
int
fitndof
()
const
{
return
m_fitndof
; }
82
float
fitx
()
const
{
return
m_fitx
; }
84
float
fity
()
const
{
return
m_fity
; }
86
float
fitz
()
const
{
return
m_fitz
; }
87
89
const
TrigL2Bphys
*
pSecondDecay
()
const
;
90
const
ElementLink<TrigL2BphysContainer>
&
secondaryDecayLink
()
const
;
91
93
const
ElementLinkVector<TrigInDetTrackCollection>
&
trackVector
()
const
{
return
m_trackVector
;}
94
96
void
fitmass
(
float
FitMass);
98
void
fitchi2
(
float
FitChi2);
100
void
fitndof
(
int
FitNdof);
102
void
fitx
(
float
FitX);
104
void
fity
(
float
FitY);
106
void
fitz
(
float
FitZ);
108
void
addTrack
(
const
ElementLink<TrigInDetTrackCollection>
& track);
110
void
pSecondDecay
(
ElementLink<TrigL2BphysContainer>
p_secondaryDecay);
111
112
private
:
113
114
// private data members
115
116
int
m_roiID
;
117
pType
m_particleType
;
118
float
m_eta
;
119
float
m_phi
;
120
float
m_mass
;
121
float
m_fitmass
;
122
float
m_fitchi2
;
123
int
m_fitndof
;
124
float
m_fitx
;
125
float
m_fity
;
126
float
m_fitz
;
127
ElementLink<TrigL2BphysContainer>
m_secondaryDecay
;
// secondary decay particle
128
ElementLinkVector<TrigInDetTrackCollection>
m_trackVector
;
// vector of EL to tracks
129
};
130
131
std::string
str
(
const
TrigL2Bphys
& p );
//<! printing helper
132
MsgStream&
operator<<
( MsgStream& m,
const
TrigL2Bphys
& p );
//<! printing helper (wraps above)
133
bool
operator==
(
const
TrigL2Bphys
&
a
,
const
TrigL2Bphys
& b );
134
inline
bool
operator!=
(
const
TrigL2Bphys
&
a
,
const
TrigL2Bphys
& b ) {
return
!(
a
==b); }
142
void
diff
(
const
TrigL2Bphys
&
a
,
const
TrigL2Bphys
& b, std::map<std::string, double>& variableChange );
143
144
145
CLASS_DEF
(
TrigL2Bphys
, 118841261 , 1 )
146
147
#endif
// TRIG_BPHYS
eta
Scalar eta() const
pseudorapidity method
Definition
AmgMatrixBasePlugin.h:83
phi
Scalar phi() const
phi method
Definition
AmgMatrixBasePlugin.h:67
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:67
ELEMENTLINK_FWD
#define ELEMENTLINK_FWD(TYPE, VALUE_TYPE)
Forward declaration helper for ElementLink.
Definition
ElementLinkTraits.h:215
a
static Double_t a
Definition
LArPhysWaveHECTool.cxx:38
TrigInDetTrackCollection.h
operator<<
MsgStream & operator<<(MsgStream &m, const TrigL2Bphys &p)
Definition
TrigL2Bphys.cxx:121
operator==
bool operator==(const TrigL2Bphys &a, const TrigL2Bphys &b)
Definition
TrigL2Bphys.cxx:127
operator!=
bool operator!=(const TrigL2Bphys &a, const TrigL2Bphys &b)
Definition
TrigL2Bphys.h:134
diff
void diff(const TrigL2Bphys &a, const TrigL2Bphys &b, std::map< std::string, double > &variableChange)
comparison with feedback Function compares two objects and returns "semi verbose" output in the form ...
Definition
TrigL2Bphys.cxx:160
TrigVertexCollection.h
ElementLinkVector
ElementLinkVector implementation for standalone ROOT.
Definition
AthLinks/ElementLinkVector.h:64
ElementLink
ElementLink implementation for ROOT usage.
Definition
A/AthLinks/ElementLink.h:40
TrigL2BphysContainer
Definition
TrigL2BphysContainer.h:33
TrigL2Bphys
Definition
TrigL2Bphys.h:43
TrigL2Bphys::fity
float fity() const
accessor method: y position of vertex
Definition
TrigL2Bphys.h:84
TrigL2Bphys::secondaryDecayLink
const ElementLink< TrigL2BphysContainer > & secondaryDecayLink() const
Definition
TrigL2Bphys.cxx:68
TrigL2Bphys::trackVector
const ElementLinkVector< TrigInDetTrackCollection > & trackVector() const
accessor method:vector of tracks used to make particle
Definition
TrigL2Bphys.h:93
TrigL2Bphys::m_roiID
int m_roiID
Definition
TrigL2Bphys.h:116
TrigL2Bphys::fitz
float fitz() const
accessor method: z position of vertex
Definition
TrigL2Bphys.h:86
TrigL2Bphys::TrigL2Bphys
TrigL2Bphys()
constructors; note: default constructor needed by POOL
Definition
TrigL2Bphys.cxx:29
TrigL2Bphys::m_fitx
float m_fitx
Definition
TrigL2Bphys.h:124
TrigL2Bphys::addTrack
void addTrack(const ElementLink< TrigInDetTrackCollection > &track)
set method: add track to particle
Definition
TrigL2Bphys.cxx:58
TrigL2Bphys::m_phi
float m_phi
Definition
TrigL2Bphys.h:119
TrigL2Bphys::particleType
pType particleType() const
accessor method: particle Type
Definition
TrigL2Bphys.h:68
TrigL2Bphys::m_fitz
float m_fitz
Definition
TrigL2Bphys.h:126
TrigL2Bphys::TrigL2Bphys
TrigL2Bphys(const TrigL2Bphys &te)=default
TrigL2Bphys::pSecondDecay
const TrigL2Bphys * pSecondDecay() const
accessor method: secondary decay particle
Definition
TrigL2Bphys.cxx:173
TrigL2Bphys::m_fitchi2
float m_fitchi2
Definition
TrigL2Bphys.h:122
TrigL2Bphys::fitx
float fitx() const
accessor method: x position of vertex
Definition
TrigL2Bphys.h:82
TrigL2Bphys::m_secondaryDecay
ElementLink< TrigL2BphysContainer > m_secondaryDecay
Definition
TrigL2Bphys.h:127
TrigL2Bphys::m_eta
float m_eta
Definition
TrigL2Bphys.h:118
TrigL2Bphys::mass
float mass() const
accessor method: mass
Definition
TrigL2Bphys.h:74
TrigL2Bphys::phi
float phi() const
accessor method: phi
Definition
TrigL2Bphys.h:72
TrigL2Bphys::eta
float eta() const
accessor method: eta
Definition
TrigL2Bphys.h:70
TrigL2Bphys::m_fitndof
int m_fitndof
Definition
TrigL2Bphys.h:123
TrigL2Bphys::pType
pType
enum for different particle types
Definition
TrigL2Bphys.h:47
TrigL2Bphys::BSPHIMUMU
@ BSPHIMUMU
Definition
TrigL2Bphys.h:47
TrigL2Bphys::JPSIEE
@ JPSIEE
Definition
TrigL2Bphys.h:47
TrigL2Bphys::LBLMUMU
@ LBLMUMU
Definition
TrigL2Bphys.h:47
TrigL2Bphys::MULTIMU
@ MULTIMU
Definition
TrigL2Bphys.h:47
TrigL2Bphys::BMUMU
@ BMUMU
Definition
TrigL2Bphys.h:47
TrigL2Bphys::BDKSTMUMU
@ BDKSTMUMU
Definition
TrigL2Bphys.h:47
TrigL2Bphys::BCDSMUMU
@ BCDSMUMU
Definition
TrigL2Bphys.h:47
TrigL2Bphys::BKMUMU
@ BKMUMU
Definition
TrigL2Bphys.h:47
TrigL2Bphys::BMUMUX
@ BMUMUX
Definition
TrigL2Bphys.h:47
TrigL2Bphys::PHIKK
@ PHIKK
Definition
TrigL2Bphys.h:47
TrigL2Bphys::DSPHIPI
@ DSPHIPI
Definition
TrigL2Bphys.h:47
TrigL2Bphys::JPSIMUMU
@ JPSIMUMU
Definition
TrigL2Bphys.h:47
TrigL2Bphys::m_particleType
pType m_particleType
Definition
TrigL2Bphys.h:117
TrigL2Bphys::roiId
int roiId() const
accessor method: ID of L1 RoI
Definition
TrigL2Bphys.h:66
TrigL2Bphys::m_fitmass
float m_fitmass
Definition
TrigL2Bphys.h:121
TrigL2Bphys::~TrigL2Bphys
~TrigL2Bphys()=default
destructor
TrigL2Bphys::m_fity
float m_fity
Definition
TrigL2Bphys.h:125
TrigL2Bphys::operator=
TrigL2Bphys & operator=(const TrigL2Bphys &te)=default
TrigL2Bphys::m_trackVector
ElementLinkVector< TrigInDetTrackCollection > m_trackVector
Definition
TrigL2Bphys.h:128
TrigL2Bphys::fitndof
int fitndof() const
accessor method: ndof from vertex fit
Definition
TrigL2Bphys.h:80
TrigL2Bphys::m_mass
float m_mass
Definition
TrigL2Bphys.h:120
TrigL2Bphys::fitchi2
float fitchi2() const
accessor method: chi2 from vertex fit
Definition
TrigL2Bphys.h:78
TrigL2Bphys::fitmass
float fitmass() const
accessor method: mass from vertex fit
Definition
TrigL2Bphys.h:76
particleType
Definition
particleType.h:29
str
Definition
BTagTrackIpAccessor.cxx:11
Generated on
for ATLAS Offline Software by
1.17.0