13 edm::LogInfo(
"CtfSpecialSeedGenerator|BeamHaloPairGenerator") <<
"Constructing BeamHaloPairGenerator";
29 auto innerHits = region.
hits(es,
ls[0]);
30 auto outerHits = region.
hits(es,
ls[1]);
32 for (
auto iOuterHit = outerHits.begin(); iOuterHit != outerHits.end(); iOuterHit++){
33 for (
auto iInnerHit = innerHits.begin(); iInnerHit != innerHits.end(); iInnerHit++){
37 GlobalVector d=crhpo->globalPosition() - crhpi->globalPosition();
38 double ABSsinDtheta = fabs(
sin(d.
theta()));
39 LogDebug(
"BeamHaloPairGenerator")<<
"position1: "<<crhpo->globalPosition()
40 <<
" position2: "<<crhpi->globalPosition()
41 <<
" |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