Definition at line 14 of file Stub.cc.
References funct::abs(), bend_, HltBtagPostValidation_cff::c, c_, col_, cot_, d_, digi(), HLT_2024v11_cff::distance, spr::find(), hybrid_, createfilelist::int, inv2R_, visualization-live-secondInstance_cfg::m, m_, SiStripPI::max, SiStripPI::min, PV_cfg::minPt, phi_, phiT_, funct::pow(), r_, regions_, row_, rowLUT_, rowSub_, singleTopDQM_cfi::setup, ALPAKA_ACCELERATOR_NAMESPACE::ecal::reconstruction::internal::barrel::sm(), mathSSE::sqrt(), edm::swap(), ttStubRef(), valid_, PV2DBase< T, PVType, FrameType >::x(), x, PV2DBase< T, PVType, FrameType >::y(), and z_.
44 const double y = (
col_ + .5) *
setup->baseCol() *
sm->pitchCol();
46 d_ =
sm->r() +
y *
sm->sinTilt();
56 const double phi0 =
sm->phi() + atan2(x0,
d_);
57 const double phi1 =
sm->phi() + atan2(
x1,
d_);
58 const double c = (
phi0 + phi1) / 2.;
59 const double m = (phi1 -
phi0) /
setup->dtcNumMergedRows();
74 const double dZT =
setup->beamWindowZ() *
abs(1. -
setup->chosenRofZ() /
r_);
75 double zTMin =
zT - dZT;
76 double zTMax =
zT + dZT;
77 if (zTMin >=
setup->maxZT() || zTMax < -
setup->maxZT())
89 static const double chosenRofPhi =
hybrid_ ?
setup->hybridChosenRofPhi() :
setup->chosenRofPhi();
93 const double dr =
sm->sep() / (
sm->cosTilt() -
sm->sinTilt() *
z_ /
d_);
95 const double inv2ROverBend =
sm->pitchRow() /
dr /
d_;
99 const double dInv2R =
setup->bendCut() * inv2ROverBend;
101 const double maxInv2R =
setup->invPtToDphi() /
minPt -
setup->dtcBaseInv2R() / 2.;
102 double inv2RMin =
digi(inv2R - dInv2R,
setup->dtcBaseInv2R());
103 double inv2RMax =
digi(inv2R + dInv2R,
setup->dtcBaseInv2R());
104 if (inv2RMin > maxInv2R || inv2RMax < -maxInv2R) {
108 inv2RMin =
max(inv2RMin, -maxInv2R);
109 inv2RMax =
min(inv2RMax, maxInv2R);
112 inv2R_ = {inv2RMin, inv2RMax};
123 if (
phiT_.first < 0.)
125 if (
phiT_.second >= 0.)
133 r_ -=
sm->offsetR() - chosenRofPhi;
136 if (
sm->type() == SensorModule::Disk2S) {
143 const vector<double>& encodingBend =
setup->encodingBend(
sm->windowSize(),
sm->psModule());
145 const int uBend =
distance(encodingBend.begin(),
pos);
T getParameter(std::string const &) const
void find(edm::Handle< EcalRecHitCollection > &hits, DetId thisDet, std::vector< EcalRecHitCollection::const_iterator > &hit, bool debug=false)
std::vector< int > regions_
void swap(Association< C > &lhs, Association< C > &rhs)
const LayerEncoding * layerEncoding_
Abs< T >::type abs(const T &t)
std::pair< double, double > phiT_
TTStubRef ttStubRef() const
ALPAKA_FN_ACC int sm(int ieta, int iphi)
double digi(double value, double precision) const
std::pair< double, double > cot_
Power< A, B >::type pow(const A &a, const B &b)
std::pair< double, double > inv2R_