36 iConfig.getParameter<
edm::
InputTag>(
"trackAssociatorByHitsTag"))) {}
56 if (!forwardHighInput.
isValid())
59 edm::PSimHitContainer::const_iterator it;
67 for (it = barrelLowInput->begin(); it != barrelLowInput->end(); ++it) {
68 auto id =
DetId(it->detUnitId());
70 GlobalPoint gpos = det->toGlobal(it->localPosition());
72 float tof = it->timeOfFlight();
73 float globalR = gpos.
mag();
77 float entryExitX = (it->entryPoint().x() - it->exitPoint().x());
78 float entryExitY = (it->entryPoint().y() - it->exitPoint().y());
79 float entryExitZ =
std::abs(it->entryPoint().z() - it->exitPoint().z());
81 float localX = it->localPosition().x();
82 float localY = it->localPosition().y();
83 float localZ = it->localPosition().z();
84 float localPhi = it->localPosition().phi();
85 float localEta = it->localPosition().eta();
99 for (it = barrelHighInput->begin(); it != barrelHighInput->end(); ++it) {
100 auto id =
DetId(it->detUnitId());
102 GlobalPoint gpos = det->toGlobal(it->localPosition());
104 float tof = it->timeOfFlight();
105 float globalR = gpos.
mag();
109 float entryExitX = (it->entryPoint().x() - it->exitPoint().x());
110 float entryExitY = (it->entryPoint().y() - it->exitPoint().y());
111 float entryExitZ =
std::abs(it->entryPoint().z() - it->exitPoint().z());
113 float localX = it->localPosition().x();
114 float localY = it->localPosition().y();
115 float localZ = it->localPosition().z();
116 float localPhi = it->localPosition().phi();
117 float localEta = it->localPosition().eta();
132 for (it = forwardLowInput->begin(); it != forwardLowInput->end(); ++it) {
133 auto id =
DetId(it->detUnitId());
135 GlobalPoint gpos = det->toGlobal(it->localPosition());
137 float tof = it->timeOfFlight();
138 float globalR = gpos.
mag();
142 float entryExitX = (it->entryPoint().x() - it->exitPoint().x());
143 float entryExitY = (it->entryPoint().y() - it->exitPoint().y());
144 float entryExitZ =
std::abs(it->entryPoint().z() - it->exitPoint().z());
146 float localX = it->localPosition().x();
147 float localY = it->localPosition().y();
148 float localZ = it->localPosition().z();
149 float localPhi = it->localPosition().phi();
150 float localEta = it->localPosition().eta();
165 for (it = forwardHighInput->begin(); it != forwardHighInput->end(); ++it) {
166 auto id =
DetId(it->detUnitId());
168 GlobalPoint gpos = det->toGlobal(it->localPosition());
170 float tof = it->timeOfFlight();
171 float globalR = gpos.
mag();
175 float entryExitX = (it->entryPoint().x() - it->exitPoint().x());
176 float entryExitY = (it->entryPoint().y() - it->exitPoint().y());
177 float entryExitZ =
std::abs(it->entryPoint().z() - it->exitPoint().z());
179 float localX = it->localPosition().x();
180 float localY = it->localPosition().y();
181 float localZ = it->localPosition().z();
182 float localPhi = it->localPosition().phi();
183 float localEta = it->localPosition().eta();
207 if (!theHitsAssociator.
isValid()) {
221 auto iter =
p.find(
track);