80 iEvent.
getByToken(simtracksXFToken_, simtracksXF_);
81 iEvent.
getByToken(simvertsXFToken_, simvertsXF_);
83 iEvent.
getByToken(simtracksToken_, simtracks_);
92 <<
"reco::Track collection --- size = " << tC.size();
97 <<
"TrackingParticle collection --- size = " << tPC.size();
99 for (TrackingParticleCollection::const_iterator ITER = tPC.begin(); ITER != tPC.end(); ITER++, j++) {
101 <<
"TrackingParticle " << j <<
", q = " << ITER->charge() <<
", p = " << ITER->p() <<
", pT = " << ITER->pt()
102 <<
", eta = " << ITER->eta() <<
", phi = " << ITER->phi();
105 <<
"\t pdg code = " << ITER->pdgId() <<
", made of " << ITER->numberOfHits() <<
" PSimHit" 106 <<
" (in " << ITER->numberOfTrackerLayers() <<
" layers)" 107 <<
" from " << ITER->g4Tracks().size() <<
" SimTrack:";
110 <<
"\t\t Id:" << g4T->trackId() <<
"/Evt:(" << g4T->eventId().event() <<
"," 111 << g4T->eventId().bunchCrossing() <<
")";
119 <<
"CrossingFrame<SimTrack> collection with InputTag = " <<
simtracksXFTag <<
" has size = " << SimTk->size();
123 <<
"SimTrack " << k <<
" - Id:" << ITER->trackId() <<
"/Evt:(" << ITER->eventId().event() <<
"," 124 << ITER->eventId().bunchCrossing() <<
")" 125 <<
", q = " << ITER->charge() <<
", p = " << ITER->momentum().P() <<
", pT = " << ITER->momentum().Pt()
126 <<
", eta = " << ITER->momentum().Eta() <<
", phi = " << ITER->momentum().Phi()
127 <<
"\n\t pdgId = " << ITER->type() <<
", Vertex index = " << ITER->vertIndex()
128 <<
", Gen Particle index = " << (ITER->genpartIndex() > 0 ? ITER->genpartIndex() - 1 : ITER->genpartIndex())
135 <<
"CrossingFrame<SimVertex> collection with InputTag = " <<
simtracksXFTag 136 <<
" has size = " << SimVtx->size();
140 <<
"SimVertex " << kv <<
" - Id:" << VITER->vertexId() <<
", position = " << VITER->position()
141 <<
", parent SimTrack Id = " << VITER->parentIndex() <<
", processType = " << VITER->processType();
147 <<
"SimTrack collection with InputTag = " <<
simtracksTag <<
" has size = " << simTC.size() << endl;
149 for (edm::SimTrackContainer::const_iterator ITER = simTC.begin(); ITER != simTC.end(); ITER++, k++) {
151 <<
"SimTrack " << k <<
" - Id:" << ITER->trackId() <<
"/Evt:(" << ITER->eventId().event() <<
"," 152 << ITER->eventId().bunchCrossing() <<
")" 153 <<
", q = " << ITER->charge() <<
", p = " << ITER->momentum().P() <<
", pT = " << ITER->momentum().Pt()
154 <<
", eta = " << ITER->momentum().Eta() <<
", phi = " << ITER->momentum().Phi()
155 <<
"\n\t pdgId = " << ITER->type() <<
", Vertex index = " << ITER->vertIndex()
156 <<
", Gen Particle index = " << (ITER->genpartIndex() > 0 ? ITER->genpartIndex() - 1 : ITER->genpartIndex())
161 <<
"SimVertex collection with InputTag = " 163 <<
" has size = " << simVC.size() << endl;
165 for (edm::SimVertexContainer::const_iterator VITER = simVC.begin(); VITER != simVC.end(); VITER++, kv++) {
167 <<
"SimVertex " << kv <<
" - Id:" << VITER->vertexId() <<
", position = " << VITER->position()
168 <<
", parent SimTrack Id = " << VITER->parentIndex() <<
", processType = " << VITER->processType();
213 trackerHitAssociatorConfig_(iConfig, consumesCollector()),
214 hitExtractor_(iConfig, consumesCollector()) {
216 produces<reco::MuonToTrackingParticleAssociator>();
225 diagnostics_.reset(
new InputDumper(iConfig, consumesCollector()));
249 bool printRtS =
true;
278 std::unique_ptr<reco::MuonToTrackingParticleAssociatorBaseImpl>
impl{
280 std::unique_ptr<reco::MuonToTrackingParticleAssociator>
toPut(
T getUntrackedParameter(std::string const &, T const &) const
std::unique_ptr< CSCHitAssociator > csctruth_
OrphanHandle< PROD > put(std::unique_ptr< PROD > product)
Put a new product.
std::vector< TrackingParticle > TrackingParticleCollection
bool getByToken(EDGetToken token, Handle< PROD > &result) const
std::function< void(const TrackHitsCollection &, const TrackingParticleCollection &)> diagnostics_
MuonToTrackingParticleAssociatorEDProducer(const edm::ParameterSet &)
std::unique_ptr< RPCHitAssociator > rpctruth_
std::vector< std::pair< trackingRecHit_iterator, trackingRecHit_iterator > > TrackHitsCollection
#define DEFINE_FWK_MODULE(type)
void addDefault(ParameterSetDescription const &psetDescription)
MuonAssociatorByHitsHelper helper_
TrackerHitAssociator::Config trackerHitAssociatorConfig_
std::unique_ptr< GEMHitAssociator > gemtruth_
MuonAssociatorByHitsHelper::TrackHitsCollection TrackHitsCollection
std::unique_ptr< TrackerHitAssociator > trackertruth_
std::vector< SimTrack >::const_iterator g4t_iterator
static void fillDescriptions(edm::ConfigurationDescriptions &descriptions)
std::unique_ptr< InputDumper > diagnostics_
std::vector< SimVertex > SimVertexContainer
~MuonToTrackingParticleAssociatorEDProducer() override
edm::ParameterSet const config_
static void fillDescriptions(edm::ConfigurationDescriptions &descriptions)
TrackerMuonHitExtractor hitExtractor_
std::unique_ptr< DTHitAssociator > dttruth_
void produce(edm::Event &, const edm::EventSetup &) override
T const * product() const
std::vector< SimTrack > SimTrackContainer