5 using namespace ctfseeding;
12 const std::string &
name,
18 theTTRHBuilder(hitBuilder),
19 theHitExtractor(hitExtractor),
20 theHasPredefinedHitErrors(
false),thePredefinedHitErrorRZ(0.),thePredefinedHitErrorRPhi(0.) { }
27 float hitErrorRZ,
float hitErrorRPhi)
28 : theName(name), theLayer(layer),
29 theTTRHBuilder(hitBuilder), theHitExtractor(hitExtractor),
30 theHasPredefinedHitErrors(
true),
31 thePredefinedHitErrorRZ(hitErrorRZ), thePredefinedHitErrorRPhi(hitErrorRPhi) { }
36 const edm::EventSetup& es)
const {
return theHitExtractor->hits(sl,ev,es); }
38 std::string
name()
const {
return theName; }
63 const std::string &
name,
67 bool usePredefinedErrors,
float hitErrorRZ,
float hitErrorRPhi)
70 new SeedingLayerImpl(name,layer,hitBuilder,hitExtractor,hitErrorRZ,hitErrorRPhi)
71 :
new SeedingLayerImpl(name,layer,hitBuilder,hitExtractor);
72 theImpl = boost::shared_ptr<SeedingLayerImpl> (
l);
77 return theImpl->name();
82 return theImpl->detLayer();
87 return theImpl->hitBuilder();
92 return theImpl->hits( *
this,ev,es);
97 return theImpl->hasPredefinedHitErrors();
102 return theImpl->predefinedHitErrorRZ();
107 return theImpl->predefinedHitErrorRPhi();
float predefinedHitErrorRPhi() const
bool theHasPredefinedHitErrors
const HitExtractor * theHitExtractor
const DetLayer * detLayer() const
const TransientTrackingRecHitBuilder * hitBuilder() const
const DetLayer * detLayer() const
bool hasPredefinedHitErrors() const
const TransientTrackingRecHitBuilder * theTTRHBuilder
SeedingLayer::Hits hits(const SeedingLayer &sl, const edm::Event &ev, const edm::EventSetup &es) const
SeedingLayerImpl(const string &name, const DetLayer *layer, const TransientTrackingRecHitBuilder *hitBuilder, const HitExtractor *hitExtractor, float hitErrorRZ, float hitErrorRPhi)
float predefinedHitErrorRPhi() const
const DetLayer * theLayer
float predefinedHitErrorRZ() const
bool hasPredefinedHitErrors() const
float thePredefinedHitErrorRZ
void hits(const edm::Event &ev, const edm::EventSetup &es, Hits &) const
const TransientTrackingRecHitBuilder * hitBuilder() const
SeedingLayerImpl(const std::string &name, const DetLayer *layer, const TransientTrackingRecHitBuilder *hitBuilder, const HitExtractor *hitExtractor)
float predefinedHitErrorRZ() const
std::vector< TransientTrackingRecHit::ConstRecHitPointer > Hits