14 if (trackToTrackingParticleMap.find(aTrack) != trackToTrackingParticleMap.end()) {
15 return trackToTrackingParticleMap.find(aTrack)->second;
26 if (trackingParticleToTrackVectorMap.find(aTrackingParticle) != trackingParticleToTrackVectorMap.end()) {
27 return trackingParticleToTrackVectorMap.find(aTrackingParticle)->second;
31 std::vector<edm::Ptr<TTTrack<Ref_Phase2TrackerDigi_> > > tempVec;
41 if ((this->findTrackingParticlePtr(aTrack)).isNull())
51 if ((this->findTrackingParticlePtr(aTrack)).isNull())
56 TP_Stubs = theStubAssociationMap->findTTStubRefs(this->findTrackingParticlePtr(aTrack));
58 TRK_Stubs = aTrack->getStubRefs();
60 bool one2SStub =
false;
61 for (
unsigned int js = 0; js < TRK_Stubs.size(); js++) {
67 if (
std::find(TP_Stubs.begin(), TP_Stubs.end(), TRK_Stubs.at(js)) == TP_Stubs.end()) {
68 if (!AllowOneFalse2SStub || TRK_Stubs.at(js)->moduleTypePS() || one2SStub)
84 if (this->isLooselyGenuine(aTrack))
87 if (this->isUnknown(aTrack))
99 theseStubs = aTrack->getStubRefs();
100 for (
unsigned int i = 0;
i < theseStubs.size();
i++) {
101 if (theStubAssociationMap->isUnknown(theseStubs.at(
i)) ==
false) {
103 if (unknownstubs >= 2)
113 AllowOneFalse2SStub = allowFalse2SStub;
118 return AllowOneFalse2SStub;
edm::Ptr< TrackingParticle > findTrackingParticlePtr(edm::Ptr< TTTrack< T > > aTrack) const
Operations.
bool isCombinatoric(edm::Ptr< TTTrack< T > > aTrack) const
void find(edm::Handle< EcalRecHitCollection > &hits, DetId thisDet, std::vector< EcalRecHitCollection::const_iterator > &hit, bool debug=false)
bool getAllowOneFalse2SStub()
void setAllowOneFalse2SStub(bool allowFalse2SStub)
bool isGenuine(edm::Ptr< TTTrack< T > > aTrack) const
MC Truth methods.
Class to store the L1 Track Trigger stubs.
std::vector< edm::Ptr< TTTrack< T > > > findTTTrackPtrs(edm::Ptr< TrackingParticle > aTrackingParticle) const
Class to store the L1 Track Trigger tracks.
bool isUnknown(edm::Ptr< TTTrack< T > > aTrack) const
bool isLooselyGenuine(edm::Ptr< TTTrack< T > > aTrack) const