17 template <
class T>
T sqr(
T t) {
return t*
t;}
19 using namespace GeomDetEnumerators;
22 std::ostringstream str;
32 return layer->
hits(ev,es);
45 GlobalTrackingRegion::checkRZ(
const DetLayer* layer,
47 const DetLayer* outerlayer,
float lr,
float gz,
float dr,
float dz)
const
55 lr =
sqrt(
sqr(ohit.
x()-origin().x())+
sqr(ohit.
y()-origin().y()) );
57 dr = outerHit->errorGlobalR();
58 dz = outerHit->errorGlobalZ();
72 if unlikely((!thePrecise) &&(isPixel )) {
75 return new HitEtaCheck(isBarrel, outerred, VcotMax, VcotMin);
114 float innerScatt = 3.f * ( outerlayer ?
129 float corrZ = innerScatt/sinTheta + dz;
130 return new HitZCheck(rzConstraint, HitZCheck::Margin(corrZ,corrZ));
133 float corrR = innerScatt/cosTheta + dr;
134 return new HitRCheck( rzConstraint, HitRCheck::Margin(corrR,corrR));
std::string print(const Track &, edm::Verbosity=edm::Concise)
Track print utility.
virtual SubDetector subDetector() const =0
The type of detector (PixelBarrel, PixelEndcap, TIB, TOB, TID, TEC, CSC, DT, RPCBarrel, RPCEndcap)
static GlobalPoint vtxMean(const GlobalPoint &p1, const GlobalError &e1, const GlobalPoint &p2, const GlobalError &e2)
constexpr double nSigmaPhi
void hits(const edm::Event &ev, const edm::EventSetup &es, Hits &) const
virtual std::string print() const
Square< F >::type sqr(const F &f)