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 149 of file PFCandConnector.cc.
References reco::PFCandidate::displacedVertexRef(), MillePedeFileConverter_cfg::e, reco::PFCandidate::ecalEnergy(), DQMScaleToClient_cfi::factor, dqmdumpme::first, reco::PFCandidate::hcalEnergy(), edm::Ref< C, T, F >::isNonnull(), LogTrace, reco::HitPattern::MISSING_OUTER_HITS, p4, reco::LeafCandidate::p4(), multPhiCorr_741_25nsDY_cfi::px, multPhiCorr_741_25nsDY_cfi::py, edm::second(), and mathSSE::sqrt().
Referenced by setParameters().
|
private |
Analyse nuclear interactions where a secondary track is present.
Definition at line 324 of file PFCandConnector.cc.
References MillePedeFileConverter_cfg::e, reco::PFCandidate::e, DQMScaleToClient_cfi::factor, dqmdumpme::first, LogTrace, reco::HitPattern::MISSING_OUTER_HITS, reco::PFCandidate::mu, p4, reco::LeafCandidate::p4(), randomXiThetaGunProducer_cfi::particleId, reco::TrackBase::pt(), multPhiCorr_741_25nsDY_cfi::px, multPhiCorr_741_25nsDY_cfi::py, tkAlTrackRefitSequence_cff::refittedTracks, edm::second(), and mathSSE::sqrt().
Referenced by setParameters().
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 64 of file PFCandConnector.cc.
References LogTrace, and reco::HitPattern::MISSING_OUTER_HITS.
Referenced by Vispa.Gui.ZoomableScrollArea.ZoomableScrollArea::__init__(), Vispa.Views.PropertyView.BooleanProperty::__init__(), Vispa.Gui.FindDialog.FindDialog::_addScript(), Vispa.Gui.FindDialog.FindDialog::_addStringProperty(), Vispa.Main.Application.Application::_connectSignals(), Vispa.Plugins.ConfigEditor.CodeTableView.CodeTableView::_createItem(), Vispa.Gui.BoxContentDialog.BoxContentDialog::addButton(), Vispa.Gui.ToolBoxContainer.ToolBoxContainer::addWidget(), Vispa.Views.PropertyView.PropertyView::append(), Vispa.Views.PropertyView.PropertyView::appendAddRow(), Vispa.Main.Application.Application::createAction(), Vispa.Views.PropertyView.TextEditWithButtonProperty::createButton(), Vispa.Views.LineDecayView.LineDecayView::createLineDecayContainer(), Vispa.Views.PropertyView.TextEditWithButtonProperty::createLineEdit(), Vispa.Views.LineDecayView.LineDecayContainer::createObject(), Vispa.Views.PropertyView.TextEditWithButtonProperty::createTextEdit(), Vispa.Plugins.Browser.BrowserTabController.BrowserTabController::filterDialog(), Vispa.Plugins.Browser.BrowserTabController.BrowserTabController::find(), Vispa.Gui.PortWidget.PortWidget::mouseMoveEvent(), Vispa.Views.PropertyView.BooleanProperty::setChecked(), Vispa.Main.SplitterTab.SplitterTab::setController(), Vispa.Plugins.Browser.BrowserTab.BrowserTab::setController(), setParameters(), Vispa.Views.PropertyView.BooleanProperty::setReadOnly(), Vispa.Views.PropertyView.DropDownProperty::setReadOnly(), Vispa.Views.PropertyView.TextEditWithButtonProperty::setReadOnly(), Vispa.Plugins.Browser.BrowserTabController.BrowserTabController::setTab(), Vispa.Views.PropertyView.IntegerProperty::setValue(), Vispa.Plugins.Browser.BrowserTabController.BrowserTabController::switchCenterView(), o2o_db_cfgmap.DbManagerDAQ::update_hashmap(), Vispa.Plugins.EdmBrowser.EdmBrowserTabController.EdmBrowserTabController::updateViewMenu(), and Vispa.Plugins.ConfigEditor.ConfigEditorTabController.ConfigEditorTabController::updateViewMenu().
|
static |
Definition at line 555 of file PFCandConnector.cc.
References edm::ParameterSetDescription::add().
Referenced by PFProducer::fillDescriptions(), and setParameters().
|
private |
Definition at line 497 of file PFCandConnector.cc.
References reco::PFCandidate::displacedVertexRef(), reco::PFCandidate::flag(), and edm::Ref< C, T, F >::isNonnull().
Referenced by setParameters().
|
private |
Definition at line 482 of file PFCandConnector.cc.
References reco::PFCandidate::displacedVertexRef(), reco::PFCandidate::flag(), and edm::Ref< C, T, F >::isNonnull().
Referenced by setParameters().
|
private |
Return a calibration factor for a reconstructed nuclear interaction.
Definition at line 514 of file PFCandConnector.cc.
References JetChargeProducer_cfi::exp, and DQMScaleToClient_cfi::factor.
Referenced by setParameters().
|
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 analyseNuclearWPrim(), analyseNuclearWSec(), HLT_2018_cff::bCalibPrimary, HLT_2018_cff::bCorrect, connect(), edm::ParameterSet::exists(), fillPSetDescription(), edm::ParameterSet::getParameter(), isPrimaryNucl(), isSecondaryNucl(), HLT_2018_cff::nuclCalibFactors, packedPFCandidateRefMixer_cfi::pf, DiDispStaMuonMonitor_cfi::pt, and rescaleFactor().
void PFCandConnector::setParameters | ( | bool | bCorrect, |
bool | bCalibPrimary, | ||
double | dptRel_PrimaryTrack, | ||
double | dptRel_MergedTrack, | ||
double | ptErrorSecondary, | ||
const std::vector< double > & | nuclCalibFactors | ||
) |
Definition at line 16 of file PFCandConnector.cc.
References HLT_2018_cff::bCalibPrimary, HLT_2018_cff::bCorrect, and AlCaHLTBitMon_QueryRunRegistry::string.
|
private |
Calibration parameters for the reconstructed nuclear interactions.
Definition at line 103 of file PFCandConnector.h.
Referenced by PFCandConnector().
|
private |
|
private |
Definition at line 110 of file PFCandConnector.h.
Referenced by PFCandConnector().
|
private |
Definition at line 109 of file PFCandConnector.h.
Referenced by PFCandConnector().
|
private |
Definition at line 104 of file PFCandConnector.h.
Referenced by PFCandConnector().
|
private |
Definition at line 106 of file PFCandConnector.h.
Referenced by PFCandConnector().
|
private |
Definition at line 105 of file PFCandConnector.h.
Referenced by PFCandConnector().
|
staticprivate |
Definition at line 116 of file PFCandConnector.h.
|
staticprivate |
Definition at line 115 of file PFCandConnector.h.
|
staticprivate |
Useful constants.
Definition at line 114 of file PFCandConnector.h.
|
private |
Definition at line 111 of file PFCandConnector.h.
Referenced by PFCandConnector().