CMS 3D CMS Logo

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

#include <TrackDetMatchInfo.h>

Public Types

enum  EnergyType {
  EcalRecHits, HcalRecHits, HORecHits, TowerTotal,
  TowerEcal, TowerHcal, TowerHO
}
 

Public Member Functions

double coneEnergy (double dR, EnergyType)
 
double crossedEnergy (EnergyType)
 energy in detector elements crossed by the track by types More...
 
std::string dumpGeometry (const DetId &)
 
double ecalConeEnergy ()
 
double ecalCrossedEnergy ()
 
double ecalEnergy ()
 
double ecalTowerConeEnergy ()
 
double ecalTowerEnergy ()
 
DetId findMaxDeposition (EnergyType)
 Find detector elements with highest energy deposition. More...
 
DetId findMaxDeposition (EnergyType, int gridSize)
 
DetId findMaxDeposition (const DetId &, EnergyType, int gridSize)
 
GlobalPoint getPosition (const DetId &)
 
double hcalConeEnergy ()
 
double hcalCrossedEnergy ()
 
double hcalEnergy ()
 
double hcalTowerConeEnergy ()
 
double hcalTowerEnergy ()
 
double hoConeEnergy ()
 
double hoCrossedEnergy ()
 
double hoEnergy ()
 
double hoTowerConeEnergy ()
 
double hoTowerEnergy ()
 
int numberOfSegments () const
 
int numberOfSegmentsInDetector (int detector) const
 
int numberOfSegmentsInStation (int station) const
 
int numberOfSegmentsInStation (int station, int detector) const
 
double nXnEnergy (const DetId &, EnergyType, int gridSize=1)
 get energy of the NxN shape (N = 2*gridSize + 1) around given detector element More...
 
double nXnEnergy (EnergyType, int gridSize=1)
 get energy of the NxN shape (N = 2*gridSize + 1) around track projection More...
 
void setCaloGeometry (edm::ESHandle< CaloGeometry > geometry)
 
 TrackDetMatchInfo ()
 

Public Attributes

std::vector< TAMuonChamberMatchchambers
 
std::vector< DetIdcrossedEcalIds
 
std::vector< const EcalRecHit * > crossedEcalRecHits
 hits in detector elements crossed by a track More...
 
std::vector< DetIdcrossedHcalIds
 
std::vector< const HBHERecHit * > crossedHcalRecHits
 
std::vector< DetIdcrossedHOIds
 
std::vector< const HORecHit * > crossedHORecHits
 
std::vector< DetIdcrossedPreshowerIds
 
std::vector< DetIdcrossedTowerIds
 
std::vector< const CaloTower * > crossedTowers
 
std::vector< const EcalRecHit * > ecalRecHits
 hits in the cone More...
 
double ecalTrueEnergy
 
std::vector< const HBHERecHit * > hcalRecHits
 
double hcalTrueEnergy
 
double hcalTrueEnergyCorrected
 
std::vector< const HORecHit * > hoRecHits
 
bool isGoodCalo
 
bool isGoodEcal
 
bool isGoodHcal
 
bool isGoodHO
 
bool isGoodMuon
 
const SimTracksimTrack
 MC truth info. More...
 
SimTrackRef simTrackRef_
 
FreeTrajectoryState stateAtIP
 track info More...
 
std::vector< const CaloTower * > towers
 
reco::TrackRef trackRef_
 
math::XYZPoint trkGlobPosAtEcal
 Track position at different parts of the calorimeter. More...
 
math::XYZPoint trkGlobPosAtHcal
 
math::XYZPoint trkGlobPosAtHO
 
GlobalVector trkMomAtEcal
 
GlobalVector trkMomAtHcal
 
GlobalVector trkMomAtHO
 

Private Member Functions

bool insideCone (const DetId &, const double)
 

Private Attributes

edm::ESHandle< CaloGeometrycaloGeometry
 

Detailed Description

Definition at line 14 of file TrackDetMatchInfo.h.

Member Enumeration Documentation

Constructor & Destructor Documentation

TrackDetMatchInfo::TrackDetMatchInfo ( )

Definition at line 314 of file TrackDetMatchInfo.cc.

Member Function Documentation

double TrackDetMatchInfo::coneEnergy ( double  dR,
EnergyType  type 
)

cone energy around the track direction at the origin (0,0,0) ( not well defined for tracks originating away from IP)

Definition at line 108 of file TrackDetMatchInfo.cc.

Referenced by ecalTowerConeEnergy(), hcalTowerConeEnergy(), and hoTowerConeEnergy().

double TrackDetMatchInfo::crossedEnergy ( EnergyType  type)

energy in detector elements crossed by the track by types

Definition at line 47 of file TrackDetMatchInfo.cc.

Referenced by ecalTowerEnergy(), hcalTowerEnergy(), and hoTowerEnergy().

std::string TrackDetMatchInfo::dumpGeometry ( const DetId id)

Definition at line 17 of file TrackDetMatchInfo.cc.

double TrackDetMatchInfo::ecalConeEnergy ( )

Definition at line 581 of file TrackDetMatchInfo.cc.

double TrackDetMatchInfo::ecalCrossedEnergy ( )

Definition at line 596 of file TrackDetMatchInfo.cc.

Referenced by ecalEnergy().

double TrackDetMatchInfo::ecalEnergy ( )
inline

Definition at line 103 of file TrackDetMatchInfo.h.

References ecalCrossedEnergy().

103 { return ecalCrossedEnergy(); }
double TrackDetMatchInfo::ecalTowerConeEnergy ( )
inline

Definition at line 97 of file TrackDetMatchInfo.h.

References coneEnergy(), and TowerEcal.

97 { return coneEnergy(999,TowerEcal); }
double coneEnergy(double dR, EnergyType)
double TrackDetMatchInfo::ecalTowerEnergy ( )
inline

Definition at line 96 of file TrackDetMatchInfo.h.

References crossedEnergy(), and TowerEcal.

96 { return crossedEnergy(TowerEcal); }
double crossedEnergy(EnergyType)
energy in detector elements crossed by the track by types
DetId TrackDetMatchInfo::findMaxDeposition ( EnergyType  type)

Find detector elements with highest energy deposition.

Definition at line 332 of file TrackDetMatchInfo.cc.

Referenced by InterestingTrackEcalDetIdProducer::produce().

DetId TrackDetMatchInfo::findMaxDeposition ( EnergyType  type,
int  gridSize 
)

Definition at line 546 of file TrackDetMatchInfo.cc.

DetId TrackDetMatchInfo::findMaxDeposition ( const DetId id,
EnergyType  type,
int  gridSize 
)

Definition at line 399 of file TrackDetMatchInfo.cc.

GlobalPoint TrackDetMatchInfo::getPosition ( const DetId id)

Definition at line 34 of file TrackDetMatchInfo.cc.

double TrackDetMatchInfo::hcalConeEnergy ( )

Definition at line 586 of file TrackDetMatchInfo.cc.

double TrackDetMatchInfo::hcalCrossedEnergy ( )

Definition at line 601 of file TrackDetMatchInfo.cc.

Referenced by hcalEnergy().

double TrackDetMatchInfo::hcalEnergy ( )
inline

Definition at line 104 of file TrackDetMatchInfo.h.

References hcalCrossedEnergy().

104 { return hcalCrossedEnergy(); }
double TrackDetMatchInfo::hcalTowerConeEnergy ( )
inline

Definition at line 99 of file TrackDetMatchInfo.h.

References coneEnergy(), and TowerHcal.

99 { return coneEnergy(999, TowerHcal); }
double coneEnergy(double dR, EnergyType)
double TrackDetMatchInfo::hcalTowerEnergy ( )
inline

Definition at line 98 of file TrackDetMatchInfo.h.

References crossedEnergy(), and TowerHcal.

98 { return crossedEnergy(TowerHcal); }
double crossedEnergy(EnergyType)
energy in detector elements crossed by the track by types
double TrackDetMatchInfo::hoConeEnergy ( )

Definition at line 591 of file TrackDetMatchInfo.cc.

double TrackDetMatchInfo::hoCrossedEnergy ( )

Definition at line 606 of file TrackDetMatchInfo.cc.

Referenced by hoEnergy().

double TrackDetMatchInfo::hoEnergy ( )
inline

Definition at line 105 of file TrackDetMatchInfo.h.

References hoCrossedEnergy().

105 { return hoCrossedEnergy(); }
double TrackDetMatchInfo::hoTowerConeEnergy ( )
inline

Definition at line 101 of file TrackDetMatchInfo.h.

References coneEnergy(), and TowerHO.

101 { return coneEnergy(999, TowerHO); }
double coneEnergy(double dR, EnergyType)
double TrackDetMatchInfo::hoTowerEnergy ( )
inline

Definition at line 100 of file TrackDetMatchInfo.h.

References crossedEnergy(), and TowerHO.

100 { return crossedEnergy(TowerHO); }
double crossedEnergy(EnergyType)
energy in detector elements crossed by the track by types
bool TrackDetMatchInfo::insideCone ( const DetId id,
const double  dR 
)
private

Definition at line 99 of file TrackDetMatchInfo.cc.

int TrackDetMatchInfo::numberOfSegments ( ) const

Definition at line 612 of file TrackDetMatchInfo.cc.

int TrackDetMatchInfo::numberOfSegmentsInDetector ( int  detector) const

Definition at line 633 of file TrackDetMatchInfo.cc.

int TrackDetMatchInfo::numberOfSegmentsInStation ( int  station) const

Definition at line 619 of file TrackDetMatchInfo.cc.

int TrackDetMatchInfo::numberOfSegmentsInStation ( int  station,
int  detector 
) const

Definition at line 626 of file TrackDetMatchInfo.cc.

double TrackDetMatchInfo::nXnEnergy ( const DetId id,
EnergyType  type,
int  gridSize = 1 
)

get energy of the NxN shape (N = 2*gridSize + 1) around given detector element

Definition at line 163 of file TrackDetMatchInfo.cc.

double TrackDetMatchInfo::nXnEnergy ( EnergyType  type,
int  gridSize = 1 
)

get energy of the NxN shape (N = 2*gridSize + 1) around track projection

Definition at line 285 of file TrackDetMatchInfo.cc.

void TrackDetMatchInfo::setCaloGeometry ( edm::ESHandle< CaloGeometry geometry)
inline

Definition at line 112 of file TrackDetMatchInfo.h.

References caloGeometry, and geometry.

112 { caloGeometry = geometry; }
edm::ESHandle< CaloGeometry > caloGeometry
ESHandle< TrackerGeometry > geometry

Member Data Documentation

edm::ESHandle<CaloGeometry> TrackDetMatchInfo::caloGeometry
private

Definition at line 117 of file TrackDetMatchInfo.h.

Referenced by setCaloGeometry().

std::vector<TAMuonChamberMatch> TrackDetMatchInfo::chambers

Definition at line 73 of file TrackDetMatchInfo.h.

Referenced by MuonDetCleaner::fillHitMap().

std::vector<DetId> TrackDetMatchInfo::crossedEcalIds

detector elements crossed by a track (regardless of whether energy was deposited or not)

Definition at line 67 of file TrackDetMatchInfo.h.

Referenced by HighPtTrackEcalDetIdProducer::produce().

std::vector<const EcalRecHit*> TrackDetMatchInfo::crossedEcalRecHits

hits in detector elements crossed by a track

Definition at line 60 of file TrackDetMatchInfo.h.

Referenced by MuonCaloCleanerAllCrossed::fillEnergyDepositMap().

std::vector<DetId> TrackDetMatchInfo::crossedHcalIds

Definition at line 68 of file TrackDetMatchInfo.h.

Referenced by ReduceHcalRecHitCollectionProducer::produce().

std::vector<const HBHERecHit*> TrackDetMatchInfo::crossedHcalRecHits

Definition at line 61 of file TrackDetMatchInfo.h.

Referenced by MuonCaloCleanerAllCrossed::fillEnergyDepositMap().

std::vector<DetId> TrackDetMatchInfo::crossedHOIds

Definition at line 69 of file TrackDetMatchInfo.h.

std::vector<const HORecHit*> TrackDetMatchInfo::crossedHORecHits

Definition at line 62 of file TrackDetMatchInfo.h.

Referenced by MuonCaloCleanerAllCrossed::fillEnergyDepositMap().

std::vector<DetId> TrackDetMatchInfo::crossedPreshowerIds

Definition at line 71 of file TrackDetMatchInfo.h.

Referenced by MuonCaloCleanerAllCrossed::fillEnergyDepositMap().

std::vector<DetId> TrackDetMatchInfo::crossedTowerIds

Definition at line 70 of file TrackDetMatchInfo.h.

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

std::vector<const CaloTower*> TrackDetMatchInfo::crossedTowers

Definition at line 63 of file TrackDetMatchInfo.h.

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

std::vector<const EcalRecHit*> TrackDetMatchInfo::ecalRecHits

hits in the cone

Definition at line 54 of file TrackDetMatchInfo.h.

double TrackDetMatchInfo::ecalTrueEnergy

Definition at line 80 of file TrackDetMatchInfo.h.

std::vector<const HBHERecHit*> TrackDetMatchInfo::hcalRecHits

Definition at line 55 of file TrackDetMatchInfo.h.

Referenced by ReduceHcalRecHitCollectionProducer::produce().

double TrackDetMatchInfo::hcalTrueEnergy

Definition at line 81 of file TrackDetMatchInfo.h.

double TrackDetMatchInfo::hcalTrueEnergyCorrected

Definition at line 82 of file TrackDetMatchInfo.h.

std::vector<const HORecHit*> TrackDetMatchInfo::hoRecHits

Definition at line 56 of file TrackDetMatchInfo.h.

bool TrackDetMatchInfo::isGoodCalo

Definition at line 49 of file TrackDetMatchInfo.h.

bool TrackDetMatchInfo::isGoodEcal

Definition at line 47 of file TrackDetMatchInfo.h.

bool TrackDetMatchInfo::isGoodHcal

Definition at line 48 of file TrackDetMatchInfo.h.

bool TrackDetMatchInfo::isGoodHO

Definition at line 50 of file TrackDetMatchInfo.h.

bool TrackDetMatchInfo::isGoodMuon

Definition at line 51 of file TrackDetMatchInfo.h.

const SimTrack* TrackDetMatchInfo::simTrack

MC truth info.

Definition at line 79 of file TrackDetMatchInfo.h.

SimTrackRef TrackDetMatchInfo::simTrackRef_

Definition at line 87 of file TrackDetMatchInfo.h.

FreeTrajectoryState TrackDetMatchInfo::stateAtIP

track info

Definition at line 76 of file TrackDetMatchInfo.h.

std::vector<const CaloTower*> TrackDetMatchInfo::towers

Definition at line 57 of file TrackDetMatchInfo.h.

reco::TrackRef TrackDetMatchInfo::trackRef_

Obsolete methods and data members for backward compatibility. Will be removed in future releases.

Definition at line 86 of file TrackDetMatchInfo.h.

math::XYZPoint TrackDetMatchInfo::trkGlobPosAtEcal

Track position at different parts of the calorimeter.

Definition at line 39 of file TrackDetMatchInfo.h.

math::XYZPoint TrackDetMatchInfo::trkGlobPosAtHcal

Definition at line 40 of file TrackDetMatchInfo.h.

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

math::XYZPoint TrackDetMatchInfo::trkGlobPosAtHO

Definition at line 41 of file TrackDetMatchInfo.h.

GlobalVector TrackDetMatchInfo::trkMomAtEcal

Definition at line 43 of file TrackDetMatchInfo.h.

GlobalVector TrackDetMatchInfo::trkMomAtHcal

Definition at line 44 of file TrackDetMatchInfo.h.

GlobalVector TrackDetMatchInfo::trkMomAtHO

Definition at line 45 of file TrackDetMatchInfo.h.