ATLAS Offline Software
Loading...
Searching...
No Matches
TrigMuonEFIsolation.h
Go to the documentation of this file.
1// dear emacs, this is -*- C++ -*-
2
3/*
4 Copyright (C) 2002-2017 CERN for the benefit of the ATLAS collaboration
5*/
6
7#ifndef TRIGMUONEVENT_TRIGMUONEFISOLATION_H
8#define TRIGMUONEVENT_TRIGMUONEFISOLATION_H
16
17// Gaudi/Athena include(s):
19#include "AthLinks/ElementLink.h"
21
23
25
26 public:
27
30
32 TrigMuonEFIsolation(const float trkptcone02, const float trkptcone03);
33
36
39
42
45
47 void setEFMuonInfoLink(const TrigMuonEFInfoContainer* infocont, const int pos);
48 void setEFMuonInfoTrackLink(const int itrk);
49
52
53 // sum of pT of tracks in 0.2 cone
54 float sumTrkPtCone02() const {return m_sumTrkPtCone02;}
55 // sum of pT of tracks in 0.3 cone
56 float sumTrkPtCone03() const {return m_sumTrkPtCone03;}
57
58 // sum of calorimeter Et in 0.1 cone
59 float sumEtCone01() const {return m_sumEtCone01;}
60 // sum of calorimeter Et in 0.2 cone
61 float sumEtCone02() const {return m_sumEtCone02;}
62 // sum of calorimeter Et in 0.3 cone
63 float sumEtCone03() const {return m_sumEtCone03;}
64 // sum of calorimeter Et in 0.4 cone
65 float sumEtCone04() const {return m_sumEtCone04;}
66
68 int trackPosition() const {return m_trkPos;}
69
72
74 const TrigMuonEFInfo* getMuonInfo() const;
76
77
79 void setSumTrkPtCone02(const double ptcone02) {m_sumTrkPtCone02=ptcone02;}
81 void setSumTrkPtCone03(const double ptcone03) {m_sumTrkPtCone03=ptcone03;}
82
84 void setSumEtCone01(const double etcone01) {m_sumEtCone01=etcone01;}
86 void setSumEtCone02(const double etcone02) {m_sumEtCone02=etcone02;}
88 void setSumEtCone03(const double etcone03) {m_sumEtCone03=etcone03;}
90 void setSumEtCone04(const double etcone04) {m_sumEtCone04=etcone04;}
91
92 private:
93
94 // sum of pT of tracks in 0.2 cone
96 // sum of pT of tracks in 0.3 cone
98
99 // sum of ET in calorimeter in 0.1 cone
101
102 // sum of ET in calorimeter in 0.2 cone
104
105 // sum of ET in calorimeter in 0.3 cone
107
108 // sum of ET in calorimeter in 0.4 cone
110
113
116
117};//class TrigMuonEFIsolation
118
122inline bool operator!= ( const TrigMuonEFIsolation& a, const TrigMuonEFIsolation& b ) {
123 return !( a == b );
124}
125
126CLASS_DEF( TrigMuonEFIsolation , 100542549 , 1 )
127
128#endif // TRIGMUONEVENT_TRIGMUONEFISOLATION_H__
macros to associate a CLID to a type
#define CLASS_DEF(NAME, CID, VERSION)
associate a clid and a version to a type eg
static Double_t a
bool operator==(const TrigMuonEFIsolation &a, const TrigMuonEFIsolation &b)
Operator comparing two TrigMuonEFIsolation objects for equality.
bool operator!=(const TrigMuonEFIsolation &a, const TrigMuonEFIsolation &b)
Operator comparing two TrigMuonEFIsolation objects for inequality.
EDM class for holding results of EF muon isolation calculation.
void setSumEtCone03(const double etcone03)
set sum of calorimeter Et in 0.3 cone
int trackPosition() const
Position of the muon in the TrigMuonEFInfoTrack container.
void setSumTrkPtCone02(const double ptcone02)
set sum of track Pt in 0.2 cone
~TrigMuonEFIsolation()
Destructor.
int m_trkPos
Position of the TrigMuonEFInfoTrack within the TrigMuonEFInfo object.
const ElementLink< TrigMuonEFInfoContainer > & getMuonInfoLink() const
void setSumTrkPtCone03(const double ptcone03)
set sum of track Pt in 0.3 cone
void setSumEtCone01(const double etcone01)
set sum of calorimeter Et in 0.1 cone
ElementLink< TrigMuonEFInfoContainer > m_muonEFLink
Element link to TrigMuonEFInfo.
const TrigMuonEFInfoTrack * getEFMuonInfoTrack() const
Access the muon we calculated the isolation for.
void setEFMuonInfoTrackLink(const int itrk)
Set the link to the muon we calculated the isolation for.
void setSumEtCone02(const double etcone02)
set sum of calorimeter Et in 0.2 cone
TrigMuonEFIsolation()
Default constructor.
void setEFMuonInfoLink(const TrigMuonEFInfoContainer *infocont, const int pos)
set the link to the EF muon we calculated the isolation for
void setEFMuonInfoElementLink(const ElementLink< TrigMuonEFInfoContainer > link)
set the element link to the TrigMuonEFInfo object we are using
TrigMuonEFIsolation & operator=(const TrigMuonEFIsolation &rhs)
Assignment operator.
const TrigMuonEFInfo * getMuonInfo() const
Access the muon info object we calculated the isolation for.
void setSumEtCone04(const double etcone04)
set sum of calorimeter Et in 0.4 cone