Go to the documentation of this file. 1 #ifndef PFProducer_PFCandConnector_H_
2 #define PFProducer_PFCandConnector_H_
32 double dptRel_PrimaryTrack, dptRel_MergedTrack, ptErrorSecondary;
41 dptRel_PrimaryTrack =
iCfgCandConnector.getParameter<
double>(
"dptRel_PrimaryTrack");
43 edm::LogWarning(
"PFCandConnector") <<
"dptRel_PrimaryTrack doesn't exist. Setting a default safe value 0"
45 dptRel_PrimaryTrack = 0;
49 dptRel_MergedTrack =
iCfgCandConnector.getParameter<
double>(
"dptRel_MergedTrack");
51 edm::LogWarning(
"PFCandConnector") <<
"dptRel_MergedTrack doesn't exist. Setting a default safe value 0"
53 dptRel_MergedTrack = 0;
59 edm::LogWarning(
"PFCandConnector") <<
"ptErrorSecondary doesn't exist. Setting a default safe value 0"
67 edm::LogWarning(
"PFCandConnector") <<
"nuclear calib factors doesn't exist the factor would not be applyed"
76 double dptRel_PrimaryTrack,
77 double dptRel_MergedTrack,
78 double ptErrorSecondary,
void analyseNuclearWSec(reco::PFCandidateCollection &, std::vector< bool > &, unsigned int) const
Analyse nuclear interactions where a secondary track is present.
bool bCorrect_
Parameters.
Log< level::Warning, false > LogWarning
double dptRel_PrimaryTrack_
bool isPrimaryNucl(const reco::PFCandidate &pf) const
void analyseNuclearWPrim(reco::PFCandidateCollection &, std::vector< bool > &, unsigned int) const
Analyse nuclear interactions where a primary or merged track is present.
std::vector< double > fConst_
std::vector< double > fExp_
double dptRel_MergedTrack_
void setParameters(const edm::ParameterSet &iCfgCandConnector)
Based on a class from : V. Roberfroid, February 2008.
bool bCalibPrimary_
Calibration parameters for the reconstructed nuclear interactions.
std::vector< reco::PFCandidate > PFCandidateCollection
collection of PFCandidates
bool isSecondaryNucl(const reco::PFCandidate &pf) const
static const reco::PFCandidate::Flags fT_TO_DISP_
std::vector< double > fNorm_
static const reco::PFCandidate::Flags fT_FROM_DISP_
Particle reconstructed by the particle flow algorithm.
reco::PFCandidateCollection connect(reco::PFCandidateCollection &pfCand) const
double rescaleFactor(const double pt, const double cFrac) const
Return a calibration factor for a reconstructed nuclear interaction.
static void fillPSetDescription(edm::ParameterSetDescription &iDesc)
static const double pion_mass2
Useful constants.