104 m_trkcollToken(consumes<edm::
View<
reco::Track> >(iConfig.getParameter<edm::
InputTag>(
"trackCollection"))),
110 m_ptp = tfserv->
make<TH1F>(
"tpmomentum",
"Tracking Particle momentum", 100, 0., 200.);
111 m_etatp = tfserv->
make<TH1F>(
"tpeta",
"Tracking Particle pseudorapidity", 100, -4., 4.);
112 m_nhits = tfserv->
make<TH1F>(
"nhits",
"Tracking Particle associated hits", 100, -0.5, 99.5);
113 m_nrechits = tfserv->
make<TH1F>(
"nrechits",
"Tracking Particle associated rec hits", 100, -0.5, 99.5);
115 "nrecvssimhits",
"Tracking Particle associated rec hits vs sim hits", 100, -0.5, 99.5, 100, -0.5, 99.5);
116 m_nassotk = tfserv->
make<TH1F>(
"nassotk",
"Number of assocated reco tracks", 10, -0.5, 9.5);
118 m_pdgid = tfserv->
make<TH1F>(
"pdgid",
"Tracking Particle PDG id", 1000, -500.5, 499.5);
119 m_llbit = tfserv->
make<TH1F>(
"llbit",
"Tracking Particle LongLived bit", 2, -0.5, 1.5);
120 m_statustp = tfserv->
make<TH1F>(
"statustp",
"Tracking Particle status", 2000, -1000.5, 999.5);
126 sprintf(name,
"simytecr_%d",
ring + 1);
127 sprintf(title,
"SimHit local Y TEC ring %d",
ring + 1);
131 sprintf(name,
"assosimytecr_%d",
ring + 1);
132 sprintf(title,
"SimHit local Y TEC ring %d with associated RecHit",
ring + 1);
182 m_ptp->Fill(tp->p());
187 m_nhits->Fill(tp->numberOfTrackerHits());
190 m_llbit->Fill(tp->longLived());
199 if (srcoll.find(tp) != srcoll.end()) {
204 for (reco::SimToRecoCollection::result_type::const_iterator trk = trks.begin(); trk != trks.end(); ++trk) {
206 rechits.push_back((*rh)->geographicalId());
213 <<
"No associated reco track for TP with p = " << tp->p() <<
" and eta = " << tp->eta();
220 LogDebug(
"RecHitDetId") <<
"List of " << rechits.size() <<
" rechits detid from muon with p = " << tp->p()
221 <<
"and eta = " << tp->eta();
222 for (
unsigned int i = 0;
i < rechits.size(); ++
i) {
223 LogTrace(
"RecHitDetId") << rechits[
i].rawId();
228 LogDebug(
"SimHitDetId") <<
"List of " << tp->numberOfTrackerHits()
229 <<
" simhits detid from muon with p = " << tp->p() <<
"and eta = " << tp->eta();
void endRun(const edm::Run &, const edm::EventSetup &) override
~OverlapProblemTPAnalyzer() override
void analyze(const edm::Event &, const edm::EventSetup &) override
bool getByToken(EDGetToken token, Handle< PROD > &result) const
#define DEFINE_FWK_MODULE(type)
T * make(const Args &...args) const
make new ROOT object
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)
Log< level::Info, false > LogInfo
std::vector< TH1F * > m_simhitytecr
edm::EDGetTokenT< reco::TrackToTrackingParticleAssociator > m_associatorToken
std::vector< TH1F * > m_assosimhitytecr
std::vector< TrackingParticle > TrackingParticleCollection