CMS 3D CMS Logo

CosmicTrackFinder.h
Go to the documentation of this file.
1 #ifndef CosmicTrackFinder_h
2 #define CosmicTrackFinder_h
3 
4 // Package: RecoTracker/SingleTrackPattern
5 // Class: CosmicTrackFinder
6 // Original Author: Michele Pioppi-INFN perugia
7 
17 
18 namespace cms {
20  public:
22  AnalHits(t1->recHits());
23  unsigned int alay = nlay;
24  AnalHits(t2->recHits());
25  unsigned int blay = nlay;
26  if (alay != blay)
27  return alay > blay;
28  if (t1->foundHits() != t2->foundHits())
29  return t1->foundHits() > t2->foundHits();
30  return t1->chiSquared() < t2->chiSquared();
31  // std::cout<<"chi "<<t1.chiSquared()<<" "<<t2.chiSquared()<<std::endl;
32  // return false;
33  }
34  void AnalHits(const std::vector<TransientTrackingRecHit::ConstRecHitPointer>& hits) {
35  ltob1 = false;
36  ltob2 = false;
37  ltib1 = false;
38  ltib2 = false;
39  // ConstRecHitIterator hit;
40  for (auto hit = hits.begin(); hit != hits.end(); hit++) {
41  unsigned int iid = (*hit)->hit()->geographicalId().rawId();
42 
43  int sub = (iid >> 25) & 0x7;
44  int lay = (iid >> 16) & 0xF;
45  if ((lay == 1) && (sub == 3))
46  ltib1 = true;
47  if ((lay == 2) && (sub == 3))
48  ltib2 = true;
49  if ((lay == 1) && (sub == 5))
50  ltob1 = true;
51  if ((lay == 2) && (sub == 5))
52  ltob2 = true;
53  }
54  nlay = ltib1 + ltib2 + ltob1 + ltob2;
55  }
56 
57  private:
59  unsigned int nlay;
60  };
62  public:
64  if (t1->foundHits() != t2->foundHits())
65  return t1->foundHits() > t2->foundHits();
66  return t1->chiSquared() < t2->chiSquared();
67  }
68  };
71 
72  public:
73  explicit CosmicTrackFinder(const edm::ParameterSet& conf);
74 
75  ~CosmicTrackFinder() override;
76 
77  void produce(edm::Event& e, const edm::EventSetup& c) override;
78 
79  private:
84  bool trinevents;
91  };
92 } // namespace cms
93 
94 #endif
RandomServiceHelper.t2
t2
Definition: RandomServiceHelper.py:257
cms::CosmicTrackFinder::geometry
std::string geometry
Definition: CosmicTrackFinder.h:83
Handle.h
cms::CompareTrajLay::ltob2
bool ltob2
Definition: CosmicTrackFinder.h:58
cms::CosmicTrackFinder::matchedrecHitsToken_
edm::EDGetTokenT< SiStripMatchedRecHit2DCollection > matchedrecHitsToken_
Definition: CosmicTrackFinder.h:86
cms::CompareTrajLay::ltob1
bool ltob1
Definition: CosmicTrackFinder.h:58
hfClusterShapes_cfi.hits
hits
Definition: hfClusterShapes_cfi.py:5
cms::CompareTrajLay::ltib2
bool ltib2
Definition: CosmicTrackFinder.h:58
edm::EDGetTokenT
Definition: EDGetToken.h:33
cms::CompareTrajChi
Definition: CosmicTrackFinder.h:61
cms::CosmicTrackFinder::produce
void produce(edm::Event &e, const edm::EventSetup &c) override
Definition: CosmicTrackFinder.cc:46
cms::CosmicTrackFinder::pixelRecHitsToken_
edm::EDGetTokenT< SiPixelRecHitCollection > pixelRecHitsToken_
Definition: CosmicTrackFinder.h:89
cms::CosmicTrackFinder::TSOS
TrajectoryStateOnSurface TSOS
Definition: CosmicTrackFinder.h:70
cms::CompareTrajLay
Definition: CosmicTrackFinder.h:19
EDProducer.h
TransientTrackingRecHit.h
cms::CosmicTrackFinder::useHitsSplitting_
bool useHitsSplitting_
Definition: CosmicTrackFinder.h:85
cms::CosmicTrackFinder::CosmicTrackFinder
CosmicTrackFinder(const edm::ParameterSet &conf)
Definition: CosmicTrackFinder.cc:28
TrajectoryStateOnSurface
Definition: TrajectoryStateOnSurface.h:16
RandomServiceHelper.t1
t1
Definition: RandomServiceHelper.py:256
cms::CosmicTrackFinder::conf_
edm::ParameterSet conf_
Definition: CosmicTrackFinder.h:82
cms::CosmicTrackFinder::trinevents
bool trinevents
Definition: CosmicTrackFinder.h:84
cms::CosmicTrackFinder::crackTrajectoryBuilder_
CRackTrajectoryBuilder crackTrajectoryBuilder_
Definition: CosmicTrackFinder.h:81
CRackTrajectoryBuilder
Definition: CRackTrajectoryBuilder.h:122
CosmicTrajectoryBuilder
Definition: CosmicTrajectoryBuilder.h:74
cms::CompareTrajLay::nlay
unsigned int nlay
Definition: CosmicTrackFinder.h:59
cms::CompareTrajLay::ltib1
bool ltib1
Definition: CosmicTrackFinder.h:58
cms::CompareTrajLay::AnalHits
void AnalHits(const std::vector< TransientTrackingRecHit::ConstRecHitPointer > &hits)
Definition: CosmicTrackFinder.h:34
cms::CompareTrajLay::operator()
bool operator()(Trajectory *t1, Trajectory *t2)
Definition: CosmicTrackFinder.h:21
edm::ParameterSet
Definition: ParameterSet.h:47
cms::CosmicTrackFinder::stereorecHitsToken_
edm::EDGetTokenT< SiStripRecHit2DCollection > stereorecHitsToken_
Definition: CosmicTrackFinder.h:88
Event.h
cms::CosmicTrackFinder::~CosmicTrackFinder
~CosmicTrackFinder() override
Definition: CosmicTrackFinder.cc:43
cms::CosmicTrackFinder::cosmicTrajectoryBuilder_
CosmicTrajectoryBuilder cosmicTrajectoryBuilder_
Definition: CosmicTrackFinder.h:80
cms::CosmicTrackFinder::seedToken_
edm::EDGetTokenT< TrajectorySeedCollection > seedToken_
Definition: CosmicTrackFinder.h:90
edm::stream::EDProducer
Definition: EDProducer.h:36
edm::EventSetup
Definition: EventSetup.h:58
CRackTrajectoryBuilder.h
cms::CosmicTrackFinder::rphirecHitsToken_
edm::EDGetTokenT< SiStripRecHit2DCollection > rphirecHitsToken_
Definition: CosmicTrackFinder.h:87
AlCaHLTBitMon_QueryRunRegistry.string
string string
Definition: AlCaHLTBitMon_QueryRunRegistry.py:256
CosmicTrajectoryBuilder.h
Trajectory.h
Trajectory
Definition: Trajectory.h:38
cms::CompareTrajChi::operator()
bool operator()(Trajectory *t1, Trajectory *t2)
Definition: CosmicTrackFinder.h:63
EventSetup.h
cms::CosmicTrackFinder
Definition: CosmicTrackFinder.h:69
ParameterSet.h
c
auto & c
Definition: CAHitNtupletGeneratorKernelsImpl.h:56
edm::Event
Definition: Event.h:73
hit
Definition: SiStripHitEffFromCalibTree.cc:88
cms
Namespace of DDCMS conversion namespace.
Definition: ProducerAnalyzer.cc:21
MillePedeFileConverter_cfg.e
e
Definition: MillePedeFileConverter_cfg.py:37