CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
List of all members | Classes | Public Types | Public Member Functions | Private Attributes
reco::IsoDeposit Class Reference

#include <IsoDeposit.h>

Classes

class  const_iterator
 
class  CountAlgo
 
class  MaxAlgo
 
class  MeanDRAlgo
 
class  Sum2Algo
 
class  SumAlgo
 
class  SumDRAlgo
 
struct  Veto
 

Public Types

typedef isodeposit::AbsVeto AbsVeto
 
typedef isodeposit::AbsVetos AbsVetos
 
typedef
DepositsMultimap::const_iterator 
DepIterator
 
typedef std::multimap
< Distance, float > 
DepositsMultimap
 
typedef isodeposit::Direction Direction
 
typedef Direction::Distance Distance
 
typedef std::vector< VetoVetos
 

Public Member Functions

void addCandEnergy (double et)
 Set energy or pT attached to cand trajectory. More...
 
void addDeposit (double dr, double deposit)
 Add deposit (ie. transverse energy or pT) More...
 
void addDeposit (const Direction &depDir, double deposit)
 
template<typename Algo >
double algoWithin (double coneSize, const AbsVetos &vetos=AbsVetos(), bool skipDepositVeto=false) const
 Get some info about the deposit (e.g. sum, max, sum2, count) More...
 
template<typename Algo >
double algoWithin (const Direction &, double coneSize, const AbsVetos &vetos=AbsVetos(), bool skipDepositVeto=false) const
 Get some info about the deposit (e.g. sum, max, sum2, count) w.r.t. other direction. More...
 
const_iterator begin () const
 
double candEnergy () const
 Get energy or pT attached to cand trajectory. More...
 
double countWithin (double coneSize, const AbsVetos &vetos=AbsVetos(), bool skipDepositVeto=false) const
 
std::pair< double, int > depositAndCountWithin (double coneSize, const Vetos &vetos=Vetos(), double threshold=-1e+36, bool skipDepositVeto=false) const
 Get deposit. More...
 
std::pair< double, int > depositAndCountWithin (Direction dir, double coneSize, const Vetos &vetos=Vetos(), double threshold=-1e+36, bool skipDepositVeto=false) const
 Get deposit wrt other direction. More...
 
std::pair< double, int > depositAndCountWithin (double coneSize, const AbsVetos &vetos, bool skipDepositVeto=false) const
 Get deposit. More...
 
double depositWithin (double coneSize, const Vetos &vetos=Vetos(), bool skipDepositVeto=false) const
 Get deposit. More...
 
double depositWithin (Direction dir, double coneSize, const Vetos &vetos=Vetos(), bool skipDepositVeto=false) const
 Get deposit wrt other direction. More...
 
double depositWithin (double coneSize, const AbsVetos &vetos, bool skipDepositVeto=false) const
 Get deposit with new style vetos. More...
 
const Directiondirection () const
 Get direction of isolation cone. More...
 
const_iterator end () const
 
double eta () const
 
 IsoDeposit (double eta=0, double phi=0)
 Constructor. More...
 
 IsoDeposit (const Direction &candDirection)
 
double maxWithin (double coneSize, const AbsVetos &vetos=AbsVetos(), bool skipDepositVeto=false) const
 
double nearestDR (double coneSize, const AbsVetos &vetos=AbsVetos(), bool skipDepositVeto=false) const
 
double phi () const
 
std::string print () const
 
void setVeto (const Veto &aVeto)
 Set veto. More...
 
double sum2Within (double coneSize, const AbsVetos &vetos=AbsVetos(), bool skipDepositVeto=false) const
 
double sumWithin (double coneSize, const AbsVetos &vetos=AbsVetos(), bool skipDepositVeto=false) const
 
double sumWithin (const Direction &dir, double coneSize, const AbsVetos &vetos=AbsVetos(), bool skipDepositVeto=false) const
 
const Vetoveto () const
 Get veto area. More...
 
virtual ~IsoDeposit ()
 Destructor. More...
 

Private Attributes

float theCandTag
 float tagging cand, ment to be transverse energy or pT attached to cand, More...
 
DepositsMultimap theDeposits
 the deposits identifed by relative position to center of cone and deposit value More...
 
Direction theDirection
 direcion of deposit (center of isolation cone) More...
 
Veto theVeto
 area to be excluded in computaion of depositWithin More...
 

Detailed Description

Definition at line 46 of file IsoDeposit.h.

Member Typedef Documentation

Definition at line 50 of file IsoDeposit.h.

Definition at line 51 of file IsoDeposit.h.

typedef DepositsMultimap::const_iterator reco::IsoDeposit::DepIterator

Definition at line 54 of file IsoDeposit.h.

typedef std::multimap<Distance, float> reco::IsoDeposit::DepositsMultimap

Definition at line 53 of file IsoDeposit.h.

Definition at line 49 of file IsoDeposit.h.

Definition at line 52 of file IsoDeposit.h.

typedef std::vector<Veto> reco::IsoDeposit::Vetos

Definition at line 63 of file IsoDeposit.h.

Constructor & Destructor Documentation

IsoDeposit::IsoDeposit ( double  eta = 0,
double  phi = 0 
)

Constructor.

Definition at line 16 of file IsoDeposit.cc.

IsoDeposit::IsoDeposit ( const Direction candDirection)

Definition at line 9 of file IsoDeposit.cc.

virtual reco::IsoDeposit::~IsoDeposit ( )
inlinevirtual

Destructor.

Definition at line 70 of file IsoDeposit.h.

Member Function Documentation

void reco::IsoDeposit::addCandEnergy ( double  et)
inline

Set energy or pT attached to cand trajectory.

Definition at line 139 of file IsoDeposit.h.

Referenced by muonisolation::PixelTrackExtractor::deposit().

void IsoDeposit::addDeposit ( double  dr,
double  deposit 
)

Add deposit (ie. transverse energy or pT)

Definition at line 23 of file IsoDeposit.cc.

Referenced by muonisolation::PixelTrackExtractor::deposit().

void IsoDeposit::addDeposit ( const Direction depDir,
double  deposit 
)

Definition at line 28 of file IsoDeposit.cc.

template<typename Algo >
double IsoDeposit::algoWithin ( double  coneSize,
const AbsVetos vetos = AbsVetos(),
bool  skipDepositVeto = false 
) const

Get some info about the deposit (e.g. sum, max, sum2, count)

Definition at line 288 of file IsoDeposit.h.

template<typename Algo >
double IsoDeposit::algoWithin ( const Direction dir,
double  coneSize,
const AbsVetos vetos = AbsVetos(),
bool  skipDepositVeto = false 
) const

Get some info about the deposit (e.g. sum, max, sum2, count) w.r.t. other direction.

Definition at line 314 of file IsoDeposit.h.

const_iterator reco::IsoDeposit::begin ( void  ) const
inline

Definition at line 163 of file IsoDeposit.h.

double reco::IsoDeposit::candEnergy ( ) const
inline

Get energy or pT attached to cand trajectory.

Definition at line 136 of file IsoDeposit.h.

Referenced by pat::helper::IsoDepositIsolator::getValue().

double IsoDeposit::countWithin ( double  coneSize,
const AbsVetos vetos = AbsVetos(),
bool  skipDepositVeto = false 
) const

Definition at line 134 of file IsoDeposit.cc.

Referenced by pat::helper::IsoDepositIsolator::getValue().

std::pair< double, int > IsoDeposit::depositAndCountWithin ( double  coneSize,
const Vetos vetos = Vetos(),
double  threshold = -1e+36,
bool  skipDepositVeto = false 
) const

Get deposit.

Definition at line 44 of file IsoDeposit.cc.

Referenced by L3MuonIsolationProducer::produce(), and muonisolation::IsolatorByDepositCount::result().

std::pair< double, int > IsoDeposit::depositAndCountWithin ( Direction  dir,
double  coneSize,
const Vetos vetos = Vetos(),
double  threshold = -1e+36,
bool  skipDepositVeto = false 
) const

Get deposit wrt other direction.

Definition at line 72 of file IsoDeposit.cc.

std::pair< double, int > IsoDeposit::depositAndCountWithin ( double  coneSize,
const AbsVetos vetos,
bool  skipDepositVeto = false 
) const

Get deposit.

Definition at line 100 of file IsoDeposit.cc.

double IsoDeposit::depositWithin ( double  coneSize,
const Vetos vetos = Vetos(),
bool  skipDepositVeto = false 
) const

Get deposit.

Definition at line 34 of file IsoDeposit.cc.

Referenced by IsolationProducerForTracks::produce().

double IsoDeposit::depositWithin ( Direction  dir,
double  coneSize,
const Vetos vetos = Vetos(),
bool  skipDepositVeto = false 
) const

Get deposit wrt other direction.

Definition at line 39 of file IsoDeposit.cc.

double IsoDeposit::depositWithin ( double  coneSize,
const AbsVetos vetos,
bool  skipDepositVeto = false 
) const

Get deposit with new style vetos.

Definition at line 129 of file IsoDeposit.cc.

const Direction& reco::IsoDeposit::direction ( ) const
inline

Get direction of isolation cone.

Definition at line 73 of file IsoDeposit.h.

const_iterator reco::IsoDeposit::end ( void  ) const
inline

Definition at line 164 of file IsoDeposit.h.

double reco::IsoDeposit::eta ( ) const
inline
double IsoDeposit::maxWithin ( double  coneSize,
const AbsVetos vetos = AbsVetos(),
bool  skipDepositVeto = false 
) const

Definition at line 150 of file IsoDeposit.cc.

Referenced by pat::helper::IsoDepositIsolator::getValue().

double IsoDeposit::nearestDR ( double  coneSize,
const AbsVetos vetos = AbsVetos(),
bool  skipDepositVeto = false 
) const

Definition at line 155 of file IsoDeposit.cc.

double reco::IsoDeposit::phi ( ) const
inline
std::string IsoDeposit::print ( void  ) const

Definition at line 181 of file IsoDeposit.cc.

Referenced by L3MuonIsolationProducer::produce().

void reco::IsoDeposit::setVeto ( const Veto aVeto)
inline

Set veto.

Definition at line 80 of file IsoDeposit.h.

Referenced by muonisolation::PixelTrackExtractor::deposit().

double IsoDeposit::sum2Within ( double  coneSize,
const AbsVetos vetos = AbsVetos(),
bool  skipDepositVeto = false 
) const

Definition at line 146 of file IsoDeposit.cc.

Referenced by pat::helper::IsoDepositIsolator::getValue().

double IsoDeposit::sumWithin ( double  coneSize,
const AbsVetos vetos = AbsVetos(),
bool  skipDepositVeto = false 
) const
double IsoDeposit::sumWithin ( const Direction dir,
double  coneSize,
const AbsVetos vetos = AbsVetos(),
bool  skipDepositVeto = false 
) const

Definition at line 142 of file IsoDeposit.cc.

const Veto& reco::IsoDeposit::veto ( ) const
inline

Get veto area.

Definition at line 78 of file IsoDeposit.h.

Referenced by L3MuonIsolationProducer::produce().

Member Data Documentation

float reco::IsoDeposit::theCandTag
private

float tagging cand, ment to be transverse energy or pT attached to cand,

Definition at line 278 of file IsoDeposit.h.

DepositsMultimap reco::IsoDeposit::theDeposits
private

the deposits identifed by relative position to center of cone and deposit value

Definition at line 282 of file IsoDeposit.h.

Direction reco::IsoDeposit::theDirection
private

direcion of deposit (center of isolation cone)

Definition at line 272 of file IsoDeposit.h.

Veto reco::IsoDeposit::theVeto
private

area to be excluded in computaion of depositWithin

Definition at line 275 of file IsoDeposit.h.