10 edm::LogInfo(
"CtfSpecialSeedGenerator|BeamHaloPairGenerator") <<
"Constructing BeamHaloPairGenerator";
22 if (
layers.numberOfLayersInSet() != 2)
24 <<
"You are using " <<
layers.numberOfLayersInSet() <<
" layers in set instead of 2 ";
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");
T getParameter(std::string const &) const
Sin< T >::type sin(const T &t)
BeamHaloPairGenerator(const edm::ParameterSet &conf, edm::ConsumesCollector &iC)
edm::EDGetTokenT< SeedingLayerSetsHits > theSeedingLayerToken
BaseTrackerRecHit const * ConstRecHitPointer
const OrderedSeedingHits & run(const TrackingRegion ®ion, const edm::Event &ev, const edm::EventSetup &es) override
Log< level::Info, false > LogInfo
SeedingHitSet::ConstRecHitPointer SeedingHit