#include <CandIsoDepositProducer.h>
Public Member Functions | |
CandIsoDepositProducer (const edm::ParameterSet &) | |
constructor with config More... | |
virtual void | produce (edm::Event &, const edm::EventSetup &) |
build deposits More... | |
virtual | ~CandIsoDepositProducer () |
destructor More... | |
Public Member Functions inherited from edm::EDProducer | |
EDProducer () | |
virtual | ~EDProducer () |
Public Member Functions inherited from edm::ProducerBase | |
ProducerBase () | |
void | registerProducts (ProducerBase *, ProductRegistry *, ModuleDescription const &) |
boost::function< void(const BranchDescription &)> | registrationCallback () const |
used by the fwk to register list of products More... | |
virtual | ~ProducerBase () |
Private Types | |
enum | TrackType { FakeT, BestT, StandAloneMuonT, CombinedMuonT, TrackT, GsfT, CandidateT } |
Private Member Functions | |
const reco::Track * | extractTrack (const reco::Candidate &cand, reco::Track *dummyStorage) const |
Private Attributes | |
edm::InputTag | theCandCollectionTag |
edm::ParameterSet | theConfig |
std::vector< std::string > | theDepositNames |
reco::isodeposit::IsoDepositExtractor * | theExtractor |
bool | theMultipleDepositsFlag |
TrackType | theTrackType |
Additional Inherited Members | |
Public Types inherited from edm::EDProducer | |
typedef EDProducer | ModuleType |
typedef WorkerT< EDProducer > | WorkerType |
Public Types inherited from edm::ProducerBase | |
typedef ProductRegistryHelper::TypeLabelList | TypeLabelList |
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::EDProducer | |
CurrentProcessingContext const * | currentContext () const |
Protected Member Functions inherited from edm::ProducerBase | |
template<class TProducer , class TMethod > | |
void | callWhenNewProductsRegistered (TProducer *iProd, TMethod iMethod) |
Definition at line 19 of file CandIsoDepositProducer.h.
|
private |
Enumerator | |
---|---|
FakeT | |
BestT | |
StandAloneMuonT | |
CombinedMuonT | |
TrackT | |
GsfT | |
CandidateT |
Definition at line 30 of file CandIsoDepositProducer.h.
CandIsoDepositProducer::CandIsoDepositProducer | ( | const edm::ParameterSet & | par | ) |
constructor with config
Definition at line 33 of file CandIsoDepositProducer.cc.
References BestT, CandidateT, CombinedMuonT, edm::hlt::Exception, FakeT, reco::get(), edm::ParameterSet::getParameter(), GsfT, LogDebug, StandAloneMuonT, theConfig, theDepositNames, theExtractor, theMultipleDepositsFlag, theTrackType, and TrackT.
|
virtual |
destructor
Definition at line 68 of file CandIsoDepositProducer.cc.
References LogDebug, and theExtractor.
|
inlineprivate |
Definition at line 73 of file CandIsoDepositProducer.cc.
References BestT, reco::RecoCandidate::bestTrack(), trackerHits::c, CandidateT, reco::Candidate::charge(), reco::RecoCandidate::combinedMuon(), CombinedMuonT, edm::hlt::Exception, FakeT, edm::Ref< C, T, F >::get(), GsfT, reco::RecoCandidate::gsfTrack(), reco::Candidate::momentum(), reco::RecoCandidate::standAloneMuon(), StandAloneMuonT, theTrackType, reco::RecoCandidate::track(), TrackT, and reco::Candidate::vertex().
Referenced by produce().
|
virtual |
build deposits
OK, now we know how many deps for how many muons each we will create might linearize this at some point (lazy) do it in case some muons are there only
well, it is empty already by construction, but still
for(i<nMuons)
now fill in selectively
some debugging stuff
fill the maps here
for(iDep<nDeps)
if (nMuons>0)
Implements edm::EDProducer.
Definition at line 96 of file CandIsoDepositProducer.cc.
References begin, trackerHits::c, CandidateT, reco::isodeposit::IsoDepositExtractor::deposit(), reco::isodeposit::IsoDepositExtractor::deposits(), end, extractTrack(), edm::helper::Filler< Map >::fill(), i, edm::helper::Filler< Map >::insert(), LogTrace, metname, edm::Event::put(), theCandCollectionTag, theDepositNames, theExtractor, theMultipleDepositsFlag, and theTrackType.
|
private |
Definition at line 32 of file CandIsoDepositProducer.h.
Referenced by produce().
|
private |
Definition at line 31 of file CandIsoDepositProducer.h.
Referenced by CandIsoDepositProducer().
|
private |
Definition at line 34 of file CandIsoDepositProducer.h.
Referenced by CandIsoDepositProducer(), and produce().
|
private |
Definition at line 36 of file CandIsoDepositProducer.h.
Referenced by CandIsoDepositProducer(), produce(), and ~CandIsoDepositProducer().
|
private |
Definition at line 35 of file CandIsoDepositProducer.h.
Referenced by CandIsoDepositProducer(), and produce().
|
private |
Definition at line 33 of file CandIsoDepositProducer.h.
Referenced by CandIsoDepositProducer(), extractTrack(), and produce().