#include <PositionAtECalEntranceComputer.h>
Public Member Functions | |
void | beginEvent (const edm::EventSetup &) |
reco::Candidate::Point | operator() (const reco::Candidate *particle, bool &success) const |
PositionAtECalEntranceComputer (edm::ConsumesCollector &&, bool isPhase2=false) | |
PositionAtECalEntranceComputer (edm::ConsumesCollector &, bool isPhase2=false) | |
~PositionAtECalEntranceComputer () | |
Private Attributes | |
edm::ESGetToken< MagneticField, IdealMagneticFieldRecord > | bField_esToken_ |
double | bField_z_ |
edm::ESGetToken< CaloGeometry, CaloGeometryRecord > | caloGeo_esToken_ |
float | hgcalFace_z_ |
bool | isPhase2_ |
hgcal::RecHitTools | recHitTools_ |
Static Private Attributes | |
static constexpr float | ecalBarrelEndcapEtaBorder_ = 1.479 |
static constexpr float | hgcalHfEtaBorder_ = 3.0 |
Extrapolate particle (charged or neutral) to ECAL entrance, in order to compute the distance of the tau to ECAL cracks and/or dead ECAL channels
Definition at line 25 of file PositionAtECalEntranceComputer.h.
PositionAtECalEntranceComputer::PositionAtECalEntranceComputer | ( | edm::ConsumesCollector && | cc, |
bool | isPhase2 = false |
||
) |
Definition at line 11 of file PositionAtECalEntranceComputer.cc.
PositionAtECalEntranceComputer::PositionAtECalEntranceComputer | ( | edm::ConsumesCollector & | cc, |
bool | isPhase2 = false |
||
) |
Definition at line 17 of file PositionAtECalEntranceComputer.cc.
PositionAtECalEntranceComputer::~PositionAtECalEntranceComputer | ( | ) |
Definition at line 23 of file PositionAtECalEntranceComputer.cc.
void PositionAtECalEntranceComputer::beginEvent | ( | const edm::EventSetup & | es | ) |
Definition at line 25 of file PositionAtECalEntranceComputer.cc.
References bField_esToken_, bField_z_, caloGeo_esToken_, edm::EventSetup::getData(), hgcal::RecHitTools::getPositionLayer(), hgcalFace_z_, isPhase2_, recHitTools_, hgcal::RecHitTools::setGeometry(), and PV3DBase< T, PVType, FrameType >::z().
Referenced by AntiElectronDeadECAL::beginEvent(), TauDiscriminationAgainstElectronMVA6< TauType, TauDiscriminator, ElectronType >::beginEvent(), and pat::PATTauProducer::produce().
reco::Candidate::Point PositionAtECalEntranceComputer::operator() | ( | const reco::Candidate * | particle, |
bool & | success | ||
) | const |
Definition at line 33 of file PositionAtECalEntranceComputer.cc.
References funct::abs(), cms::cuda::assert(), bField_z_, reco::Candidate::charge(), ecalBarrelEndcapEtaBorder_, reco::Candidate::eta(), hgcalFace_z_, hgcalHfEtaBorder_, isPhase2_, reco::Candidate::p4(), position, TrackCandidateProducer_cfi::propagator, summarizeEdmComparisonLogfiles::success, and reco::Candidate::vertex().
|
private |
Definition at line 37 of file PositionAtECalEntranceComputer.h.
Referenced by beginEvent().
|
private |
Definition at line 39 of file PositionAtECalEntranceComputer.h.
Referenced by beginEvent(), and operator()().
|
private |
Definition at line 38 of file PositionAtECalEntranceComputer.h.
Referenced by beginEvent().
|
staticconstexprprivate |
Definition at line 43 of file PositionAtECalEntranceComputer.h.
Referenced by operator()().
|
private |
Definition at line 42 of file PositionAtECalEntranceComputer.h.
Referenced by beginEvent(), and operator()().
|
staticconstexprprivate |
Definition at line 44 of file PositionAtECalEntranceComputer.h.
Referenced by operator()().
|
private |
Definition at line 40 of file PositionAtECalEntranceComputer.h.
Referenced by beginEvent(), and operator()().
|
private |
Definition at line 41 of file PositionAtECalEntranceComputer.h.
Referenced by beginEvent().