#include <BeamHaloPairGenerator.h>
Definition at line 16 of file BeamHaloPairGenerator.h.
BeamHaloPairGenerator::~BeamHaloPairGenerator |
( |
| ) |
|
|
inlineoverride |
Implements OrderedHitsGenerator.
Definition at line 19 of file BeamHaloPairGenerator.cc.
References edmIntegrityCheck::d, edm::Event::getByToken(), hitPairs, TrackingRegion::hits(), LayerTriplets::layers(), LogDebug, eostools::ls(), SeedingLayerSetsHits::numberOfLayersInSet(), funct::sin(), theMaxTheta, theSeedingLayerToken, and PV3DBase< T, PVType, FrameType >::theta().
Referenced by ~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");
unsigned short numberOfLayersInSet() const
Get number of layers in each SeedingLayerSets.
std::vector< LayerSetAndLayers > layers(const SeedingLayerSetsHits &sets)
Sin< T >::type sin(const T &t)
edm::EDGetTokenT< SeedingLayerSetsHits > theSeedingLayerToken
Geom::Theta< T > theta() const
BaseTrackerRecHit const * ConstRecHitPointer
virtual Hits hits(const edm::EventSetup &es, const SeedingLayerSetsHits::SeedingLayer &layer) const =0
get hits from layer compatible with region constraints
double BeamHaloPairGenerator::theMaxTheta |
|
private |