11static const double DELTA = 0.001;
135 if(!info->TrackContainer()) {
136 std::cerr <<
"WARNING: TrigMuonEFInfo object has no TrackContainer" << std::endl;
140 std::cerr <<
"WARNING TrigMuonEFInfo object has " << info->TrackContainer()->size() <<
" but tried to get InfoTrack " <<
m_trkPos << std::endl;
144 return (*info->TrackContainer())[
m_trkPos];
152 if( std::abs(
a.sumTrkPtCone02() - b.sumTrkPtCone02() ) >
DELTA )
154 if( std::abs(
a.sumTrkPtCone03() - b.sumTrkPtCone03() ) >
DELTA )
156 if( std::abs(
a.sumEtCone01() - b.sumEtCone01() ) >
DELTA )
158 if( std::abs(
a.sumEtCone02() - b.sumEtCone02() ) >
DELTA )
160 if( std::abs(
a.sumEtCone03() - b.sumEtCone03() ) >
DELTA )
162 if( std::abs(
a.sumEtCone04() - b.sumEtCone04() ) >
DELTA )
164 if(
a.trackPosition() != b.trackPosition() )
166 if(
a.getEFMuonInfoTrack() != b.getEFMuonInfoTrack() )
static const double DELTA
bool operator==(const TrigMuonEFIsolation &a, const TrigMuonEFIsolation &b)
This operator checks whether two TrigMuonEFIsolation objects are the same based on the private member...
ElementLink implementation for ROOT usage.
EDM class for holding results of EF muon isolation calculation.
int m_trkPos
Position of the TrigMuonEFInfoTrack within the TrigMuonEFInfo object.
const ElementLink< TrigMuonEFInfoContainer > & getMuonInfoLink() const
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.
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.