Based on a class from : V. Roberfroid, February 2008. More...
#include <PFCandConnector.h>
Public Member Functions | |
reco::PFCandidateCollection | connect (reco::PFCandidateCollection &pfCand) const |
PFCandConnector (bool debug=false) | |
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) |
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_ |
const bool | debug_ |
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 16 of file PFCandConnector.h.
|
inline |
Definition at line 20 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 156 of file PFCandConnector.cc.
References gather_cfg::cout, reco::PFCandidate::displacedVertexRef(), MillePedeFileConverter_cfg::e, reco::PFCandidate::ecalEnergy(), plotBeamSpotDB::first, reco::PFCandidate::hcalEnergy(), edm::Ref< C, T, F >::isNonnull(), reco::HitPattern::MISSING_OUTER_HITS, p4, reco::LeafCandidate::p4(), edm::second(), and mathSSE::sqrt().
Referenced by setParameters().
|
private |
Analyse nuclear interactions where a secondary track is present.
Definition at line 334 of file PFCandConnector.cc.
References gather_cfg::cout, MillePedeFileConverter_cfg::e, reco::PFCandidate::e, plotBeamSpotDB::first, reco::HitPattern::MISSING_OUTER_HITS, reco::PFCandidate::mu, p4, reco::LeafCandidate::p4(), reco::TrackBase::pt(), 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 54 of file PFCandConnector.cc.
References gather_cfg::cout, 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(), PFAlgo::transferCandidates(), o2o_db_cfgmap.DbManagerDAQ::update_hashmap(), Vispa.Plugins.EdmBrowser.EdmBrowserTabController.EdmBrowserTabController::updateViewMenu(), and Vispa.Plugins.ConfigEditor.ConfigEditorTabController.ConfigEditorTabController::updateViewMenu().
|
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 481 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 516 of file PFCandConnector.cc.
References JetChargeProducer_cfi::exp.
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 35 of file PFCandConnector.h.
References analyseNuclearWPrim(), analyseNuclearWSec(), particleFlow_cfi::bCalibPrimary, particleFlow_cfi::bCorrect, connect(), particleFlow_cfi::dptRel_MergedTrack, particleFlow_cfi::dptRel_PrimaryTrack, edm::ParameterSet::exists(), edm::ParameterSet::getParameter(), isPrimaryNucl(), isSecondaryNucl(), particleFlow_cfi::nuclCalibFactors, packedPFCandidateRefMixer_cfi::pf, EnergyCorrector::pt, particleFlow_cfi::ptErrorSecondary, and rescaleFactor().
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 16 of file PFCandConnector.cc.
References particleFlow_cfi::bCalibPrimary, particleFlow_cfi::bCorrect, particleFlow_cfi::dptRel_MergedTrack, particleFlow_cfi::dptRel_PrimaryTrack, particleFlow_cfi::ptErrorSecondary, and AlCaHLTBitMon_QueryRunRegistry::string.
|
private |
Calibration parameters for the reconstructed nuclear interactions.
Definition at line 91 of file PFCandConnector.h.
Referenced by PFCandConnector().
|
private |
Definition at line 88 of file PFCandConnector.h.
Referenced by PFCandConnector().
|
private |
Parameters.
Definition at line 87 of file PFCandConnector.h.
|
private |
Definition at line 98 of file PFCandConnector.h.
Referenced by PFCandConnector().
|
private |
Definition at line 97 of file PFCandConnector.h.
Referenced by PFCandConnector().
|
private |
Definition at line 92 of file PFCandConnector.h.
Referenced by PFCandConnector().
|
private |
Definition at line 94 of file PFCandConnector.h.
Referenced by PFCandConnector().
|
private |
Definition at line 93 of file PFCandConnector.h.
Referenced by PFCandConnector().
|
staticprivate |
Definition at line 104 of file PFCandConnector.h.
|
staticprivate |
Definition at line 103 of file PFCandConnector.h.
|
staticprivate |
Useful constants.
Definition at line 102 of file PFCandConnector.h.
|
private |
Definition at line 99 of file PFCandConnector.h.
Referenced by PFCandConnector().