25 _geom_cache_id(0ULL), _magfield_cache_id(0ULL) {
47 return std::nan(
"Invalid TP type!");
68 return std::nan(
"Invalid TP type!");
89 return std::nan(
"Invalid TP type!");
209 std::unique_ptr<const CSCLayerGeometry> layer_geom(
212 std::unique_ptr<const CSCLayer> layer(
228 const unsigned halfstrip_offs = unsigned(0.5 + halfstrip + offset);
229 const unsigned strip = halfstrip_offs/2 + 1;
234 layer_geom->stripWireGroupIntersection(strip,keyWG);
235 const GlobalPoint coarse_gp = layer->surface().toGlobal(coarse_lp);
239 const double hs_offset = layer_geom->stripPhiPitch()/4.0;
244 const double phi_offset = ( ( halfstrip_offs%2 ? 1 : -1)*
245 ( ccw ? -hs_offset : hs_offset ) );
250 (coarse_gp.
phi().value() +
260 layer_geom.release();
285 std::unique_ptr<DTChamber> chamb(
288 std::unique_ptr<DTTrigGeom> trig_geom(
new DTTrigGeom(chamb.get(),
false) );
296 const int NBTI_theta = ( (baseid.
station() != 4) ?
297 trig_geom->nCell(2) : trig_geom->nCell(3) );
299 const unsigned bti_actual = bti_group*NBTI_theta/7 + NBTI_theta/14 + 1;
301 if ( baseid.
station() != 4 && bti_group != -1) {
302 thetaBTI =
DTBtiId(baseid,2,bti_actual);
306 thetaBTI =
DTBtiId(baseid,3,1);
308 const GlobalPoint theta_gp = trig_geom->CMSPosition(thetaBTI);
333 double bendf = bend/512.0;
339 const int nStrips = layer->geometry()->numberOfStrips();
340 const double phi1 = layer->centerOfStrip(1).phi();
341 const double phiN = layer->centerOfStrip(nStrips).phi();
342 return ( (
std::abs(phi1 - phiN) <
M_PI && phi1 >= phiN) ||
unsigned long long cacheIdentifier() const
edm::ESHandle< DTGeometry > _geodt
LocalPoint centreOfStrip(int strip) const
const subsystem_type subsystem() const
const DTData getDTData() const
const DTChamber * chamber(const DTChamberId &id) const
Return a DTChamber given its id.
const GEMData getGEMData() const
unsigned long long _geom_cache_id
double calcRPCSpecificBend(const TriggerPrimitive &) const
double calcDTSpecificEta(const TriggerPrimitive &) const
GlobalPoint toGlobal(const Local2DPoint &lp) const
Conversion to the global R.F. from the R.F. of the GeomDet.
double calcGEMSpecificEta(const TriggerPrimitive &) const
edm::ESHandle< RPCGeometry > _georpc
edm::ESHandle< GEMGeometry > _geogem
Geom::Phi< T > phi() const
GlobalPoint getRPCSpecificPoint(const TriggerPrimitive &) const
Global3DPoint GlobalPoint
GlobalPoint getCSCSpecificPoint(const TriggerPrimitive &) const
const CSCData getCSCData() const
const GEMEtaPartition * etaPartition(GEMDetId id) const
Return a GEMEtaPartition given its id.
const RPCData getRPCData() const
double calcGEMSpecificPhi(const TriggerPrimitive &) const
double calcRPCSpecificPhi(const TriggerPrimitive &) const
edm::ESHandle< MagneticField > _magfield
Geom::Theta< T > theta() const
double calculateBendAngle(const TriggerPrimitive &) const
void checkAndUpdateGeometry(const edm::EventSetup &)
edm::ESHandle< CSCGeometry > _geocsc
void get(HolderT &iHolder) const
Abs< T >::type abs(const T &t)
double calcCSCSpecificPhi(const TriggerPrimitive &) const
double calculateGlobalPhi(const TriggerPrimitive &) const
static double get2007Position(int pattern)
double calcDTSpecificBend(const TriggerPrimitive &) const
const CSCChamber * chamber(CSCDetId id) const
Return the chamber corresponding to given DetId.
double calcCSCSpecificEta(const TriggerPrimitive &) const
GlobalPoint calcDTSpecificPoint(const TriggerPrimitive &) const
double calcDTSpecificPhi(const TriggerPrimitive &) const
GlobalPoint getGEMSpecificPoint(const TriggerPrimitive &) const
int station() const
Return the station number.
unsigned long long _magfield_cache_id
double calculateGlobalEta(const TriggerPrimitive &) const
double calcGEMSpecificBend(const TriggerPrimitive &) const
bool isCSCCounterClockwise(const std::unique_ptr< const CSCLayer > &) const
const RPCRoll * roll(RPCDetId id) const
Return a roll given its id.
double calcRPCSpecificEta(const TriggerPrimitive &) const
GlobalPoint getGlobalPoint(const TriggerPrimitive &) const
double calcCSCSpecificBend(const TriggerPrimitive &) const