104 m_simhitytecr(), m_assosimhitytecr(),
106 m_trkcollToken(consumes<edm::
View<
reco::Track> >(iConfig.getParameter<edm::
InputTag>(
"trackCollection"))),
115 m_ptp = tfserv->
make<TH1F>(
"tpmomentum",
"Tracking Particle momentum",100,0.,200.);
116 m_etatp = tfserv->
make<TH1F>(
"tpeta",
"Tracking Particle pseudorapidity",100,-4.,4.);
117 m_nhits = tfserv->
make<TH1F>(
"nhits",
"Tracking Particle associated hits",100,-0.5,99.5);
118 m_nrechits = tfserv->
make<TH1F>(
"nrechits",
"Tracking Particle associated rec hits",100,-0.5,99.5);
119 m_nrecvssimhits = tfserv->
make<TH2F>(
"nrecvssimhits",
"Tracking Particle associated rec hits vs sim hits",
120 100,-0.5,99.5,100,-0.5,99.5);
121 m_nassotk = tfserv->
make<TH1F>(
"nassotk",
"Number of assocated reco tracks",10,-0.5,9.5);
123 m_pdgid = tfserv->
make<TH1F>(
"pdgid",
"Tracking Particle PDG id",1000,-500.5,499.5);
124 m_llbit = tfserv->
make<TH1F>(
"llbit",
"Tracking Particle LongLived bit",2,-0.5,1.5);
125 m_statustp = tfserv->
make<TH1F>(
"statustp",
"Tracking Particle status",2000,-1000.5,999.5);
132 sprintf(name,
"simytecr_%d",
ring+1);
133 sprintf(title,
"SimHit local Y TEC ring %d",
ring+1);
137 sprintf(name,
"assosimytecr_%d",
ring+1);
138 sprintf(title,
"SimHit local Y TEC ring %d with associated RecHit",
ring+1);
190 if(
std::abs(tp->pdgId())!=13)
continue;
198 m_ptp->Fill(tp->p());
203 m_nhits->Fill(tp->numberOfTrackerHits());
207 m_llbit->Fill(tp->longLived());
216 if(srcoll.find(tp) != srcoll.end()) {
221 for(reco::SimToRecoCollection::result_type::const_iterator trk = trks.begin();trk!=trks.end();++trk) {
223 rechits.push_back((*rh)->geographicalId());
231 edm::LogInfo(
"NoAssociatedRecoTrack") <<
"No associated reco track for TP with p = " << tp->p()
232 <<
" and eta = " << tp->eta() ;
239 LogDebug(
"RecHitDetId") <<
"List of " << rechits.size() <<
" rechits detid from muon with p = " << tp->p()
240 <<
"and eta = " << tp->eta();
241 for(
unsigned int i=0;
i<rechits.size();++
i) {
242 LogTrace(
"RecHitDetId") << rechits[
i].rawId();
249 LogDebug(
"SimHitDetId") <<
"List of " << tp->numberOfTrackerHits() <<
" simhits detid from muon with p = " << tp->p()
250 <<
"and eta = " << tp->eta();
virtual void endRun(const edm::Run &, const edm::EventSetup &) override
virtual void analyze(const edm::Event &, const edm::EventSetup &) override
std::vector< TrackingParticle > TrackingParticleCollection
bool getByToken(EDGetToken token, Handle< PROD > &result) const
#define DEFINE_FWK_MODULE(type)
T * make(const Args &...args) const
make new ROOT object
virtual void beginRun(const edm::Run &, const edm::EventSetup &) override
value_type::value_type result_type
type return by operator[]
edm::EDGetTokenT< TrackingParticleCollection > m_tpcollToken
edm::EDGetTokenT< edm::View< reco::Track > > m_trkcollToken
OverlapProblemTPAnalyzer(const edm::ParameterSet &)
Abs< T >::type abs(const T &t)
std::vector< TH1F * > m_simhitytecr
edm::EDGetTokenT< reco::TrackToTrackingParticleAssociator > m_associatorToken
std::vector< TH1F * > m_assosimhitytecr
TrackingRecHitCollection::base::const_iterator trackingRecHit_iterator
iterator over a vector of reference to TrackingRecHit in the same collection
~OverlapProblemTPAnalyzer()