Based on a class from : V. Roberfroid, February 2008. More...
#include <PFCandConnector.h>
Public Member Functions | |
std::auto_ptr < reco::PFCandidateCollection > | connect (std::auto_ptr< reco::PFCandidateCollection > &pfCand) |
PFCandConnector () | |
void | setDebug (bool debug) |
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 (std::auto_ptr< reco::PFCandidateCollection > &, unsigned int) |
Analyse nuclear interactions where a primary or merged track is present. More... | |
void | analyseNuclearWSec (std::auto_ptr< reco::PFCandidateCollection > &, unsigned int) |
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_ |
std::vector< bool > | bMask_ |
A mask to define the candidates which shall not be transmitted. More... | |
bool | debug_ |
Parameters. More... | |
double | dptRel_MergedTrack_ |
double | dptRel_PrimaryTrack_ |
std::vector< double > | fConst_ |
std::vector< double > | fExp_ |
std::vector< double > | fNorm_ |
std::auto_ptr < reco::PFCandidateCollection > | pfC_ |
Collection of primary PFCandidates to be transmitted to the Event. More... | |
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_, debug_, dptRel_MergedTrack_, dptRel_PrimaryTrack_, fConst_, fExp_, fNorm_, pfC_, and ptErrorSecondary_.
|
private |
Analyse nuclear interactions where a primary or merged track is present.
Definition at line 157 of file PFCandConnector.cc.
References gather_cfg::cout, reco::PFCandidate::displacedVertexRef(), alignCSCRings::e, reco::PFCandidate::ecalEnergy(), plotBeamSpotDB::first, reco::PFCandidate::hcalEnergy(), edm::Ref< C, T, F >::isNonnull(), getDQMSummary::iter, reco::HitPattern::MISSING_OUTER_HITS, p4, reco::LeafCandidate::p4(), edm::second(), and mathSSE::sqrt().
|
private |
Analyse nuclear interactions where a secondary track is present.
Definition at line 335 of file PFCandConnector.cc.
References asciidump::at, gather_cfg::cout, reco::PFCandidate::e, alignCSCRings::e, plotBeamSpotDB::first, reco::HitPattern::MISSING_OUTER_HITS, reco::PFCandidate::mu, p4, reco::LeafCandidate::p4(), reco::TrackBase::pt(), tkAlTrackRefitSequence_cff::refittedTracks, edm::second(), and mathSSE::sqrt().
std::auto_ptr< reco::PFCandidateCollection > PFCandConnector::connect | ( | std::auto_ptr< reco::PFCandidateCollection > & | pfCand | ) |
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(), 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(), Vispa.Plugins.EdmBrowser.EdmBrowserTabController.EdmBrowserTabController::updateViewMenu(), and Vispa.Plugins.ConfigEditor.ConfigEditorTabController.ConfigEditorTabController::updateViewMenu().
|
private |
Definition at line 498 of file PFCandConnector.cc.
References reco::PFCandidate::displacedVertexRef(), reco::PFCandidate::flag(), and edm::Ref< C, T, F >::isNonnull().
|
private |
Definition at line 482 of file PFCandConnector.cc.
References reco::PFCandidate::displacedVertexRef(), reco::PFCandidate::flag(), and edm::Ref< C, T, F >::isNonnull().
|
private |
Return a calibration factor for a reconstructed nuclear interaction.
Definition at line 517 of file PFCandConnector.cc.
References create_public_lumi_plots::exp.
|
inline |
|
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 edm::ParameterSet::exists(), and edm::ParameterSet::getParameter().
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 AlCaHLTBitMon_QueryRunRegistry::string.
|
private |
Calibration parameters for the reconstructed nuclear interactions.
Definition at line 97 of file PFCandConnector.h.
Referenced by PFCandConnector().
|
private |
Definition at line 94 of file PFCandConnector.h.
Referenced by PFCandConnector().
|
private |
A mask to define the candidates which shall not be transmitted.
Definition at line 90 of file PFCandConnector.h.
|
private |
Definition at line 93 of file PFCandConnector.h.
Referenced by PFCandConnector(), and setDebug().
|
private |
Definition at line 104 of file PFCandConnector.h.
Referenced by PFCandConnector().
|
private |
Definition at line 103 of file PFCandConnector.h.
Referenced by PFCandConnector().
|
private |
Definition at line 98 of file PFCandConnector.h.
Referenced by PFCandConnector().
|
private |
Definition at line 100 of file PFCandConnector.h.
Referenced by PFCandConnector().
|
private |
Definition at line 99 of file PFCandConnector.h.
Referenced by PFCandConnector().
|
staticprivate |
Definition at line 110 of file PFCandConnector.h.
|
staticprivate |
Definition at line 109 of file PFCandConnector.h.
|
private |
Collection of primary PFCandidates to be transmitted to the Event.
Definition at line 88 of file PFCandConnector.h.
Referenced by PFCandConnector().
|
staticprivate |
Useful constants.
Definition at line 108 of file PFCandConnector.h.
|
private |
Definition at line 105 of file PFCandConnector.h.
Referenced by PFCandConnector().