10 edm::LogInfo(
"CtfSpecialSeedGenerator|BeamHaloPairGenerator") <<
"Constructing BeamHaloPairGenerator";
26 auto innerHits = region.
hits(
ls[0]);
27 auto outerHits = region.
hits(
ls[1]);
29 for (
auto iOuterHit = outerHits.begin(); iOuterHit != outerHits.end(); iOuterHit++) {
30 for (
auto iInnerHit = innerHits.begin(); iInnerHit != innerHits.end(); iInnerHit++) {
34 GlobalVector d = crhpo->globalPosition() - crhpi->globalPosition();
35 double ABSsinDtheta = fabs(
sin(d.
theta()));
37 <<
"position1: " << crhpo->globalPosition() <<
" position2: " << crhpi->globalPosition()
38 <<
" |sin(Dtheta)|: " << ABSsinDtheta << ((ABSsinDtheta >
theMaxTheta) ?
" skip" :
" keep");
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)
virtual Hits hits(const SeedingLayerSetsHits::SeedingLayer &layer) const =0
get hits from layer compatible with region constraints
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
Log< level::Info, false > LogInfo
T getParameter(std::string const &) const
BaseTrackerRecHit const * SeedingHit