34 iConfig.getParameter<
edm::
InputTag>(
"trackAssociatorByHitsTag"))),
56 if (!forwardHighInput.
isValid())
59 edm::PSimHitContainer::const_iterator
it;
66 for (
it = barrelLowInput->begin();
it != barrelLowInput->end(); ++
it) {
67 auto id =
DetId(
it->detUnitId());
71 float tof =
it->timeOfFlight();
72 float globalR = gpos.
mag();
76 float entryExitX = (
it->entryPoint().x() -
it->exitPoint().x());
77 float entryExitY = (
it->entryPoint().y() -
it->exitPoint().y());
78 float entryExitZ =
std::abs(
it->entryPoint().z() -
it->exitPoint().z());
80 float localX =
it->localPosition().x();
81 float localY =
it->localPosition().y();
82 float localZ =
it->localPosition().z();
83 float localPhi =
it->localPosition().phi();
84 float localEta =
it->localPosition().eta();
98 for (
it = barrelHighInput->begin();
it != barrelHighInput->end(); ++
it) {
99 auto id =
DetId(
it->detUnitId());
103 float tof =
it->timeOfFlight();
104 float globalR = gpos.
mag();
108 float entryExitX = (
it->entryPoint().x() -
it->exitPoint().x());
109 float entryExitY = (
it->entryPoint().y() -
it->exitPoint().y());
110 float entryExitZ =
std::abs(
it->entryPoint().z() -
it->exitPoint().z());
112 float localX =
it->localPosition().x();
113 float localY =
it->localPosition().y();
114 float localZ =
it->localPosition().z();
115 float localPhi =
it->localPosition().phi();
116 float localEta =
it->localPosition().eta();
131 for (
it = forwardLowInput->begin();
it != forwardLowInput->end(); ++
it) {
132 auto id =
DetId(
it->detUnitId());
136 float tof =
it->timeOfFlight();
137 float globalR = gpos.
mag();
141 float entryExitX = (
it->entryPoint().x() -
it->exitPoint().x());
142 float entryExitY = (
it->entryPoint().y() -
it->exitPoint().y());
143 float entryExitZ =
std::abs(
it->entryPoint().z() -
it->exitPoint().z());
145 float localX =
it->localPosition().x();
146 float localY =
it->localPosition().y();
147 float localZ =
it->localPosition().z();
148 float localPhi =
it->localPosition().phi();
149 float localEta =
it->localPosition().eta();
164 for (
it = forwardHighInput->begin();
it != forwardHighInput->end(); ++
it) {
165 auto id =
DetId(
it->detUnitId());
169 float tof =
it->timeOfFlight();
170 float globalR = gpos.
mag();
174 float entryExitX = (
it->entryPoint().x() -
it->exitPoint().x());
175 float entryExitY = (
it->entryPoint().y() -
it->exitPoint().y());
176 float entryExitZ =
std::abs(
it->entryPoint().z() -
it->exitPoint().z());
178 float localX =
it->localPosition().x();
179 float localY =
it->localPosition().y();
180 float localZ =
it->localPosition().z();
181 float localPhi =
it->localPosition().phi();
182 float localEta =
it->localPosition().eta();
206 if (!theHitsAssociator.
isValid()) {
220 auto iter =
p.find(
track);
reco::RecoToSimCollection associateRecoToSim(const edm::Handle< edm::View< reco::Track >> &tCH, const edm::Handle< TrackingParticleCollection > &tPCH) const
T const * product() const
edm::EDGetTokenT< edm::PSimHitContainer > pixelBarrelHighToken_
edm::ESGetToken< TrackerGeometry, TrackerDigiGeometryRecord > trackerGeomToken_
edm::EDGetTokenT< edm::PSimHitContainer > pixelForwardHighToken_
SiPixelPhase1HitsV(const edm::ParameterSet &conf)
edm::EDGetTokenT< reco::TrackToTrackingParticleAssociator > trackAssociatorByHitsToken_
edm::EDGetTokenT< edm::View< reco::Track > > tracksToken_
Abs< T >::type abs(const T &t)
#define DEFINE_FWK_MODULE(type)
edm::EDGetTokenT< edm::PSimHitContainer > pixelBarrelLowToken_
ESHandle< T > getHandle(const ESGetToken< T, R > &iToken) const
void analyze(const edm::Event &, const edm::EventSetup &) override
std::vector< HistogramManager > histo
std::vector< PSimHit > PSimHitContainer
std::vector< TrackingParticle > TrackingParticleCollection
edm::EDGetTokenT< TrackingParticleCollection > tpToken_
edm::EDGetTokenT< edm::PSimHitContainer > pixelForwardLowToken_