Definition at line 14 of file Stub.cc.
References funct::abs(), bend_, HltBtagPostValidation_cff::c, c_, col_, tt::SensorModule::cosTilt(), cot_, d_, digi(), HLT_2023v12_cff::distance, tt::SensorModule::encodedR(), spr::find(), hybrid_, createfilelist::int, inv2R_, visualization-live-secondInstance_cfg::m, m_, SiStripPI::max, SiStripPI::min, PV_cfg::minPt, tt::SensorModule::numColumns(), tt::SensorModule::numRows(), tt::SensorModule::offsetR(), tt::SensorModule::offsetZ(), tt::SensorModule::phi(), phi_, phiT_, tt::SensorModule::pitchCol(), tt::SensorModule::pitchRow(), funct::pow(), tt::SensorModule::psModule(), tt::SensorModule::r(), r_, regions_, row_, rowLUT_, rowSub_, tt::SensorModule::sep(), singleTopDQM_cfi::setup, tt::SensorModule::side(), tt::SensorModule::signBend(), tt::SensorModule::signCol(), tt::SensorModule::signRow(), tt::SensorModule::sinTilt(), mathSSE::sqrt(), edm::swap(), ttStubRef(), tt::SensorModule::type(), valid_, tt::SensorModule::windowSize(), PV2DBase< T, PVType, FrameType >::x(), x, PV2DBase< T, PVType, FrameType >::y(), tt::SensorModule::z(), and z_.
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();
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.)
136 if (sm->
type() == SensorModule::Disk2S) {
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
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_