#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 () | |
Private Member Functions | |
bool | insideCone (const DetId &, const double) |
Private Attributes | |
const CaloGeometry * | caloGeometry |
Definition at line 14 of file TrackDetMatchInfo.h.
Enumerator | |
---|---|
EcalRecHits | |
HcalRecHits | |
HORecHits | |
TowerTotal | |
TowerEcal | |
TowerHcal | |
TowerHO |
Definition at line 16 of file TrackDetMatchInfo.h.
TrackDetMatchInfo::TrackDetMatchInfo | ( | ) |
Definition at line 314 of file TrackDetMatchInfo.cc.
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.
References crossedTowers, PFRecoTauDiscriminationAgainstElectronDeadECAL_cfi::dR, EcalRecHits, ecalRecHits, Exception, HcalRecHits, hcalRecHits, HORecHits, hoRecHits, insideCone(), TowerEcal, TowerHcal, TowerHO, and TowerTotal.
Referenced by ecalConeEnergy(), ecalTowerConeEnergy(), hcalConeEnergy(), hcalTowerConeEnergy(), hoConeEnergy(), hoTowerConeEnergy(), and ProduceIsolationMap::produce().
double TrackDetMatchInfo::crossedEnergy | ( | EnergyType | type | ) |
energy in detector elements crossed by the track by types
Definition at line 47 of file TrackDetMatchInfo.cc.
References crossedEcalRecHits, crossedHcalRecHits, crossedHORecHits, crossedTowers, EcalRecHits, Exception, HcalRecHits, HORecHits, TowerEcal, TowerHcal, TowerHO, and TowerTotal.
Referenced by BetaCalculatorECAL::addInfoToCandidate(), ecalCrossedEnergy(), ecalTowerEnergy(), MuonIdProducer::fillMuonId(), hcalCrossedEnergy(), hcalTowerEnergy(), hoCrossedEnergy(), and hoTowerEnergy().
std::string TrackDetMatchInfo::dumpGeometry | ( | const DetId & | id | ) |
Definition at line 17 of file TrackDetMatchInfo.cc.
References EZArrayFL< T >::begin(), caloGeometry, EZArrayFL< T >::end(), Exception, CaloSubdetectorGeometry::getGeometry(), CaloGeometry::getSubdetectorGeometry(), point, and hiPixelPairStep_cff::points.
Referenced by setCaloGeometry().
double TrackDetMatchInfo::ecalConeEnergy | ( | ) |
Definition at line 581 of file TrackDetMatchInfo.cc.
References coneEnergy(), and EcalRecHits.
double TrackDetMatchInfo::ecalCrossedEnergy | ( | ) |
Definition at line 596 of file TrackDetMatchInfo.cc.
References crossedEnergy(), and EcalRecHits.
Referenced by ecalEnergy().
|
inline |
|
inline |
Definition at line 97 of file TrackDetMatchInfo.h.
References coneEnergy(), and TowerEcal.
|
inline |
Definition at line 96 of file TrackDetMatchInfo.h.
References crossedEnergy(), and TowerEcal.
DetId TrackDetMatchInfo::findMaxDeposition | ( | EnergyType | type | ) |
Find detector elements with highest energy deposition.
Definition at line 332 of file TrackDetMatchInfo.cc.
References EcalRecHits, ecalRecHits, Exception, HcalRecHits, hcalRecHits, HORecHits, hoRecHits, triggerObjects_cff::id, particleFlowClusterECALTimeSelected_cfi::maxEnergy, TowerEcal, TowerHcal, TowerHO, towers, and TowerTotal.
Referenced by MuonIdProducer::fillMuonId(), findMaxDeposition(), and InterestingTrackEcalDetIdProducer::produce().
DetId TrackDetMatchInfo::findMaxDeposition | ( | EnergyType | type, |
int | gridSize | ||
) |
Definition at line 546 of file TrackDetMatchInfo.cc.
References crossedEcalIds, crossedHcalIds, crossedHOIds, crossedTowerIds, EcalRecHits, Exception, findMaxDeposition(), HcalRecHits, HORecHits, TowerEcal, TowerHcal, TowerHO, and TowerTotal.
DetId TrackDetMatchInfo::findMaxDeposition | ( | const DetId & | id, |
EnergyType | type, | ||
int | gridSize | ||
) |
Definition at line 399 of file TrackDetMatchInfo.cc.
References funct::abs(), DetId::Calo, DetId::Ecal, EcalBarrel, EcalEndcap, EcalRecHits, ecalRecHits, Exception, DetId::Hcal, HcalBarrel, HcalEndcap, HcalOuter, HcalRecHits, hcalRecHits, HORecHits, hoRecHits, CaloTowerDetId::ieta(), EBDetId::ieta(), HcalDetId::ieta(), DetIdInfo::info(), CaloTowerDetId::iphi(), EBDetId::iphi(), HcalDetId::iphi(), EEDetId::ix(), EEDetId::iy(), TowerEcal, TowerHcal, TowerHO, towers, TowerTotal, and EEDetId::zside().
GlobalPoint TrackDetMatchInfo::getPosition | ( | const DetId & | id | ) |
Definition at line 34 of file TrackDetMatchInfo.cc.
References caloGeometry, Exception, CaloSubdetectorGeometry::getGeometry(), and CaloGeometry::getSubdetectorGeometry().
Referenced by BetaCalculatorECAL::addInfoToCandidate(), insideCone(), and setCaloGeometry().
double TrackDetMatchInfo::hcalConeEnergy | ( | ) |
Definition at line 586 of file TrackDetMatchInfo.cc.
References coneEnergy(), and HcalRecHits.
double TrackDetMatchInfo::hcalCrossedEnergy | ( | ) |
Definition at line 601 of file TrackDetMatchInfo.cc.
References crossedEnergy(), and HcalRecHits.
Referenced by hcalEnergy().
|
inline |
|
inline |
Definition at line 99 of file TrackDetMatchInfo.h.
References coneEnergy(), and TowerHcal.
|
inline |
Definition at line 98 of file TrackDetMatchInfo.h.
References crossedEnergy(), and TowerHcal.
double TrackDetMatchInfo::hoConeEnergy | ( | ) |
Definition at line 591 of file TrackDetMatchInfo.cc.
References coneEnergy(), and HcalRecHits.
double TrackDetMatchInfo::hoCrossedEnergy | ( | ) |
Definition at line 606 of file TrackDetMatchInfo.cc.
References crossedEnergy(), and HORecHits.
Referenced by hoEnergy().
|
inline |
Definition at line 105 of file TrackDetMatchInfo.h.
References gamEcalExtractorBlocks_cff::detector, hoCrossedEnergy(), numberOfSegments(), numberOfSegmentsInDetector(), numberOfSegmentsInStation(), and relativeConstraints::station.
Referenced by Jet.Jet::hoEnergyFraction().
|
inline |
Definition at line 101 of file TrackDetMatchInfo.h.
References coneEnergy().
|
inline |
Definition at line 100 of file TrackDetMatchInfo.h.
References crossedEnergy().
|
private |
Definition at line 99 of file TrackDetMatchInfo.cc.
References HiRegitMuonDetachedTripletStep_cff::DeltaR, PFRecoTauDiscriminationAgainstElectronDeadECAL_cfi::dR, getPosition(), PV3DBase< T, PVType, FrameType >::mag(), FreeTrajectoryState::momentum(), stateAtIP, PV3DBase< T, PVType, FrameType >::x(), PV3DBase< T, PVType, FrameType >::y(), and PV3DBase< T, PVType, FrameType >::z().
Referenced by coneEnergy(), and setCaloGeometry().
int TrackDetMatchInfo::numberOfSegments | ( | ) | const |
Definition at line 612 of file TrackDetMatchInfo.cc.
References relativeConstraints::chamber, and chambers.
Referenced by hoEnergy().
int TrackDetMatchInfo::numberOfSegmentsInDetector | ( | int | detector | ) | const |
Definition at line 633 of file TrackDetMatchInfo.cc.
References relativeConstraints::chamber, chambers, and gamEcalExtractorBlocks_cff::detector.
Referenced by hoEnergy().
int TrackDetMatchInfo::numberOfSegmentsInStation | ( | int | station | ) | const |
Definition at line 619 of file TrackDetMatchInfo.cc.
References relativeConstraints::chamber, chambers, and relativeConstraints::station.
Referenced by hoEnergy().
int TrackDetMatchInfo::numberOfSegmentsInStation | ( | int | station, |
int | detector | ||
) | const |
Definition at line 626 of file TrackDetMatchInfo.cc.
References relativeConstraints::chamber, chambers, and gamEcalExtractorBlocks_cff::detector.
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.
References funct::abs(), DetId::Calo, DetId::Ecal, EcalBarrel, EcalEndcap, EcalRecHits, ecalRecHits, Exception, DetId::Hcal, HcalBarrel, HcalEndcap, HcalOuter, HcalRecHits, hcalRecHits, HORecHits, hoRecHits, CaloTowerDetId::ieta(), EBDetId::ieta(), HcalDetId::ieta(), DetIdInfo::info(), CaloTowerDetId::iphi(), EBDetId::iphi(), HcalDetId::iphi(), EEDetId::ix(), EEDetId::iy(), TowerEcal, TowerHcal, TowerHO, towers, TowerTotal, and EEDetId::zside().
Referenced by BetaCalculatorECAL::addInfoToCandidate(), EopTreeWriter::analyze(), MuonIdProducer::fillMuonId(), and nXnEnergy().
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.
References crossedEcalIds, crossedHcalIds, crossedHOIds, crossedTowerIds, EcalRecHits, Exception, HcalRecHits, HORecHits, nXnEnergy(), TowerEcal, TowerHcal, TowerHO, and TowerTotal.
|
inline |
Definition at line 112 of file TrackDetMatchInfo.h.
References caloGeometry, dumpGeometry(), getPosition(), insideCone(), edm::ESHandle< T >::product(), and AlCaHLTBitMon_QueryRunRegistry::string.
Referenced by TrackDetectorAssociator::associate().
|
private |
Definition at line 117 of file TrackDetMatchInfo.h.
Referenced by dumpGeometry(), getPosition(), and setCaloGeometry().
std::vector<TAMuonChamberMatch> TrackDetMatchInfo::chambers |
Definition at line 73 of file TrackDetMatchInfo.h.
Referenced by TrackDetectorAssociator::fillMuon(), MuonIdProducer::fillMuonId(), numberOfSegments(), numberOfSegmentsInDetector(), and numberOfSegmentsInStation().
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 EcalCosmicsHists::analyze(), muonisolation::CaloExtractorByAssociator::deposits(), TrackDetectorAssociator::fillEcal(), MuonIdProducer::fillMuonId(), findMaxDeposition(), nXnEnergy(), pat::PATIsolatedTrackProducer::produce(), and 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 crossedEnergy(), CaloCleaner< T >::fill_correction_map(), and TrackDetectorAssociator::fillEcal().
std::vector<DetId> TrackDetMatchInfo::crossedHcalIds |
Definition at line 68 of file TrackDetMatchInfo.h.
Referenced by muonisolation::CaloExtractorByAssociator::deposits(), TrackDetectorAssociator::fillHcal(), MuonIdProducer::fillMuonId(), findMaxDeposition(), nXnEnergy(), pat::PATIsolatedTrackProducer::produce(), and ReduceHcalRecHitCollectionProducer::produce().
std::vector<const HBHERecHit*> TrackDetMatchInfo::crossedHcalRecHits |
Definition at line 61 of file TrackDetMatchInfo.h.
Referenced by BetaCalculatorECAL::addInfoToCandidate(), crossedEnergy(), CaloCleaner< T >::fill_correction_map(), and TrackDetectorAssociator::fillHcal().
std::vector<DetId> TrackDetMatchInfo::crossedHOIds |
Definition at line 69 of file TrackDetMatchInfo.h.
Referenced by muonisolation::CaloExtractorByAssociator::deposits(), TrackDetectorAssociator::fillHO(), findMaxDeposition(), and nXnEnergy().
std::vector<const HORecHit*> TrackDetMatchInfo::crossedHORecHits |
Definition at line 62 of file TrackDetMatchInfo.h.
Referenced by crossedEnergy(), CaloCleaner< T >::fill_correction_map(), and TrackDetectorAssociator::fillHO().
std::vector<DetId> TrackDetMatchInfo::crossedPreshowerIds |
Definition at line 71 of file TrackDetMatchInfo.h.
Referenced by CaloCleaner< T >::fill_correction_map(), and TrackDetectorAssociator::fillPreshower().
std::vector<DetId> TrackDetMatchInfo::crossedTowerIds |
Definition at line 70 of file TrackDetMatchInfo.h.
Referenced by muonisolation::JetExtractor::deposit(), muonisolation::CaloExtractorByAssociator::deposits(), TrackDetectorAssociator::fillCaloTowers(), findMaxDeposition(), and nXnEnergy().
std::vector<const CaloTower*> TrackDetMatchInfo::crossedTowers |
Definition at line 63 of file TrackDetMatchInfo.h.
Referenced by coneEnergy(), crossedEnergy(), muonisolation::JetExtractor::deposit(), TrackDetectorAssociator::fillCaloTowers(), and MuonMETAlgo::GetMuDepDeltas().
std::vector<const EcalRecHit*> TrackDetMatchInfo::ecalRecHits |
hits in the cone
Definition at line 54 of file TrackDetMatchInfo.h.
Referenced by coneEnergy(), muonisolation::CaloExtractorByAssociator::deposits(), TrackDetectorAssociator::fillEcal(), MuonIdProducer::fillMuonId(), findMaxDeposition(), nXnEnergy(), and ProduceIsolationMap::produce().
double TrackDetMatchInfo::ecalTrueEnergy |
Definition at line 80 of file TrackDetMatchInfo.h.
Referenced by TrackDetectorAssociator::fillCaloTruth().
std::vector<const HBHERecHit*> TrackDetMatchInfo::hcalRecHits |
Definition at line 55 of file TrackDetMatchInfo.h.
Referenced by coneEnergy(), muonisolation::CaloExtractorByAssociator::deposits(), TrackDetectorAssociator::fillHcal(), MuonIdProducer::fillMuonId(), findMaxDeposition(), nXnEnergy(), ReduceHcalRecHitCollectionProducer::produce(), and ProduceIsolationMap::produce().
double TrackDetMatchInfo::hcalTrueEnergy |
Definition at line 81 of file TrackDetMatchInfo.h.
Referenced by TrackDetectorAssociator::fillCaloTruth().
double TrackDetMatchInfo::hcalTrueEnergyCorrected |
Definition at line 82 of file TrackDetMatchInfo.h.
Referenced by TrackDetectorAssociator::fillCaloTruth().
std::vector<const HORecHit*> TrackDetMatchInfo::hoRecHits |
Definition at line 56 of file TrackDetMatchInfo.h.
Referenced by coneEnergy(), muonisolation::CaloExtractorByAssociator::deposits(), TrackDetectorAssociator::fillHO(), findMaxDeposition(), and nXnEnergy().
bool TrackDetMatchInfo::isGoodCalo |
Definition at line 49 of file TrackDetMatchInfo.h.
Referenced by TrackDetectorAssociator::fillCaloTowers().
bool TrackDetMatchInfo::isGoodEcal |
Definition at line 47 of file TrackDetMatchInfo.h.
Referenced by spr::chargeIsolation(), spr::chargeIsolationEcal(), and TrackDetectorAssociator::fillEcal().
bool TrackDetMatchInfo::isGoodHcal |
Definition at line 48 of file TrackDetMatchInfo.h.
Referenced by spr::chargeIsolationHcal(), spr::coneChargeIsolation(), and TrackDetectorAssociator::fillHcal().
bool TrackDetMatchInfo::isGoodHO |
Definition at line 50 of file TrackDetMatchInfo.h.
Referenced by TrackDetectorAssociator::fillHO().
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.
Referenced by TrackDetectorAssociator::fillCaloTruth().
SimTrackRef TrackDetMatchInfo::simTrackRef_ |
Definition at line 87 of file TrackDetMatchInfo.h.
FreeTrajectoryState TrackDetMatchInfo::stateAtIP |
track info
Definition at line 76 of file TrackDetMatchInfo.h.
Referenced by TrackDetectorAssociator::associate(), TrackDetectorAssociator::fillCaloTruth(), and insideCone().
std::vector<const CaloTower*> TrackDetMatchInfo::towers |
Definition at line 57 of file TrackDetMatchInfo.h.
Referenced by muonisolation::CaloExtractorByAssociator::deposits(), TrackDetectorAssociator::fillCaloTowers(), findMaxDeposition(), and nXnEnergy().
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.
Referenced by EopTreeWriter::analyze(), ValidIsoTrkCalib::analyze(), IsolatedTracksCone::analyze(), TrackDetectorAssociator::associate(), spr::chargeIsolation(), spr::chargeIsolationEcal(), muonisolation::CaloExtractorByAssociator::deposits(), MuonIdProducer::fillMuonId(), MuonMETAlgo::GetMuDepDeltas(), and pat::PATIsolatedTrackProducer::produce().
math::XYZPoint TrackDetMatchInfo::trkGlobPosAtHcal |
Definition at line 40 of file TrackDetMatchInfo.h.
Referenced by ValidIsoTrkCalib::analyze(), IsolatedTracksCone::analyze(), TrackDetectorAssociator::associate(), spr::chargeIsolationHcal(), spr::coneChargeIsolation(), muonisolation::JetExtractor::deposit(), muonisolation::CaloExtractorByAssociator::deposits(), TrackDetectorAssociator::fillCaloTruth(), MuonIdProducer::fillMuonId(), and MuonMETAlgo::GetMuDepDeltas().
math::XYZPoint TrackDetMatchInfo::trkGlobPosAtHO |
Definition at line 41 of file TrackDetMatchInfo.h.
Referenced by TrackDetectorAssociator::associate(), muonisolation::CaloExtractorByAssociator::deposits(), and MuonMETAlgo::GetMuDepDeltas().
GlobalVector TrackDetMatchInfo::trkMomAtEcal |
Definition at line 43 of file TrackDetMatchInfo.h.
Referenced by IsolatedTracksCone::analyze(), and TrackDetectorAssociator::associate().
GlobalVector TrackDetMatchInfo::trkMomAtHcal |
Definition at line 44 of file TrackDetMatchInfo.h.
Referenced by IsolatedTracksCone::analyze(), and TrackDetectorAssociator::associate().
GlobalVector TrackDetMatchInfo::trkMomAtHO |
Definition at line 45 of file TrackDetMatchInfo.h.
Referenced by TrackDetectorAssociator::associate().