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());
69 GlobalPoint gpos = det->toGlobal(it->localPosition());
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());
101 GlobalPoint gpos = det->toGlobal(it->localPosition());
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());
134 GlobalPoint gpos = det->toGlobal(it->localPosition());
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());
167 GlobalPoint gpos = det->toGlobal(it->localPosition());
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);