ATLAS Offline Software
Public Member Functions | Private Attributes | List of all members
TrigMuonEFIsolation Class Reference

#include <TrigMuonEFIsolation.h>

Collaboration diagram for TrigMuonEFIsolation:

Public Member Functions

 TrigMuonEFIsolation ()
 Default constructor. More...
 
 TrigMuonEFIsolation (const float trkptcone02, const float trkptcone03)
 Constructor to fill track isolation variables. More...
 
 TrigMuonEFIsolation (const TrigMuonEFIsolation &iso)
 Copy constructor from reference. More...
 
 TrigMuonEFIsolation (const TrigMuonEFIsolation *iso)
 Copy constructor from pointer. More...
 
TrigMuonEFIsolationoperator= (const TrigMuonEFIsolation &rhs)
 Assignment operator. More...
 
 ~TrigMuonEFIsolation ()
 Destructor. More...
 
void setEFMuonInfoLink (const TrigMuonEFInfoContainer *infocont, const int pos)
 set the link to the EF muon we calculated the isolation for More...
 
void setEFMuonInfoTrackLink (const int itrk)
 Set the link to the muon we calculated the isolation for. More...
 
void setEFMuonInfoElementLink (const ElementLink< TrigMuonEFInfoContainer > link)
 set the element link to the TrigMuonEFInfo object we are using More...
 
float sumTrkPtCone02 () const
 
float sumTrkPtCone03 () const
 
float sumEtCone01 () const
 
float sumEtCone02 () const
 
float sumEtCone03 () const
 
float sumEtCone04 () const
 
int trackPosition () const
 Position of the muon in the TrigMuonEFInfoTrack container. More...
 
const TrigMuonEFInfoTrackgetEFMuonInfoTrack () const
 Access the muon we calculated the isolation for. More...
 
const TrigMuonEFInfogetMuonInfo () const
 Access the muon info object we calculated the isolation for. More...
 
const ElementLink< TrigMuonEFInfoContainer > & getMuonInfoLink () const
 
void setSumTrkPtCone02 (const double ptcone02)
 set sum of track Pt in 0.2 cone More...
 
void setSumTrkPtCone03 (const double ptcone03)
 set sum of track Pt in 0.3 cone More...
 
void setSumEtCone01 (const double etcone01)
 set sum of calorimeter Et in 0.1 cone More...
 
void setSumEtCone02 (const double etcone02)
 set sum of calorimeter Et in 0.2 cone More...
 
void setSumEtCone03 (const double etcone03)
 set sum of calorimeter Et in 0.3 cone More...
 
void setSumEtCone04 (const double etcone04)
 set sum of calorimeter Et in 0.4 cone More...
 

Private Attributes

float m_sumTrkPtCone02
 
float m_sumTrkPtCone03
 
float m_sumEtCone01
 
float m_sumEtCone02
 
float m_sumEtCone03
 
float m_sumEtCone04
 
int m_trkPos
 Position of the TrigMuonEFInfoTrack within the TrigMuonEFInfo object. More...
 
ElementLink< TrigMuonEFInfoContainerm_muonEFLink
 Element link to TrigMuonEFInfo. More...
 

Detailed Description

EDM class for holding results of EF muon isolation calculation.

Author
Mark Owen

Definition at line 24 of file TrigMuonEFIsolation.h.

Constructor & Destructor Documentation

◆ TrigMuonEFIsolation() [1/4]

TrigMuonEFIsolation::TrigMuonEFIsolation ( )

Default constructor.

Default constructor - set all isolation values to -1.

Definition at line 16 of file TrigMuonEFIsolation.cxx.

16  :
17  m_sumTrkPtCone02(-1.0),
18  m_sumTrkPtCone03(-1.0),
19  m_sumEtCone01(-1.0),
20  m_sumEtCone02(-1.0),
21  m_sumEtCone03(-1.0),
22  m_sumEtCone04(-1.0),
23  m_trkPos(-1),
24  m_muonEFLink()
25 {
26 
27 }

◆ TrigMuonEFIsolation() [2/4]

TrigMuonEFIsolation::TrigMuonEFIsolation ( const float  trkptcone02,
const float  trkptcone03 
)

Constructor to fill track isolation variables.

Constructor to fill the track isolation in dR cone of 0.2 & 0.3.

Definition at line 32 of file TrigMuonEFIsolation.cxx.

32  :
33  m_sumTrkPtCone02(trkptcone02),
34  m_sumTrkPtCone03(trkptcone03),
35  m_sumEtCone01(-1.0),
36  m_sumEtCone02(-1.0),
37  m_sumEtCone03(-1.0),
38  m_sumEtCone04(-1.0),
39  m_trkPos(-1),
40  m_muonEFLink() {
41 
42 }

◆ TrigMuonEFIsolation() [3/4]

TrigMuonEFIsolation::TrigMuonEFIsolation ( const TrigMuonEFIsolation iso)

Copy constructor from reference.

Definition at line 44 of file TrigMuonEFIsolation.cxx.

◆ TrigMuonEFIsolation() [4/4]

TrigMuonEFIsolation::TrigMuonEFIsolation ( const TrigMuonEFIsolation iso)

Copy constructor from pointer.

Definition at line 56 of file TrigMuonEFIsolation.cxx.

56  :
57  m_sumTrkPtCone02( -1.0 ),
58  m_sumTrkPtCone03( -1.0 ),
59  m_sumEtCone01(-1.0),
60  m_sumEtCone02(-1.0),
61  m_sumEtCone03(-1.0),
62  m_sumEtCone04(-1.0),
63  m_trkPos( -1 ),
64  m_muonEFLink() {
65 
66  if(iso) {
73  m_trkPos = iso->m_trkPos;
75  }
76 }

◆ ~TrigMuonEFIsolation()

TrigMuonEFIsolation::~TrigMuonEFIsolation ( )
inline

Destructor.

Definition at line 44 of file TrigMuonEFIsolation.h.

44 { }

Member Function Documentation

◆ getEFMuonInfoTrack()

const TrigMuonEFInfoTrack * TrigMuonEFIsolation::getEFMuonInfoTrack ( ) const

Access the muon we calculated the isolation for.

Definition at line 131 of file TrigMuonEFIsolation.cxx.

131  {
132 
133  const TrigMuonEFInfo* info = getMuonInfo();
134  if(!info) return 0;
135  if(!info->TrackContainer()) {
136  std::cerr << "WARNING: TrigMuonEFInfo object has no TrackContainer" << std::endl;
137  return 0;
138  }
139  if(m_trkPos >= ((int)info->TrackContainer()->size()) || m_trkPos < 0) {
140  std::cerr << "WARNING TrigMuonEFInfo object has " << info->TrackContainer()->size() << " but tried to get InfoTrack " << m_trkPos << std::endl;
141  return 0;
142  }
143 
144  return (*info->TrackContainer())[m_trkPos];
145 }

◆ getMuonInfo()

const TrigMuonEFInfo * TrigMuonEFIsolation::getMuonInfo ( ) const

Access the muon info object we calculated the isolation for.

Definition at line 122 of file TrigMuonEFIsolation.cxx.

122  {
123  if(!m_muonEFLink.isValid()) return 0;
124  return *m_muonEFLink;
125 }

◆ getMuonInfoLink()

const ElementLink< TrigMuonEFInfoContainer > & TrigMuonEFIsolation::getMuonInfoLink ( ) const

Definition at line 127 of file TrigMuonEFIsolation.cxx.

127  {
128  return m_muonEFLink;
129 }

◆ operator=()

TrigMuonEFIsolation & TrigMuonEFIsolation::operator= ( const TrigMuonEFIsolation rhs)

Assignment operator.

Definition at line 78 of file TrigMuonEFIsolation.cxx.

78  {
79  if( this != &rhs ) {
86  m_trkPos = rhs.m_trkPos;
88  }
89  return *this;
90 }

◆ setEFMuonInfoElementLink()

void TrigMuonEFIsolation::setEFMuonInfoElementLink ( const ElementLink< TrigMuonEFInfoContainer link)

set the element link to the TrigMuonEFInfo object we are using

Set the element link to the TrigMuonEFInfo object we are using.

Parameters
link- the ElementLink object to the TrigMuonEFInfo object used.

Definition at line 114 of file TrigMuonEFIsolation.cxx.

114  {
115 
116  m_muonEFLink = link;
117 
118 }

◆ setEFMuonInfoLink()

void TrigMuonEFIsolation::setEFMuonInfoLink ( const TrigMuonEFInfoContainer infocont,
const int  pos 
)

set the link to the EF muon we calculated the isolation for

Set the link to the muon we calculated the isolation for.

Parameters
infocont- container holding the EF muon Info object
itrk- position of the EF info object within the container

Definition at line 97 of file TrigMuonEFIsolation.cxx.

97  {
99  m_muonEFLink.toIndexedElement(*infocont, pos);
100 }

◆ setEFMuonInfoTrackLink()

void TrigMuonEFIsolation::setEFMuonInfoTrackLink ( const int  itrk)

Set the link to the muon we calculated the isolation for.

Parameters
itrk- position of the EF muon info track object within the EF muon info object

Definition at line 106 of file TrigMuonEFIsolation.cxx.

106  {
107  m_trkPos = itrk;
108 }

◆ setSumEtCone01()

void TrigMuonEFIsolation::setSumEtCone01 ( const double  etcone01)
inline

set sum of calorimeter Et in 0.1 cone

Definition at line 84 of file TrigMuonEFIsolation.h.

84 {m_sumEtCone01=etcone01;}

◆ setSumEtCone02()

void TrigMuonEFIsolation::setSumEtCone02 ( const double  etcone02)
inline

set sum of calorimeter Et in 0.2 cone

Definition at line 86 of file TrigMuonEFIsolation.h.

86 {m_sumEtCone02=etcone02;}

◆ setSumEtCone03()

void TrigMuonEFIsolation::setSumEtCone03 ( const double  etcone03)
inline

set sum of calorimeter Et in 0.3 cone

Definition at line 88 of file TrigMuonEFIsolation.h.

88 {m_sumEtCone03=etcone03;}

◆ setSumEtCone04()

void TrigMuonEFIsolation::setSumEtCone04 ( const double  etcone04)
inline

set sum of calorimeter Et in 0.4 cone

Definition at line 90 of file TrigMuonEFIsolation.h.

90 {m_sumEtCone04=etcone04;}

◆ setSumTrkPtCone02()

void TrigMuonEFIsolation::setSumTrkPtCone02 ( const double  ptcone02)
inline

set sum of track Pt in 0.2 cone

Definition at line 79 of file TrigMuonEFIsolation.h.

79 {m_sumTrkPtCone02=ptcone02;}

◆ setSumTrkPtCone03()

void TrigMuonEFIsolation::setSumTrkPtCone03 ( const double  ptcone03)
inline

set sum of track Pt in 0.3 cone

Definition at line 81 of file TrigMuonEFIsolation.h.

81 {m_sumTrkPtCone03=ptcone03;}

◆ sumEtCone01()

float TrigMuonEFIsolation::sumEtCone01 ( ) const
inline

Definition at line 59 of file TrigMuonEFIsolation.h.

59 {return m_sumEtCone01;}

◆ sumEtCone02()

float TrigMuonEFIsolation::sumEtCone02 ( ) const
inline

Definition at line 61 of file TrigMuonEFIsolation.h.

61 {return m_sumEtCone02;}

◆ sumEtCone03()

float TrigMuonEFIsolation::sumEtCone03 ( ) const
inline

Definition at line 63 of file TrigMuonEFIsolation.h.

63 {return m_sumEtCone03;}

◆ sumEtCone04()

float TrigMuonEFIsolation::sumEtCone04 ( ) const
inline

Definition at line 65 of file TrigMuonEFIsolation.h.

65 {return m_sumEtCone04;}

◆ sumTrkPtCone02()

float TrigMuonEFIsolation::sumTrkPtCone02 ( ) const
inline

Definition at line 54 of file TrigMuonEFIsolation.h.

54 {return m_sumTrkPtCone02;}

◆ sumTrkPtCone03()

float TrigMuonEFIsolation::sumTrkPtCone03 ( ) const
inline

Definition at line 56 of file TrigMuonEFIsolation.h.

56 {return m_sumTrkPtCone03;}

◆ trackPosition()

int TrigMuonEFIsolation::trackPosition ( ) const
inline

Position of the muon in the TrigMuonEFInfoTrack container.

Definition at line 68 of file TrigMuonEFIsolation.h.

68 {return m_trkPos;}

Member Data Documentation

◆ m_muonEFLink

ElementLink<TrigMuonEFInfoContainer> TrigMuonEFIsolation::m_muonEFLink
private

Element link to TrigMuonEFInfo.

Definition at line 115 of file TrigMuonEFIsolation.h.

◆ m_sumEtCone01

float TrigMuonEFIsolation::m_sumEtCone01
private

Definition at line 100 of file TrigMuonEFIsolation.h.

◆ m_sumEtCone02

float TrigMuonEFIsolation::m_sumEtCone02
private

Definition at line 103 of file TrigMuonEFIsolation.h.

◆ m_sumEtCone03

float TrigMuonEFIsolation::m_sumEtCone03
private

Definition at line 106 of file TrigMuonEFIsolation.h.

◆ m_sumEtCone04

float TrigMuonEFIsolation::m_sumEtCone04
private

Definition at line 109 of file TrigMuonEFIsolation.h.

◆ m_sumTrkPtCone02

float TrigMuonEFIsolation::m_sumTrkPtCone02
private

Definition at line 95 of file TrigMuonEFIsolation.h.

◆ m_sumTrkPtCone03

float TrigMuonEFIsolation::m_sumTrkPtCone03
private

Definition at line 97 of file TrigMuonEFIsolation.h.

◆ m_trkPos

int TrigMuonEFIsolation::m_trkPos
private

Position of the TrigMuonEFInfoTrack within the TrigMuonEFInfo object.

Definition at line 112 of file TrigMuonEFIsolation.h.


The documentation for this class was generated from the following files:
grepfile.info
info
Definition: grepfile.py:38
TrigMuonEFIsolation::m_sumEtCone02
float m_sumEtCone02
Definition: TrigMuonEFIsolation.h:103
TrigMuonEFIsolation::m_muonEFLink
ElementLink< TrigMuonEFInfoContainer > m_muonEFLink
Element link to TrigMuonEFInfo.
Definition: TrigMuonEFIsolation.h:115
TrigMuonEFIsolation::m_trkPos
int m_trkPos
Position of the TrigMuonEFInfoTrack within the TrigMuonEFInfo object.
Definition: TrigMuonEFIsolation.h:112
TrigMuonEFIsolation::m_sumEtCone01
float m_sumEtCone01
Definition: TrigMuonEFIsolation.h:100
TrigMuonEFIsolation::m_sumTrkPtCone02
float m_sumTrkPtCone02
Definition: TrigMuonEFIsolation.h:95
TrigMuonEFIsolation::m_sumTrkPtCone03
float m_sumTrkPtCone03
Definition: TrigMuonEFIsolation.h:97
python.LumiBlobConversion.pos
pos
Definition: LumiBlobConversion.py:18
TrigMuonEFIsolation::m_sumEtCone03
float m_sumEtCone03
Definition: TrigMuonEFIsolation.h:106
TrigMuonEFIsolation::getMuonInfo
const TrigMuonEFInfo * getMuonInfo() const
Access the muon info object we calculated the isolation for.
Definition: TrigMuonEFIsolation.cxx:122
TrigMuonEFInfo
Definition: TrigMuonEFInfo.h:24
TrigMuonEFIsolation::m_sumEtCone04
float m_sumEtCone04
Definition: TrigMuonEFIsolation.h:109