12 edm::LogInfo(
"CtfSpecialSeedGenerator|BeamHaloPairGenerator") <<
"Constructing BeamHaloPairGenerator";
28 auto innerHits = region.
hits(es,
ls[0]);
29 auto outerHits = region.
hits(es,
ls[1]);
31 for (
auto iOuterHit = outerHits.begin(); iOuterHit != outerHits.end(); iOuterHit++){
32 for (
auto iInnerHit = innerHits.begin(); iInnerHit != innerHits.end(); iInnerHit++){
36 GlobalVector d=crhpo->globalPosition() - crhpi->globalPosition();
37 double ABSsinDtheta = fabs(
sin(d.
theta()));
38 LogDebug(
"BeamHaloPairGenerator")<<
"position1: "<<crhpo->globalPosition()
39 <<
" position2: "<<crhpi->globalPosition()
40 <<
" |sin(Dtheta)|: "<< ABSsinDtheta <<((ABSsinDtheta>
theMaxTheta)?
" skip":
" keep");
T getParameter(std::string const &) const
unsigned short numberOfLayersInSet() const
Get number of layers in each SeedingLayerSets.
std::vector< LayerSetAndLayers > layers(const SeedingLayerSetsHits &sets)
bool getByToken(EDGetToken token, Handle< PROD > &result) const
Sin< T >::type sin(const T &t)
BeamHaloPairGenerator(const edm::ParameterSet &conf, edm::ConsumesCollector &iC)
edm::EDGetTokenT< SeedingLayerSetsHits > theSeedingLayerToken
Geom::Theta< T > theta() const
BaseTrackerRecHit const * ConstRecHitPointer
const OrderedSeedingHits & run(const TrackingRegion ®ion, const edm::Event &ev, const edm::EventSetup &es) override
virtual Hits hits(const edm::EventSetup &es, const SeedingLayerSetsHits::SeedingLayer &layer) const =0
get hits from layer compatible with region constraints
SeedingHitSet::ConstRecHitPointer SeedingHit