ATLAS Offline Software
Toggle main menu visibility
Loading...
Searching...
No Matches
Trigger
TrigEvent
TrigTopoEvent
TrigTopoEvent
ElectronMuonTopoInfo.h
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.h
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
#ifndef _ELECTRONMUONTOPOINFO_H_
20
#define _ELECTRONMUONTOPOINFO_H_
21
22
// standard stuff
23
#include <string>
24
#include <map>
25
#include <cmath>
26
// general athena stuff
27
#include "GaudiKernel/MsgStream.h"
28
#include "
AthenaKernel/CLASS_DEF.h
"
29
37
38
class
ElectronMuonTopoInfo
{
39
40
public
:
41
ElectronMuonTopoInfo
();
42
ElectronMuonTopoInfo
(
int
roiWord,
float
deltaPhi
=-1.,
float
deltaR
= -1.,
float
invMass = -1.,
bool
el_valid =
false
,
bool
oppositeCharge = 0,
unsigned
short
vertexState =0);
43
44
~ElectronMuonTopoInfo
();
45
46
48
49
int
RoiWord
()
const
{
return
m_roiWord
; }
50
float
DeltaPhi
()
const
{
return
m_DeltaPhi
; }
51
float
DeltaR
()
const
{
return
m_DeltaR
; }
52
float
InvMass
()
const
{
return
m_InvMass
; }
53
bool
ElecValid
()
const
{
return
m_electronValid
; }
54
bool
OppositeCharge
()
const
{
return
m_oppositeCharge
; }
55
unsigned
short
VertexState
()
const
{
return
m_vertexState
;}
56
57
59
void
SetRoiWord
(
int
RoiWord
);
60
void
SetDeltaPhi
(
float
DeltaPhi
);
61
void
SetDeltaR
(
float
DeltaR
);
62
void
SetInvMass
(
float
InvMass
);
63
void
SetElecValid
(
bool
ElecValid
);
64
void
SetOppositeCharge
(
bool
OppositeCharge
);
65
void
SetVertexState
(
unsigned
short
vextexState);
66
67
private
:
69
int
m_roiWord
;
71
float
m_DeltaPhi
;
73
float
m_DeltaR
;
75
float
m_InvMass
;
77
bool
m_electronValid
;
79
bool
m_oppositeCharge
;
81
unsigned
short
m_vertexState
;
82
83
};
84
86
std::string
str
(
const
ElectronMuonTopoInfo
& d );
87
88
MsgStream&
operator<<
( MsgStream& m,
const
ElectronMuonTopoInfo
& d );
89
90
// comparison operators
91
bool
operator==
(
const
ElectronMuonTopoInfo
& d1,
const
ElectronMuonTopoInfo
& d2 );
92
inline
bool
operator!=
(
const
ElectronMuonTopoInfo
& d1,
const
ElectronMuonTopoInfo
& d2 ) {
93
return
!( d1 == d2 );
94
}
95
96
97
CLASS_DEF
(
ElectronMuonTopoInfo
, 129722551 , 1 )
98
99
100
#endif
//ELECTRONMUONTOPOINFO_H_
101
deltaPhi
Scalar deltaPhi(const MatrixBase< Derived > &vec) const
Definition
AmgMatrixBasePlugin.h:112
deltaR
Scalar deltaR(const MatrixBase< Derived > &vec) const
Definition
AmgMatrixBasePlugin.h:105
CLASS_DEF.h
macros to associate a CLID to a type
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
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
operator!=
bool operator!=(const ElectronMuonTopoInfo &d1, const ElectronMuonTopoInfo &d2)
Definition
ElectronMuonTopoInfo.h:92
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::VertexState
unsigned short VertexState() const
Definition
ElectronMuonTopoInfo.h:55
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