#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 (const CaloGeometry *geometry) |
TrackDetMatchInfo () | |
Private Member Functions | |
bool | insideCone (const DetId &, const double) |
Private Attributes | |
const CaloGeometry * | caloGeometry |
Definition at line 13 of file TrackDetMatchInfo.h.
Enumerator | |
---|---|
EcalRecHits | |
HcalRecHits | |
HORecHits | |
TowerTotal | |
TowerEcal | |
TowerHcal | |
TowerHO |
Definition at line 15 of file TrackDetMatchInfo.h.
TrackDetMatchInfo::TrackDetMatchInfo | ( | ) |
Definition at line 289 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 91 of file TrackDetMatchInfo.cc.
References crossedTowers, HGC3DClusterGenMatchSelector_cfi::dR, EcalRecHits, ecalRecHits, HCALHighEnergyHPDFilter_cfi::energy, Exception, HcalRecHits, hcalRecHits, HORecHits, hoRecHits, insideCone(), TowerEcal, TowerHcal, TowerHO, and TowerTotal.
Referenced by ecalConeEnergy(), ecalTowerConeEnergy(), hcalConeEnergy(), hcalTowerConeEnergy(), hoConeEnergy(), and hoTowerConeEnergy().
double TrackDetMatchInfo::crossedEnergy | ( | EnergyType | type | ) |
energy in detector elements crossed by the track by types
Definition at line 39 of file TrackDetMatchInfo.cc.
References crossedEcalRecHits, crossedHcalRecHits, crossedHORecHits, crossedTowers, EcalRecHits, HCALHighEnergyHPDFilter_cfi::energy, Exception, HcalRecHits, HORecHits, TowerEcal, TowerHcal, TowerHO, and TowerTotal.
Referenced by ecalCrossedEnergy(), ecalTowerEnergy(), hcalCrossedEnergy(), hcalTowerEnergy(), hoCrossedEnergy(), and hoTowerEnergy().
std::string TrackDetMatchInfo::dumpGeometry | ( | const DetId & | id | ) |
Definition at line 16 of file TrackDetMatchInfo.cc.
References caloGeometry, Exception, CaloSubdetectorGeometry::getGeometry(), CaloGeometry::getSubdetectorGeometry(), point, and hiPixelPairStep_cff::points.
double TrackDetMatchInfo::ecalConeEnergy | ( | ) |
Definition at line 547 of file TrackDetMatchInfo.cc.
References coneEnergy(), and EcalRecHits.
double TrackDetMatchInfo::ecalCrossedEnergy | ( | ) |
Definition at line 553 of file TrackDetMatchInfo.cc.
References crossedEnergy(), and EcalRecHits.
Referenced by ecalEnergy().
|
inline |
|
inline |
Definition at line 96 of file TrackDetMatchInfo.h.
References coneEnergy(), and TowerEcal.
|
inline |
Definition at line 95 of file TrackDetMatchInfo.h.
References crossedEnergy(), and TowerEcal.
DetId TrackDetMatchInfo::findMaxDeposition | ( | EnergyType | type | ) |
Find detector elements with highest energy deposition.
Definition at line 305 of file TrackDetMatchInfo.cc.
References EcalRecHits, ecalRecHits, HCALHighEnergyHPDFilter_cfi::energy, Exception, HcalRecHits, hcalRecHits, HORecHits, hoRecHits, l1ctLayer2EG_cff::id, particleFlowClusterECALTimeSelected_cfi::maxEnergy, TowerEcal, TowerHcal, TowerHO, towers, and TowerTotal.
Referenced by findMaxDeposition().
DetId TrackDetMatchInfo::findMaxDeposition | ( | EnergyType | type, |
int | gridSize | ||
) |
Definition at line 511 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 365 of file TrackDetMatchInfo.cc.
References funct::abs(), DetId::Calo, HLT_2022v14_cff::dEta, HLT_2022v14_cff::dPhi, 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 29 of file TrackDetMatchInfo.cc.
References caloGeometry, Exception, CaloSubdetectorGeometry::getGeometry(), and CaloGeometry::getSubdetectorGeometry().
Referenced by insideCone().
double TrackDetMatchInfo::hcalConeEnergy | ( | ) |
Definition at line 549 of file TrackDetMatchInfo.cc.
References coneEnergy(), and HcalRecHits.
double TrackDetMatchInfo::hcalCrossedEnergy | ( | ) |
Definition at line 555 of file TrackDetMatchInfo.cc.
References crossedEnergy(), and HcalRecHits.
Referenced by hcalEnergy().
|
inline |
|
inline |
Definition at line 98 of file TrackDetMatchInfo.h.
References coneEnergy(), and TowerHcal.
|
inline |
Definition at line 97 of file TrackDetMatchInfo.h.
References crossedEnergy(), and TowerHcal.
double TrackDetMatchInfo::hoConeEnergy | ( | ) |
Definition at line 551 of file TrackDetMatchInfo.cc.
References coneEnergy(), and HcalRecHits.
double TrackDetMatchInfo::hoCrossedEnergy | ( | ) |
Definition at line 557 of file TrackDetMatchInfo.cc.
References crossedEnergy(), and HORecHits.
Referenced by hoEnergy().
|
inline |
Definition at line 104 of file TrackDetMatchInfo.h.
References hoCrossedEnergy().
Referenced by Jet.Jet::hoEnergyFraction().
|
inline |
Definition at line 100 of file TrackDetMatchInfo.h.
References coneEnergy(), and TowerHO.
|
inline |
Definition at line 99 of file TrackDetMatchInfo.h.
References crossedEnergy(), and TowerHO.
|
private |
Definition at line 81 of file TrackDetMatchInfo.cc.
References electronAnalyzer_cfi::DeltaR, HGC3DClusterGenMatchSelector_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().
int TrackDetMatchInfo::numberOfSegments | ( | ) | const |
Definition at line 559 of file TrackDetMatchInfo.cc.
References relativeConstraints::chamber, and chambers.
int TrackDetMatchInfo::numberOfSegmentsInDetector | ( | int | detector | ) | const |
Definition at line 582 of file TrackDetMatchInfo.cc.
References relativeConstraints::chamber, chambers, and hgcalTestNeighbor_cfi::detector.
int TrackDetMatchInfo::numberOfSegmentsInStation | ( | int | station | ) | const |
Definition at line 566 of file TrackDetMatchInfo.cc.
References relativeConstraints::chamber, chambers, and relativeConstraints::station.
int TrackDetMatchInfo::numberOfSegmentsInStation | ( | int | station, |
int | detector | ||
) | const |
Definition at line 574 of file TrackDetMatchInfo.cc.
References relativeConstraints::chamber, chambers, hgcalTestNeighbor_cfi::detector, and relativeConstraints::station.
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 137 of file TrackDetMatchInfo.cc.
References funct::abs(), DetId::Calo, HLT_2022v14_cff::dEta, HLT_2022v14_cff::dPhi, DetId::Ecal, EcalBarrel, EcalEndcap, EcalRecHits, ecalRecHits, HCALHighEnergyHPDFilter_cfi::energy, 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 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 258 of file TrackDetMatchInfo.cc.
References crossedEcalIds, crossedHcalIds, crossedHOIds, crossedTowerIds, EcalRecHits, Exception, HcalRecHits, HORecHits, nXnEnergy(), TowerEcal, TowerHcal, TowerHO, and TowerTotal.
|
inline |
Definition at line 111 of file TrackDetMatchInfo.h.
References caloGeometry, and relativeConstraints::geometry.
|
private |
Definition at line 117 of file TrackDetMatchInfo.h.
Referenced by dumpGeometry(), getPosition(), and setCaloGeometry().
std::vector<TAMuonChamberMatch> TrackDetMatchInfo::chambers |
Definition at line 72 of file TrackDetMatchInfo.h.
Referenced by 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 66 of file TrackDetMatchInfo.h.
Referenced by muonisolation::CaloExtractorByAssociator::deposits(), findMaxDeposition(), nXnEnergy(), and pat::PATIsolatedTrackProducer::produce().
std::vector<const EcalRecHit*> TrackDetMatchInfo::crossedEcalRecHits |
hits in detector elements crossed by a track
Definition at line 59 of file TrackDetMatchInfo.h.
Referenced by crossedEnergy().
std::vector<DetId> TrackDetMatchInfo::crossedHcalIds |
Definition at line 67 of file TrackDetMatchInfo.h.
Referenced by muonisolation::CaloExtractorByAssociator::deposits(), findMaxDeposition(), nXnEnergy(), and pat::PATIsolatedTrackProducer::produce().
std::vector<const HBHERecHit*> TrackDetMatchInfo::crossedHcalRecHits |
Definition at line 60 of file TrackDetMatchInfo.h.
Referenced by crossedEnergy().
std::vector<DetId> TrackDetMatchInfo::crossedHOIds |
Definition at line 68 of file TrackDetMatchInfo.h.
Referenced by muonisolation::CaloExtractorByAssociator::deposits(), findMaxDeposition(), and nXnEnergy().
std::vector<const HORecHit*> TrackDetMatchInfo::crossedHORecHits |
Definition at line 61 of file TrackDetMatchInfo.h.
Referenced by crossedEnergy().
std::vector<DetId> TrackDetMatchInfo::crossedPreshowerIds |
Definition at line 70 of file TrackDetMatchInfo.h.
std::vector<DetId> TrackDetMatchInfo::crossedTowerIds |
Definition at line 69 of file TrackDetMatchInfo.h.
Referenced by muonisolation::JetExtractor::deposit(), muonisolation::CaloExtractorByAssociator::deposits(), findMaxDeposition(), and nXnEnergy().
std::vector<const CaloTower*> TrackDetMatchInfo::crossedTowers |
Definition at line 62 of file TrackDetMatchInfo.h.
Referenced by coneEnergy(), crossedEnergy(), and muonisolation::JetExtractor::deposit().
std::vector<const EcalRecHit*> TrackDetMatchInfo::ecalRecHits |
hits in the cone
Definition at line 53 of file TrackDetMatchInfo.h.
Referenced by coneEnergy(), muonisolation::CaloExtractorByAssociator::deposits(), findMaxDeposition(), and nXnEnergy().
double TrackDetMatchInfo::ecalTrueEnergy |
Definition at line 79 of file TrackDetMatchInfo.h.
std::vector<const HBHERecHit*> TrackDetMatchInfo::hcalRecHits |
Definition at line 54 of file TrackDetMatchInfo.h.
Referenced by coneEnergy(), muonisolation::CaloExtractorByAssociator::deposits(), findMaxDeposition(), and nXnEnergy().
double TrackDetMatchInfo::hcalTrueEnergy |
Definition at line 80 of file TrackDetMatchInfo.h.
double TrackDetMatchInfo::hcalTrueEnergyCorrected |
Definition at line 81 of file TrackDetMatchInfo.h.
std::vector<const HORecHit*> TrackDetMatchInfo::hoRecHits |
Definition at line 55 of file TrackDetMatchInfo.h.
Referenced by coneEnergy(), muonisolation::CaloExtractorByAssociator::deposits(), findMaxDeposition(), and nXnEnergy().
bool TrackDetMatchInfo::isGoodCalo |
Definition at line 48 of file TrackDetMatchInfo.h.
bool TrackDetMatchInfo::isGoodEcal |
Definition at line 46 of file TrackDetMatchInfo.h.
Referenced by spr::chargeIsolation(), and spr::chargeIsolationEcal().
bool TrackDetMatchInfo::isGoodHcal |
Definition at line 47 of file TrackDetMatchInfo.h.
Referenced by spr::chargeIsolationHcal(), and spr::coneChargeIsolation().
bool TrackDetMatchInfo::isGoodHO |
Definition at line 49 of file TrackDetMatchInfo.h.
bool TrackDetMatchInfo::isGoodMuon |
Definition at line 50 of file TrackDetMatchInfo.h.
const SimTrack* TrackDetMatchInfo::simTrack |
MC truth info.
Definition at line 78 of file TrackDetMatchInfo.h.
SimTrackRef TrackDetMatchInfo::simTrackRef_ |
Definition at line 86 of file TrackDetMatchInfo.h.
FreeTrajectoryState TrackDetMatchInfo::stateAtIP |
std::vector<const CaloTower*> TrackDetMatchInfo::towers |
Definition at line 56 of file TrackDetMatchInfo.h.
Referenced by muonisolation::CaloExtractorByAssociator::deposits(), findMaxDeposition(), and nXnEnergy().
reco::TrackRef TrackDetMatchInfo::trackRef_ |
Obsolete methods and data members for backward compatibility. Will be removed in future releases.
Definition at line 85 of file TrackDetMatchInfo.h.
math::XYZPoint TrackDetMatchInfo::trkGlobPosAtEcal |
Track position at different parts of the calorimeter.
Definition at line 38 of file TrackDetMatchInfo.h.
Referenced by EopTreeWriter::analyze(), IsolatedTracksCone::analyze(), spr::chargeIsolation(), spr::chargeIsolationEcal(), muonisolation::CaloExtractorByAssociator::deposits(), and pat::PATIsolatedTrackProducer::produce().
math::XYZPoint TrackDetMatchInfo::trkGlobPosAtHcal |
Definition at line 39 of file TrackDetMatchInfo.h.
Referenced by IsolatedTracksCone::analyze(), spr::chargeIsolationHcal(), spr::coneChargeIsolation(), muonisolation::JetExtractor::deposit(), and muonisolation::CaloExtractorByAssociator::deposits().
math::XYZPoint TrackDetMatchInfo::trkGlobPosAtHO |
Definition at line 40 of file TrackDetMatchInfo.h.
Referenced by muonisolation::CaloExtractorByAssociator::deposits().
GlobalVector TrackDetMatchInfo::trkMomAtEcal |
Definition at line 42 of file TrackDetMatchInfo.h.
Referenced by IsolatedTracksCone::analyze().
GlobalVector TrackDetMatchInfo::trkMomAtHcal |
Definition at line 43 of file TrackDetMatchInfo.h.
Referenced by IsolatedTracksCone::analyze().
GlobalVector TrackDetMatchInfo::trkMomAtHO |
Definition at line 44 of file TrackDetMatchInfo.h.