CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
SeedingLayer.cc
Go to the documentation of this file.
2 #include "HitExtractor.h"
3 
4 
5 using namespace ctfseeding;
6 using namespace std;
7 
8 
10 public:
12  const std::string & name, int seqNum,
13  const DetLayer* layer,
14  const TransientTrackingRecHitBuilder * hitBuilder,
15  const HitExtractor * hitExtractor)
16  : theName(name),
17  theSeqNum(seqNum),
18  theLayer(layer),
19  theTTRHBuilder(static_cast<TkTransientTrackingRecHitBuilder const *>(hitBuilder)),
20  theHitExtractor(hitExtractor) { }
21 
23 
25  const edm::EventSetup& es) const { return theHitExtractor->hits(*theTTRHBuilder, ev, es); }
26 
27  std::string name() const { return theName; }
28 
29  int seqNum() const { return theSeqNum; }
30 
31  const DetLayer* detLayer() const { return theLayer; }
32  const TkTransientTrackingRecHitBuilder * hitBuilder() const { return theTTRHBuilder; }
33 
34 private:
36 
37 private:
39  int theSeqNum;
43 };
44 
45 
46 
47 
49  const std::string & name, int seqNum,
50  const DetLayer* layer,
51  const TransientTrackingRecHitBuilder * hitBuilder,
52  const HitExtractor * hitExtractor)
53 {
54  theImpl = std::make_shared<SeedingLayerImpl> (name,seqNum,layer,hitBuilder,hitExtractor);
55 }
56 
58 {
59  return theImpl->name();
60 }
61 
63 {
64  return theImpl->seqNum();
65 }
66 
68 {
69  return theImpl->detLayer();
70 }
71 
73 {
74  return theImpl->hitBuilder();
75 }
76 
78 {
79  return theImpl->hits( *this,ev,es);
80 }
const DetLayer * detLayer() const
Definition: SeedingLayer.cc:67
std::vector< HitPointer > Hits
Definition: SeedingLayer.h:28
bool ev
const TkTransientTrackingRecHitBuilder * hitBuilder() const
Definition: SeedingLayer.cc:32
const TkTransientTrackingRecHitBuilder * hitBuilder() const
Definition: SeedingLayer.cc:72
SeedingLayer::Hits hits(const SeedingLayer &sl, const edm::Event &ev, const edm::EventSetup &es) const
Definition: SeedingLayer.cc:24
void hits(const edm::Event &ev, const edm::EventSetup &es, Hits &) const
string const
Definition: compareJSON.py:14
std::string name() const
Definition: SeedingLayer.cc:57
SeedingLayerImpl(const std::string &name, int seqNum, const DetLayer *layer, const TransientTrackingRecHitBuilder *hitBuilder, const HitExtractor *hitExtractor)
Definition: SeedingLayer.cc:11
const TkTransientTrackingRecHitBuilder * theTTRHBuilder
Definition: SeedingLayer.cc:41