Producer for PFRecTracks and PFSimParticles. More...
#include <PFSimParticleProducer.h>
Public Types | |
typedef edm::Handle < reco::PFRecTrackCollection > | TrackHandle |
Public Types inherited from edm::EDProducer | |
typedef EDProducer | ModuleType |
Public Types inherited from edm::ProducerBase | |
typedef ProductRegistryHelper::TypeLabelList | TypeLabelList |
Public Member Functions | |
virtual void | beginRun (const edm::Run &r, const edm::EventSetup &c) override |
void | getSimIDs (const TrackHandle &trackh, std::vector< unsigned > &recTrackSimID) |
PFSimParticleProducer (const edm::ParameterSet &) | |
virtual void | produce (edm::Event &, const edm::EventSetup &) override |
~PFSimParticleProducer () | |
Public Member Functions inherited from edm::EDProducer | |
EDProducer () | |
ModuleDescription const & | moduleDescription () const |
virtual | ~EDProducer () |
Public Member Functions inherited from edm::ProducerBase | |
ProducerBase () | |
void | registerProducts (ProducerBase *, ProductRegistry *, ModuleDescription const &) |
std::function< void(BranchDescription const &)> | registrationCallback () const |
used by the fwk to register list of products More... | |
virtual | ~ProducerBase () |
Public Member Functions inherited from edm::EDConsumerBase | |
std::vector< ConsumesInfo > | consumesInfo () const |
EDConsumerBase () | |
ProductHolderIndexAndSkipBit | indexFrom (EDGetToken, BranchType, TypeID const &) const |
void | itemsMayGet (BranchType, std::vector< ProductHolderIndexAndSkipBit > &) const |
void | itemsToGet (BranchType, std::vector< ProductHolderIndexAndSkipBit > &) const |
std::vector < ProductHolderIndexAndSkipBit > const & | itemsToGetFromEvent () const |
void | labelsForToken (EDGetToken iToken, Labels &oLabels) const |
void | modulesDependentUpon (const std::string &iProcessName, std::vector< const char * > &oModuleLabels) const |
void | modulesWhoseProductsAreConsumed (std::vector< ModuleDescription const * > &modules, ProductRegistry const &preg, std::map< std::string, ModuleDescription const * > const &labelsToDesc, std::string const &processName) const |
bool | registeredToConsume (ProductHolderIndex, bool, BranchType) const |
bool | registeredToConsumeMany (TypeID const &, BranchType) const |
void | updateLookup (BranchType iBranchType, ProductHolderIndexHelper const &) |
virtual | ~EDConsumerBase () |
Private Attributes | |
edm::InputTag | inputTagEcalRecHitsEB_ |
edm::InputTag | inputTagEcalRecHitsEE_ |
edm::InputTag | inputTagFamosSimHits_ |
edm::InputTag | inputTagRecTracks_ |
edm::InputTag | inputTagSim_ |
module label for retrieving input simtrack and simvertex More... | |
bool | mctruthMatchingInfo_ |
FSimEvent * | mySimEvent |
edm::ParameterSet | particleFilter_ |
bool | processParticles_ |
process particles on/off More... | |
bool | verbose_ |
verbose ? More... | |
Additional Inherited Members | |
Static Public Member Functions inherited from edm::EDProducer | |
static const std::string & | baseType () |
static void | fillDescriptions (ConfigurationDescriptions &descriptions) |
static void | prevalidate (ConfigurationDescriptions &descriptions) |
Protected Member Functions inherited from edm::ProducerBase | |
void | callWhenNewProductsRegistered (std::function< void(BranchDescription const &)> const &func) |
Protected Member Functions inherited from edm::EDConsumerBase | |
template<typename ProductType , BranchType B = InEvent> | |
EDGetTokenT< ProductType > | consumes (edm::InputTag const &tag) |
EDGetToken | consumes (const TypeToGet &id, edm::InputTag const &tag) |
template<BranchType B> | |
EDGetToken | consumes (TypeToGet const &id, edm::InputTag const &tag) |
ConsumesCollector | consumesCollector () |
Use a ConsumesCollector to gather consumes information from helper functions. More... | |
template<typename ProductType , BranchType B = InEvent> | |
void | consumesMany () |
void | consumesMany (const TypeToGet &id) |
template<BranchType B> | |
void | consumesMany (const TypeToGet &id) |
template<typename ProductType , BranchType B = InEvent> | |
EDGetTokenT< ProductType > | mayConsume (edm::InputTag const &tag) |
EDGetToken | mayConsume (const TypeToGet &id, edm::InputTag const &tag) |
template<BranchType B> | |
EDGetToken | mayConsume (const TypeToGet &id, edm::InputTag const &tag) |
Producer for PFRecTracks and PFSimParticles.
Definition at line 38 of file PFSimParticleProducer.h.
Definition at line 49 of file PFSimParticleProducer.h.
|
explicit |
Definition at line 67 of file PFSimParticleProducer.cc.
References edm::ParameterSet::getParameter(), and edm::ParameterSet::getUntrackedParameter().
PFSimParticleProducer::~PFSimParticleProducer | ( | ) |
Definition at line 109 of file PFSimParticleProducer.cc.
|
overridevirtual |
Reimplemented from edm::EDProducer.
Definition at line 116 of file PFSimParticleProducer.cc.
References edm::EventSetup::getData().
void PFSimParticleProducer::getSimIDs | ( | const TrackHandle & | trackh, |
std::vector< unsigned > & | recTrackSimID | ||
) |
Definition at line 533 of file PFSimParticleProducer.cc.
References i, edm::HandleBase::isValid(), SiTrackerGSMatchedRecHit2D::simtrackId(), and reco::PFRecTrack::trackRef().
|
overridevirtual |
Implements edm::EDProducer.
Definition at line 127 of file PFSimParticleProducer.cc.
References assert(), reco::PFTrajectoryPoint::BeamPipeOrEndVertex, FSimTrack::charge(), reco::PFTrajectoryPoint::ClosestApproach, FSimTrack::daughters(), cond::rpcobgas::detid, reco::PFTrajectoryPoint::ECALEntrance, FSimTrack::ecalEntrance(), FSimTrack::endVertex(), edm::EventID::event(), edm::hlt::Exception, newFWLiteAna::found, edm::Event::getByLabel(), ecalpyutils::hashedIndex(), reco::PFTrajectoryPoint::HCALEntrance, FSimTrack::hcalEntrance(), reco::PFTrajectoryPoint::HCALExit, FSimTrack::hcalExit(), FSimTrack::hoEntrance(), reco::PFTrajectoryPoint::HOLayer, i, edm::EventBase::id(), FSimTrack::id(), edm::HandleBase::isValid(), FSimTrack::layer1Entrance(), FSimTrack::layer2Entrance(), LogDebug, FSimTrack::momentum(), FSimTrack::mother(), FSimTrack::noEndVertex(), FSimTrack::noMother(), FSimTrack::onEcal(), FSimTrack::onHcal(), FSimTrack::onLayer1(), FSimTrack::onLayer2(), FSimVertex::position(), edm::Handle< T >::product(), reco::PFTrajectoryPoint::PS1, reco::PFTrajectoryPoint::PS2, edm::Event::put(), edm::EventID::run(), CoreSimTrack::type(), FSimTrack::vertex(), RawParticle::x(), RawParticle::y(), and RawParticle::z().
|
private |
Definition at line 66 of file PFSimParticleProducer.h.
|
private |
Definition at line 67 of file PFSimParticleProducer.h.
|
private |
Definition at line 62 of file PFSimParticleProducer.h.
|
private |
Definition at line 65 of file PFSimParticleProducer.h.
|
private |
module label for retrieving input simtrack and simvertex
Definition at line 57 of file PFSimParticleProducer.h.
|
private |
Definition at line 61 of file PFSimParticleProducer.h.
|
private |
Definition at line 72 of file PFSimParticleProducer.h.
|
private |
Definition at line 71 of file PFSimParticleProducer.h.
|
private |
process particles on/off
Definition at line 77 of file PFSimParticleProducer.h.
|
private |
verbose ?
Definition at line 80 of file PFSimParticleProducer.h.