#include <BeamHaloPairGenerator.h>
Definition at line 16 of file BeamHaloPairGenerator.h.
◆ BeamHaloPairGenerator()
◆ ~BeamHaloPairGenerator()
BeamHaloPairGenerator::~BeamHaloPairGenerator |
( |
| ) |
|
|
inlineoverride |
◆ run()
Implements OrderedHitsGenerator.
Definition at line 15 of file BeamHaloPairGenerator.cc.
22 if (
layers.numberOfLayersInSet() != 2)
24 <<
"You are using " <<
layers.numberOfLayersInSet() <<
" layers in set instead of 2 ";
26 auto innerHits =
region.hits(es,
ls[0]);
27 auto outerHits =
region.hits(es,
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");
References ztail::d, MillePedeFileConverter_cfg::e, hitPairs, hgcalTopologyTester_cfi::layers, LogDebug, eostools::ls(), HLT_2018_cff::region, funct::sin(), theMaxTheta, and theSeedingLayerToken.
◆ hitPairs
◆ theMaxTheta
double BeamHaloPairGenerator::theMaxTheta |
|
private |
◆ theSeedingLayerToken