ATLAS Offline Software
Toggle main menu visibility
Loading...
Searching...
No Matches
Trigger
TrigEvent
TrigTopoEvent
src
ElectronMuonTopoInfo.cxx
Go to the documentation of this file.
1
/*
2
Copyright (C) 2002-2026 CERN for the benefit of the ATLAS collaboration
3
*/
4
5
/**************************************************************************
6
**
7
** File: Trigger/TrigEvent/TrigTopoEvent/ElectronMuonTopoInfo.cxx
8
**
9
** Description: -Class for description of combined electron-muon object for
10
** algorithms in TrigEgammaMuonCombHypo package
11
**
12
** Author: Pavel Jez <pavel.jez@cern.ch>
13
**
14
** Created: Apr 9, 2011
15
**
16
**
17
**************************************************************************/
18
19
#include "
TrigTopoEvent/ElectronMuonTopoInfo.h
"
20
#include <sstream>
21
#include <iostream>
22
23
// constructors
24
ElectronMuonTopoInfo::ElectronMuonTopoInfo
():
m_roiWord
(-1),
25
m_DeltaPhi
(-1),
26
m_DeltaR
(-1),
27
m_InvMass
(-1),
28
m_electronValid
(false),
29
m_oppositeCharge
(false),
30
m_vertexState
(0)
31
32
{}
33
34
ElectronMuonTopoInfo::ElectronMuonTopoInfo
(
int
roiWord,
float
deltaPhi
,
float
deltaR
,
float
invMass,
bool
el_valid,
35
bool
oppositeCharge,
unsigned
short
vertexState):
m_roiWord
(roiWord),
36
m_DeltaPhi
(
deltaPhi
),
37
m_DeltaR
(
deltaR
),
38
m_InvMass
(invMass),
39
m_electronValid
(el_valid),
40
m_oppositeCharge
(oppositeCharge),
41
m_vertexState
(vertexState)
42
43
{}
44
45
// destructor
46
ElectronMuonTopoInfo::~ElectronMuonTopoInfo
() {}
47
48
49
// set methods
50
void
ElectronMuonTopoInfo::SetRoiWord
(
int
RoiWord
){
m_roiWord
=
RoiWord
;}
51
void
ElectronMuonTopoInfo::SetDeltaPhi
(
float
DeltaPhi
){
m_DeltaPhi
=
DeltaPhi
;}
52
void
ElectronMuonTopoInfo::SetDeltaR
(
float
DeltaR
){
m_DeltaR
=
DeltaR
;}
53
void
ElectronMuonTopoInfo::SetInvMass
(
float
InvMass
){
m_InvMass
=
InvMass
;}
54
void
ElectronMuonTopoInfo::SetElecValid
(
bool
ElecValid
){
m_electronValid
=
ElecValid
;}
55
void
ElectronMuonTopoInfo::SetOppositeCharge
(
bool
OppositeCharge
){
m_oppositeCharge
=
OppositeCharge
;}
56
void
ElectronMuonTopoInfo::SetVertexState
(
unsigned
short
vertexState){
m_vertexState
= vertexState;}
57
58
// text output
59
std::string
str
(
const
ElectronMuonTopoInfo
& d )
60
{
61
std::stringstream
ss
;
62
ss
<<
"ElectronMuonTopoInfo at address: "
<< &d
63
<<
" RoIWord: "
<< d.RoiWord()
64
<<
" Delta Phi: "
<< d.DeltaPhi()
65
<<
" Delta R: "
<< d.DeltaR()
66
<<
" Invariant mass: "
<< d.InvMass()
67
<<
" electron valid: "
<< d.ElecValid()
68
<<
" opposite charge: "
<< d.OppositeCharge()
69
<<
" vertex state: "
<< d.VertexState();
70
return
ss
.str();
71
}
72
73
MsgStream&
operator<<
( MsgStream& m,
const
ElectronMuonTopoInfo
& d )
74
{
75
return
( m <<
str
( d ) );
76
}
77
78
bool
operator==
(
const
ElectronMuonTopoInfo
& d1,
const
ElectronMuonTopoInfo
& d2 )
79
{
80
return
(d1.DeltaPhi()==d2.DeltaPhi() && d1.DeltaR()==d2.DeltaR() && d1.InvMass()==d2.InvMass()
81
&& d1.OppositeCharge()==d2.OppositeCharge() && d1.VertexState() == d2.VertexState() );
82
}
deltaPhi
Scalar deltaPhi(const MatrixBase< Derived > &vec) const
Definition
AmgMatrixBasePlugin.h:112
deltaR
Scalar deltaR(const MatrixBase< Derived > &vec) const
Definition
AmgMatrixBasePlugin.h:105
operator==
bool operator==(const ElectronMuonTopoInfo &d1, const ElectronMuonTopoInfo &d2)
Definition
ElectronMuonTopoInfo.cxx:78
operator<<
MsgStream & operator<<(MsgStream &m, const ElectronMuonTopoInfo &d)
Definition
ElectronMuonTopoInfo.cxx:73
ElectronMuonTopoInfo.h
ss
static Double_t ss
Definition
LArPhysWaveHECTool.cxx:37
ElectronMuonTopoInfo
ElectronMuonTopoInfo is a class for storing information about combuned electron-muon object.
Definition
ElectronMuonTopoInfo.h:38
ElectronMuonTopoInfo::m_DeltaR
float m_DeltaR
Delta R between electron and muon.
Definition
ElectronMuonTopoInfo.h:73
ElectronMuonTopoInfo::ElecValid
bool ElecValid() const
Definition
ElectronMuonTopoInfo.h:53
ElectronMuonTopoInfo::SetOppositeCharge
void SetOppositeCharge(bool OppositeCharge)
Definition
ElectronMuonTopoInfo.cxx:55
ElectronMuonTopoInfo::m_vertexState
unsigned short m_vertexState
3 bit description of vertex: 0=common, 1=not common, 3= not applicable
Definition
ElectronMuonTopoInfo.h:81
ElectronMuonTopoInfo::m_DeltaPhi
float m_DeltaPhi
Delta Phi between electron and muon.
Definition
ElectronMuonTopoInfo.h:71
ElectronMuonTopoInfo::SetElecValid
void SetElecValid(bool ElecValid)
Definition
ElectronMuonTopoInfo.cxx:54
ElectronMuonTopoInfo::SetDeltaR
void SetDeltaR(float DeltaR)
Definition
ElectronMuonTopoInfo.cxx:52
ElectronMuonTopoInfo::m_roiWord
int m_roiWord
Identifier of the RoI.
Definition
ElectronMuonTopoInfo.h:69
ElectronMuonTopoInfo::ElectronMuonTopoInfo
ElectronMuonTopoInfo()
Definition
ElectronMuonTopoInfo.cxx:24
ElectronMuonTopoInfo::DeltaPhi
float DeltaPhi() const
Definition
ElectronMuonTopoInfo.h:50
ElectronMuonTopoInfo::SetVertexState
void SetVertexState(unsigned short vextexState)
Definition
ElectronMuonTopoInfo.cxx:56
ElectronMuonTopoInfo::DeltaR
float DeltaR() const
Definition
ElectronMuonTopoInfo.h:51
ElectronMuonTopoInfo::m_electronValid
bool m_electronValid
boolean flag showing the validity of electron
Definition
ElectronMuonTopoInfo.h:77
ElectronMuonTopoInfo::SetInvMass
void SetInvMass(float InvMass)
Definition
ElectronMuonTopoInfo.cxx:53
ElectronMuonTopoInfo::~ElectronMuonTopoInfo
~ElectronMuonTopoInfo()
Definition
ElectronMuonTopoInfo.cxx:46
ElectronMuonTopoInfo::SetRoiWord
void SetRoiWord(int RoiWord)
set methods
Definition
ElectronMuonTopoInfo.cxx:50
ElectronMuonTopoInfo::OppositeCharge
bool OppositeCharge() const
Definition
ElectronMuonTopoInfo.h:54
ElectronMuonTopoInfo::RoiWord
int RoiWord() const
accessor methods
Definition
ElectronMuonTopoInfo.h:49
ElectronMuonTopoInfo::m_InvMass
float m_InvMass
Invariant mass of electron and muon.
Definition
ElectronMuonTopoInfo.h:75
ElectronMuonTopoInfo::SetDeltaPhi
void SetDeltaPhi(float DeltaPhi)
Definition
ElectronMuonTopoInfo.cxx:51
ElectronMuonTopoInfo::InvMass
float InvMass() const
Definition
ElectronMuonTopoInfo.h:52
ElectronMuonTopoInfo::m_oppositeCharge
bool m_oppositeCharge
True if electron and muon have opposite charged.
Definition
ElectronMuonTopoInfo.h:79
str
Definition
BTagTrackIpAccessor.cxx:11
Generated on
for ATLAS Offline Software by
1.17.0