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);
192 if(
std::abs(tp->pdgId())!=13)
continue;
200 m_ptp->Fill(tp->p());
205 m_nhits->Fill(tp->numberOfTrackerHits());
209 m_llbit->Fill(tp->longLived());
218 if(srcoll.find(tp) != srcoll.end()) {
223 for(reco::SimToRecoCollection::result_type::const_iterator trk = trks.begin();trk!=trks.end();++trk) {
225 rechits.push_back((*rh)->geographicalId());
233 edm::LogInfo(
"NoAssociatedRecoTrack") <<
"No associated reco track for TP with p = " << tp->p()
234 <<
" and eta = " << tp->eta() ;
241 LogDebug(
"RecHitDetId") <<
"List of " << rechits.size() <<
" rechits detid from muon with p = " << tp->p()
242 <<
"and eta = " << tp->eta();
243 for(
unsigned int i=0;
i<rechits.size();++
i) {
244 LogTrace(
"RecHitDetId") << rechits[
i].rawId();
251 LogDebug(
"SimHitDetId") <<
"List of " << tp->numberOfTrackerHits() <<
" simhits detid from muon with p = " << tp->p()
252 <<
"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
result type
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
std::vector< TH1F * > m_assosimhitytecr
TrackingRecHitCollection::base::const_iterator trackingRecHit_iterator
iterator over a vector of reference to TrackingRecHit in the same collection
~OverlapProblemTPAnalyzer()