Based on a class from : V. Roberfroid, February 2008. More...
#include <PFCandConnector.h>
Public Member Functions | |
reco::PFCandidateCollection | connect (reco::PFCandidateCollection &pfCand) const |
PFCandConnector () | |
void | setParameters (const edm::ParameterSet &iCfgCandConnector) |
void | setParameters (bool bCorrect, bool bCalibPrimary, double dptRel_PrimaryTrack, double dptRel_MergedTrack, double ptErrorSecondary, const std::vector< double > &nuclCalibFactors) |
Static Public Member Functions | |
static void | fillPSetDescription (edm::ParameterSetDescription &iDesc) |
Private Member Functions | |
void | analyseNuclearWPrim (reco::PFCandidateCollection &, std::vector< bool > &, unsigned int) const |
Analyse nuclear interactions where a primary or merged track is present. More... | |
void | analyseNuclearWSec (reco::PFCandidateCollection &, std::vector< bool > &, unsigned int) const |
Analyse nuclear interactions where a secondary track is present. More... | |
bool | isPrimaryNucl (const reco::PFCandidate &pf) const |
bool | isSecondaryNucl (const reco::PFCandidate &pf) const |
double | rescaleFactor (const double pt, const double cFrac) const |
Return a calibration factor for a reconstructed nuclear interaction. More... | |
Private Attributes | |
bool | bCalibPrimary_ |
Calibration parameters for the reconstructed nuclear interactions. More... | |
bool | bCorrect_ |
Parameters. More... | |
double | dptRel_MergedTrack_ |
double | dptRel_PrimaryTrack_ |
std::vector< double > | fConst_ |
std::vector< double > | fExp_ |
std::vector< double > | fNorm_ |
double | ptErrorSecondary_ |
Static Private Attributes | |
static const reco::PFCandidate::Flags | fT_FROM_DISP_ = PFCandidate::T_FROM_DISP |
static const reco::PFCandidate::Flags | fT_TO_DISP_ = PFCandidate::T_TO_DISP |
static const double | pion_mass2 = 0.0194 |
Useful constants. More... | |
Based on a class from : V. Roberfroid, February 2008.
Definition at line 15 of file PFCandConnector.h.
|
inline |
Definition at line 17 of file PFCandConnector.h.
References bCalibPrimary_, bCorrect_, dptRel_MergedTrack_, dptRel_PrimaryTrack_, fConst_, fExp_, fNorm_, and ptErrorSecondary_.
|
private |
Analyse nuclear interactions where a primary or merged track is present.
Definition at line 148 of file PFCandConnector.cc.
References reco::PFCandidate::displacedVertexRef(), MillePedeFileConverter_cfg::e, reco::PFCandidate::ecalEnergy(), dqmdumpme::first, reco::PFCandidate::hcalEnergy(), edm::Ref< C, T, F >::isNonnull(), LogTrace, reco::HitPattern::MISSING_OUTER_HITS, reco::LeafCandidate::p4(), multPhiCorr_741_25nsDY_cfi::px, multPhiCorr_741_25nsDY_cfi::py, edm::second(), and mathSSE::sqrt().
|
private |
Analyse nuclear interactions where a secondary track is present.
Definition at line 328 of file PFCandConnector.cc.
References MillePedeFileConverter_cfg::e, reco::PFCandidate::e, dqmdumpme::first, ALPAKA_ACCELERATOR_NAMESPACE::vertexFinder::it, LogTrace, reco::HitPattern::MISSING_OUTER_HITS, reco::PFCandidate::mu, reco::LeafCandidate::p4(), reco::TrackBase::pt(), multPhiCorr_741_25nsDY_cfi::px, multPhiCorr_741_25nsDY_cfi::py, tkAlTrackRefitSequence_cff::refittedTracks, edm::second(), and mathSSE::sqrt().
reco::PFCandidateCollection PFCandConnector::connect | ( | reco::PFCandidateCollection & | pfCand | ) | const |
Collection of primary PFCandidates to be transmitted to the Event
A mask to define the candidates which shall not be transmitted
Definition at line 63 of file PFCandConnector.cc.
References LogTrace, and reco::HitPattern::MISSING_OUTER_HITS.
Referenced by PFAlgo::makeConnectedCandidates(), and o2o_db_cfgmap.DbManagerDAQ::update_hashmap().
|
static |
Definition at line 563 of file PFCandConnector.cc.
References edm::ParameterSetDescription::add().
Referenced by PFProducer::fillDescriptions().
|
private |
Definition at line 505 of file PFCandConnector.cc.
References edm::Ref< C, T, F >::isNonnull(), and packedPFCandidateRefMixer_cfi::pf.
|
private |
Definition at line 490 of file PFCandConnector.cc.
References edm::Ref< C, T, F >::isNonnull(), and packedPFCandidateRefMixer_cfi::pf.
|
private |
Return a calibration factor for a reconstructed nuclear interaction.
Definition at line 522 of file PFCandConnector.cc.
References JetChargeProducer_cfi::exp, and DiDispStaMuonMonitor_cfi::pt.
|
inline |
Flag to apply the correction procedure for nuclear interactions
Flag to calibrate the reconstructed nuclear interactions with primary or merged tracks
Definition at line 30 of file PFCandConnector.h.
References HLT_2024v14_cff::bCalibPrimary, HLT_2024v14_cff::bCorrect, hltParticleFlowTmpBarrel_cfi::dptRel_MergedTrack, hltParticleFlowTmpBarrel_cfi::dptRel_PrimaryTrack, HLT_2024v14_cff::iCfgCandConnector, HLT_2024v14_cff::nuclCalibFactors, and hltParticleFlowTmpBarrel_cfi::ptErrorSecondary.
Referenced by PFAlgo::setCandConnectorParameters().
void PFCandConnector::setParameters | ( | bool | bCorrect, |
bool | bCalibPrimary, | ||
double | dptRel_PrimaryTrack, | ||
double | dptRel_MergedTrack, | ||
double | ptErrorSecondary, | ||
const std::vector< double > & | nuclCalibFactors | ||
) |
Definition at line 15 of file PFCandConnector.cc.
References HLT_2024v14_cff::bCalibPrimary, HLT_2024v14_cff::bCorrect, hltParticleFlowTmpBarrel_cfi::dptRel_MergedTrack, hltParticleFlowTmpBarrel_cfi::dptRel_PrimaryTrack, HLT_2024v14_cff::nuclCalibFactors, hltParticleFlowTmpBarrel_cfi::ptErrorSecondary, and AlCaHLTBitMon_QueryRunRegistry::string.
|
private |
Calibration parameters for the reconstructed nuclear interactions.
Definition at line 72 of file PFCandConnector.h.
Referenced by PFCandConnector().
|
private |
|
private |
Definition at line 79 of file PFCandConnector.h.
Referenced by PFCandConnector().
|
private |
Definition at line 78 of file PFCandConnector.h.
Referenced by PFCandConnector().
|
private |
Definition at line 73 of file PFCandConnector.h.
Referenced by PFCandConnector().
|
private |
Definition at line 75 of file PFCandConnector.h.
Referenced by PFCandConnector().
|
private |
Definition at line 74 of file PFCandConnector.h.
Referenced by PFCandConnector().
|
staticprivate |
Definition at line 85 of file PFCandConnector.h.
|
staticprivate |
Definition at line 84 of file PFCandConnector.h.
|
staticprivate |
Useful constants.
Definition at line 83 of file PFCandConnector.h.
|
private |
Definition at line 80 of file PFCandConnector.h.
Referenced by PFCandConnector().