|
|
#include <RecoHI/EvtPlaneProducer/src/EvtPlaneProducer.cc>
Description: <one line="" class="" summary>="">
Implementation: <Notes on="" implementation>="">
Definition at line 168 of file EvtPlaneProducer.cc.
◆ EvtPlaneProducer()
Definition at line 344 of file EvtPlaneProducer.cc.
383 if (iConfig.
exists(
"nonDefaultGlauberModel")) {
410 produces<reco::EvtPlaneCollection>();
References bScalo_particleFlow_, bStrack_packedPFCandidates_, caloTag_, caloToken_, caloTokenPF_, castorTag_, castorToken_, centralityBinTag_, centralityBinToken_, centralityLabel_, centralityMC_, centralityVariable_, chi2_, chi2MapLostTag_, chi2MapLostToken_, chi2MapTag_, chi2MapToken_, chi2perlayer_, edm::errors::Configuration, cutEra_, cuts_, d0d0error_, dzdzerror_, dzdzerror_pix_, hi::EPEtaMax1, hi::EPEtaMax2, hi::EPEtaMin1, hi::EPEtaMin2, hi::EPNames, hi::EPOrder, Exception, edm::ParameterSet::exists(), flat, flatdelvtx_, flatminvtx_, flatnvtxbins_, FlatOrder_, edm::ParameterSet::getParameter(), mps_fire::i, HiEvtPlaneFlatten::init(), edm::InputTag::label(), lostToken_, losttrackTag_, nCentBins_, nhitsValid_, hi::NumEPNames, NumFlatBins_, packedToken_, pterror_, rp, AlCaHLTBitMon_QueryRunRegistry::string, trackTag_, trackToken_, vertexTag_, and vertexToken_.
◆ ~EvtPlaneProducer()
EvtPlaneProducer::~EvtPlaneProducer |
( |
| ) |
|
|
override |
◆ fillCastor()
void EvtPlaneProducer::fillCastor |
( |
const TrackStructure & |
track, |
|
|
double |
vz, |
|
|
int |
bin |
|
) |
| |
|
inlineprivate |
Definition at line 272 of file EvtPlaneProducer.cc.
References hi::GenPlane::addParticle(), newFWLiteAna::bin, funct::cos(), hi::EPDet, hi::EPOrder, HiEvtPlaneFlatten::getW(), mps_fire::i, HiEvtPlane_cfi::maxet, hi::maxTransverse, HiEvtPlane_cfi::minet, hi::minTransverse, hi::MomConsWeight, hi::NumEPNames, funct::sin(), HLT_FULL_cff::track, and w.
Referenced by produce().
◆ fillHF()
void EvtPlaneProducer::fillHF |
( |
const TrackStructure & |
track, |
|
|
double |
vz, |
|
|
int |
bin |
|
) |
| |
|
inlineprivate |
Definition at line 244 of file EvtPlaneProducer.cc.
References hi::GenPlane::addParticle(), newFWLiteAna::bin, funct::cos(), hi::EPDet, hi::EPOrder, HiEvtPlaneFlatten::etScale(), HiEvtPlaneFlatten::getW(), DigiToRawDM_cff::HF, mps_fire::i, HiEvtPlane_cfi::maxet, hi::maxTransverse, HiEvtPlane_cfi::minet, hi::minTransverse, hi::MomConsWeight, hi::NumEPNames, funct::sin(), HLT_FULL_cff::track, and w.
Referenced by produce().
◆ fillTracker()
void EvtPlaneProducer::fillTracker |
( |
const TrackStructure & |
track, |
|
|
double |
vz, |
|
|
int |
bin |
|
) |
| |
|
inlineprivate |
Definition at line 315 of file EvtPlaneProducer.cc.
References hi::GenPlane::addParticle(), newFWLiteAna::bin, funct::cos(), hi::EPDet, hi::EPOrder, HiEvtPlaneFlatten::getW(), mps_fire::i, HiEvtPlane_cfi::maxpt, hi::maxTransverse, HiEvtPlane_cfi::minpt, hi::minTransverse, hi::MomConsWeight, hi::NumEPNames, funct::sin(), HLT_FULL_cff::track, align::Tracker, and w.
Referenced by produce().
◆ passEta()
bool EvtPlaneProducer::passEta |
( |
float |
eta, |
|
|
int |
i |
|
) |
| |
|
inlineprivate |
◆ produce()
Definition at line 433 of file EvtPlaneProducer.cc.
436 using namespace reco;
450 if (minbin > 0 && maxbin >= minbin) {
464 if (!
db.IsSuccess()) {
482 double bestvz =
vtx.z();
483 double bestvx =
vtx.x();
484 double bestvy =
vtx.y();
485 double bestvzError =
vtx.zError();
504 for (
unsigned int i = 0,
n =
cands->size();
i <
n; ++
i) {
515 if (!
pf.hasTrackDetails())
547 for (
unsigned int i = 0,
n = calocands->size();
i <
n; ++
i) {
609 auto evtplaneOutput = std::make_unique<EvtPlaneCollection>();
625 evtplaneOutput->push_back(
EvtPlane(
i, 0, ang,
sv,
cv,
wv, wv2, pe, pe2, epmult));
626 evtplaneOutput->back().addLevel(3, 0., svNoWgt, cvNoWgt);
References funct::abs(), reco::TrackBase::algo(), hi::TrackStructure::algos, newFWLiteAna::bin, bScalo_particleFlow_, bStrack_packedPFCandidates_, caloCentRef_, caloCentRefWidth_, caloCollection_, caloToken_, caloTokenPF_, HLT_FULL_cff::cands, castorCollection_, castorToken_, hi::TrackStructure::centbin, CentBinCompression_, centralityBinToken_, centralityLabel_, hi::TrackStructure::charge, reco::TrackBase::charge(), edm::ESWatcher< T >::check(), hi::TrackStructure::chi2layer, chi2MapLostToken_, chi2MapToken_, hi::TrackStructure::collection, cuts_, cuy::cv, dqmiodatasetharvest::db, hi::TrackStructure::dxy, reco::TrackBase::dxy(), hi::TrackStructure::dxyError, reco::TrackBase::dxyError(), hi::TrackStructure::dxySig, hi::TrackStructure::dz, reco::TrackBase::dz(), hi::TrackStructure::dzError, reco::TrackBase::dzError(), hi::TrackStructure::dzSig, hi::EPDet, hi::TrackStructure::et, hi::TrackStructure::eta, reco::TrackBase::eta(), fillCastor(), fillHF(), fillTracker(), flat, edm::EventSetup::get(), get, hi::GenPlane::getAngle(), DigiToRawDM_cff::HF, hi::TrackStructure::highPurity, reco::TrackBase::highPurity, hirpWatcher_, reco::TrackBase::hitPattern(), hiWatcher_, mps_fire::i, heavyIonCSV_trainingSettings::idx, iEvent, hi::EPCuts::isGoodCastor(), hi::EPCuts::isGoodHF(), hi::EPCuts::isGoodTrack(), loadDB_, lostToken_, CentralityTable::m_table, eostools::move(), dqmiodumpmetadata::n, nCentBins_, hi::TrackStructure::normalizedChi2, hi::TrackStructure::numberOfValidHits, reco::TrackBase::numberOfValidHits(), hi::NumEPNames, packedToken_, hi::TrackStructure::pdgid, packedPFCandidateRefMixer_cfi::pf, hi::TrackStructure::phi, reco::TrackBase::phi(), hi::TrackStructure::pt, reco::TrackBase::pt(), hi::TrackStructure::ptError, reco::TrackBase::ptError(), reset(), rp, HiEvtPlaneFlatten::setCaloCentRefBins(), pfDeepBoostedJetPreprocessParams_cfi::sv, hgcalTowerProducer_cfi::tower, track_, trackCollection_, reco::HitPattern::trackerLayersWithMeasurement(), trackToken_, parallelization::uint, vertexToken_, extraflags_cff::vtx, and gpuVertexFinder::wv.
◆ bScalo_particleFlow_
bool EvtPlaneProducer::bScalo_particleFlow_ |
|
private |
◆ bStrack_packedPFCandidates_
bool EvtPlaneProducer::bStrack_packedPFCandidates_ |
|
private |
◆ caloCentRef_
double EvtPlaneProducer::caloCentRef_ |
|
private |
◆ caloCentRefWidth_
double EvtPlaneProducer::caloCentRefWidth_ |
|
private |
◆ caloCollection_
◆ caloTag_
◆ caloToken_
◆ caloTokenPF_
◆ castorCollection_
◆ castorTag_
◆ castorToken_
◆ CentBinCompression_
int EvtPlaneProducer::CentBinCompression_ |
|
private |
◆ centralityBinTag_
◆ centralityBinToken_
◆ centralityLabel_
std::string EvtPlaneProducer::centralityLabel_ |
|
private |
◆ centralityMC_
std::string EvtPlaneProducer::centralityMC_ |
|
private |
◆ centralityVariable_
std::string EvtPlaneProducer::centralityVariable_ |
|
private |
◆ chi2_
double EvtPlaneProducer::chi2_ |
|
private |
◆ chi2MapLostTag_
◆ chi2MapLostToken_
◆ chi2MapTag_
◆ chi2MapToken_
◆ chi2perlayer_
double EvtPlaneProducer::chi2perlayer_ |
|
private |
◆ cutEra_
int EvtPlaneProducer::cutEra_ |
|
private |
◆ cuts_
EPCuts EvtPlaneProducer::cuts_ |
|
private |
◆ d0d0error_
double EvtPlaneProducer::d0d0error_ |
|
private |
◆ dzdzerror_
double EvtPlaneProducer::dzdzerror_ |
|
private |
◆ dzdzerror_pix_
double EvtPlaneProducer::dzdzerror_pix_ |
|
private |
◆ dzerr_
double EvtPlaneProducer::dzerr_ |
|
private |
◆ flat
◆ flatdelvtx_
double EvtPlaneProducer::flatdelvtx_ |
|
private |
◆ flatminvtx_
double EvtPlaneProducer::flatminvtx_ |
|
private |
◆ flatnvtxbins_
int EvtPlaneProducer::flatnvtxbins_ |
|
private |
◆ FlatOrder_
int EvtPlaneProducer::FlatOrder_ |
|
private |
◆ hirpWatcher_
◆ hiWatcher_
◆ loadDB_
bool EvtPlaneProducer::loadDB_ |
|
private |
◆ lostToken_
◆ losttrackTag_
◆ maxet_
double EvtPlaneProducer::maxet_ |
|
private |
◆ maxpt_
double EvtPlaneProducer::maxpt_ |
|
private |
◆ minet_
double EvtPlaneProducer::minet_ |
|
private |
◆ minpt_
double EvtPlaneProducer::minpt_ |
|
private |
◆ nCentBins_
double EvtPlaneProducer::nCentBins_ |
|
private |
◆ nhitsValid_
int EvtPlaneProducer::nhitsValid_ |
|
private |
◆ NumFlatBins_
int EvtPlaneProducer::NumFlatBins_ |
|
private |
◆ packedToken_
◆ pterror_
double EvtPlaneProducer::pterror_ |
|
private |
◆ rp
GenPlane* EvtPlaneProducer::rp[NumEPNames] |
|
private |
◆ track_
◆ trackCollection_
◆ trackTag_
◆ trackToken_
◆ vertex_
◆ vertexTag_
◆ vertexToken_
GenPlane * rp[NumEPNames]
bool check(const edm::EventSetup &iSetup)
edm::EDGetTokenT< std::vector< reco::CastorTower > > castorToken_
const std::array< double, NumEPNames > EPEtaMax1
double ptError() const
error on Pt (set to 1000 TeV if charge==0 for safety)
edm::InputTag centralityBinTag_
void setCaloCentRefBins(const int caloCentRefMinBin, const int caloCentRefMaxBin)
bool isGoodHF(const TrackStructure &track) const
double getW(double pt, double vtx, int centbin) const
edm::EDGetTokenT< pat::PackedCandidateCollection > lostToken_
edm::InputTag losttrackTag_
void addParticle(double w, double PtOrEt, double s, double c, double eta)
const std::array< std::string, NumEPNames > EPNames
bool isGoodTrack(const TrackStructure &track) const
const std::array< double, NumEPNames > EPEtaMin1
const std::array< int, NumEPNames > EPOrder
unsigned short numberOfValidHits() const
number of valid hits found
double dxyError() const
error on dxy
edm::ESWatcher< HeavyIonRcd > hiWatcher_
bool passEta(float eta, int i)
const std::array< double, NumEPNames > EPEtaMax2
Sin< T >::type sin(const T &t)
HiEvtPlaneFlatten * flat[NumEPNames]
double pt() const
track transverse momentum
std::string centralityLabel_
Cos< T >::type cos(const T &t)
std::string centralityVariable_
int trackerLayersWithMeasurement() const
std::string centralityMC_
std::vector< CBin > m_table
edm::EDGetTokenT< edm::ValueMap< float > > chi2MapToken_
int charge() const
track electric charge
double dz() const
dz parameter (= dsz/cos(lambda)). This is the track z0 w.r.t (0,0,0) only if the refPoint is close to...
double phi() const
azimuthal angle of momentum vector
double etScale(double vtx, int centbin) const
edm::EDGetTokenT< CaloTowerCollection > caloToken_
bool exists(std::string const ¶meterName) const
checks if a parameter exists
edm::Handle< std::vector< reco::CastorTower > > castorCollection_
XYZPointD XYZPoint
point in space with cartesian internal representation
void fillHF(const TrackStructure &track, double vz, int bin)
void fillTracker(const TrackStructure &track, double vz, int bin)
edm::EDGetTokenT< reco::TrackCollection > trackToken_
edm::EDGetTokenT< reco::PFCandidateCollection > caloTokenPF_
double eta() const
pseudorapidity of momentum vector
double dzError() const
error on dz
edm::EDGetTokenT< int > centralityBinToken_
edm::ESWatcher< HeavyIonRPRcd > hirpWatcher_
double normalizedChi2() const
chi-squared divided by n.d.o.f. (or chi-squared * 1e6 if n.d.o.f. is zero)
const std::array< std::string, NumEPNames > MomConsWeight
bool bScalo_particleFlow_
edm::Handle< CaloTowerCollection > caloCollection_
const std::array< int, NumEPNames > EPDet
TrackAlgorithm algo() const
const HitPattern & hitPattern() const
Access the hit pattern, indicating in which Tracker layers the track has hits.
edm::InputTag chi2MapLostTag_
bool isGoodCastor(const TrackStructure &track) const
double getAngle(double &ang, double &sv, double &cv, double &svNoWgt, double &cvNoWgt, double &w, double &w2, double &PtOrEt, double &PtOrEt2, uint &epmult)
const std::array< double, NumEPNames > EPEtaMin2
const std::array< double, NumEPNames > minTransverse
const std::array< double, NumEPNames > maxTransverse
T getParameter(std::string const &) const
edm::EDGetTokenT< edm::ValueMap< float > > chi2MapLostToken_
edm::InputTag chi2MapTag_
Particle reconstructed by the particle flow algorithm.
void reset(double vett[256])
static const int NumEPNames
edm::Handle< reco::TrackCollection > trackCollection_
void init(int order, int nbins, int nvtxbins=10, double minvtx=-25, double delvtx=5, std::string tag="", int vord=2)
Abs< T >::type abs(const T &t)
void fillCastor(const TrackStructure &track, double vz, int bin)
edm::EDGetTokenT< std::vector< reco::Vertex > > vertexToken_
double dxy() const
dxy parameter. (This is the transverse impact parameter w.r.t. to (0,0,0) ONLY if refPoint is close t...
bool quality(const TrackQuality) const
Track quality.
edm::EDGetTokenT< pat::PackedCandidateCollection > packedToken_
bool bStrack_packedPFCandidates_
edm::Ref< pat::PackedCandidateCollection > PackedCandidateRef