function to calculate keys from a vector of measurements, the signCor is can be use to flip the signs of the MDT hits if the two segments that are compared have opposite directions
26 {
27
30
31
32 std::vector<const Trk::MeasurementBase*>::const_iterator
it = measurements.begin(), itEnd = measurements.end();
33 for (;
it != itEnd; ++
it) {
34 const Trk::RIO_OnTrack* rot = dynamic_cast<const Trk::RIO_OnTrack*>(*it);
35 const Muon::CompetingMuonClustersOnTrack* crot = nullptr;
36 if (!rot) {
37 crot = dynamic_cast<const Muon::CompetingMuonClustersOnTrack*>(*it);
38
40 }
41 if (!rot) continue;
42
43
46
47 const Muon::MdtDriftCircleOnTrack* mdt = dynamic_cast<const Muon::MdtDriftCircleOnTrack*>(*it);
48 if (mdt) {
49
50 const Trk::LocalParameters& locParams = (*it)->localParameters();
51
52
54
55
56 if (signCor == 2)
sign = 1;
57
59 } else if (dynamic_cast<const Muon::CscClusterOnTrack*>(*it)) {
61 } else if (dynamic_cast<const Muon::MMClusterOnTrack*>(*it)) {
63 } else if (dynamic_cast<const Muon::sTgcClusterOnTrack*>(*it)) {
65 } else {
67 }
68 }
69}
value_type get_compact() const
Get the compact id.
Identifier32 get_identifier32() const
Get the 32-bit version Identifier, will be invalid if >32 bits needed.
const std::vector< const MuonClusterOnTrack * > & containedROTs() const
returns the vector of SCT_ClusterOnTrack objects .
MeasurementKeys m_measKeysTrigger
MeasurementKeys m_measKeys
double get(ParamDefs par) const
Retrieve specified parameter (const version).
Identifier identify() const
return the identifier -extends MeasurementBase