104 m_trkcollToken(consumes<
edm::
View<
reco::Track> >(iConfig.getParameter<
edm::
InputTag>(
"trackCollection"))),
112 m_ptp = tfserv->
make<TH1F>(
"tpmomentum",
"Tracking Particle momentum", 100, 0., 200.);
113 m_etatp = tfserv->
make<TH1F>(
"tpeta",
"Tracking Particle pseudorapidity", 100, -4., 4.);
114 m_nhits = tfserv->
make<TH1F>(
"nhits",
"Tracking Particle associated hits", 100, -0.5, 99.5);
115 m_nrechits = tfserv->
make<TH1F>(
"nrechits",
"Tracking Particle associated rec hits", 100, -0.5, 99.5);
117 "nrecvssimhits",
"Tracking Particle associated rec hits vs sim hits", 100, -0.5, 99.5, 100, -0.5, 99.5);
118 m_nassotk = tfserv->
make<TH1F>(
"nassotk",
"Number of assocated reco tracks", 10, -0.5, 9.5);
120 m_pdgid = tfserv->
make<TH1F>(
"pdgid",
"Tracking Particle PDG id", 1000, -500.5, 499.5);
121 m_llbit = tfserv->
make<TH1F>(
"llbit",
"Tracking Particle LongLived bit", 2, -0.5, 1.5);
122 m_statustp = tfserv->
make<TH1F>(
"statustp",
"Tracking Particle status", 2000, -1000.5, 999.5);
128 sprintf(
name,
"simytecr_%d",
ring + 1);
129 sprintf(
title,
"SimHit local Y TEC ring %d",
ring + 1);
133 sprintf(
name,
"assosimytecr_%d",
ring + 1);
134 sprintf(
title,
"SimHit local Y TEC ring %d with associated RecHit",
ring + 1);
189 m_nhits->Fill(
tp->numberOfTrackerHits());
197 std::vector<DetId> rechits;
208 rechits.push_back((*rh)->geographicalId());
215 <<
"No associated reco track for TP with p = " <<
tp->p() <<
" and eta = " <<
tp->eta();
222 LogDebug(
"RecHitDetId") <<
"List of " << rechits.size() <<
" rechits detid from muon with p = " <<
tp->p()
223 <<
"and eta = " <<
tp->eta();
224 for (
unsigned int i = 0;
i < rechits.size(); ++
i) {
225 LogTrace(
"RecHitDetId") << rechits[
i].rawId();
230 LogDebug(
"SimHitDetId") <<
"List of " <<
tp->numberOfTrackerHits()
231 <<
" simhits detid from muon with p = " <<
tp->p() <<
"and eta = " <<
tp->eta();
reco::SimToRecoCollection associateSimToReco(const edm::Handle< edm::View< reco::Track >> &tCH, const edm::Handle< TrackingParticleCollection > &tPCH) const
static const std::string kSharedResource
void endRun(const edm::Run &, const edm::EventSetup &) override
~OverlapProblemTPAnalyzer() override
void analyze(const edm::Event &, const edm::EventSetup &) override
void beginRun(const edm::Run &, const edm::EventSetup &) override
value_type::value_type result_type
type return by operator[]
edm::EDGetTokenT< TrackingParticleCollection > m_tpcollToken
const_iterator find(const key_type &k) const
find element with specified reference key
const_iterator end() const
last iterator over the map (read only)
edm::EDGetTokenT< edm::View< reco::Track > > m_trkcollToken
OverlapProblemTPAnalyzer(const edm::ParameterSet &)
Abs< T >::type abs(const T &t)
#define DEFINE_FWK_MODULE(type)
Log< level::Info, false > LogInfo
std::vector< TH1F * > m_simhitytecr
edm::EDGetTokenT< reco::TrackToTrackingParticleAssociator > m_associatorToken
T * make(const Args &...args) const
make new ROOT object
std::vector< TH1F * > m_assosimhitytecr
std::vector< TrackingParticle > TrackingParticleCollection