17 template <
class T>
T sqr(
T t) {
return t*
t;}
19 using namespace GeomDetEnumerators;
22 std::ostringstream str;
37 GlobalTrackingRegion::checkRZ(
const DetLayer* layer,
39 const DetLayer* outerlayer,
float lr,
float gz,
float dr,
float dz)
const
47 lr =
sqrt(
sqr(ohit.
x()-origin().x())+
sqr(ohit.
y()-origin().y()) );
49 dr = outerHit->errorGlobalR();
50 dz = outerHit->errorGlobalZ();
64 if unlikely((!thePrecise) &&(isPixel )) {
67 return new HitEtaCheck(isBarrel, outerred, VcotMax, VcotMin);
106 float innerScatt = 3.f * ( outerlayer ?
121 float corrZ = innerScatt/sinTheta + dz;
122 return new HitZCheck(rzConstraint, HitZCheck::Margin(corrZ,corrZ));
125 float corrR = innerScatt/cosTheta + dr;
126 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
SeedingLayerSetsHits::Hits Hits
virtual std::string print() const
Square< F >::type sqr(const F &f)