CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
Functions
siStripClusterTools Namespace Reference

Functions

template<typename Iter >
float chargePerCM (DetId detid, Iter a, Iter b)
 
template<typename Clus >
float chargePerCM (DetId detid, Clus const &cl)
 
template<typename Clus >
float chargePerCM (DetId detid, Clus const &cl, LocalTrajectoryParameters const &tp)
 
template<typename Clus >
float chargePerCM (DetId detid, Clus const &cl, const LocalVector &ldir)
 
float sensorThicknessInverse (DetId detid)
 

Function Documentation

template<typename Iter >
float siStripClusterTools::chargePerCM ( DetId  detid,
Iter  a,
Iter  b 
)
template<typename Clus >
float siStripClusterTools::chargePerCM ( DetId  detid,
Clus const &  cl 
)

Definition at line 31 of file SiStripClusterTools.h.

References sensorThicknessInverse().

31  {
32  return cl.charge()*sensorThicknessInverse(detid);
33  }
float sensorThicknessInverse(DetId detid)
template<typename Clus >
float siStripClusterTools::chargePerCM ( DetId  detid,
Clus const &  cl,
LocalTrajectoryParameters const &  tp 
)

Definition at line 37 of file SiStripClusterTools.h.

References LocalTrajectoryParameters::absdz(), and chargePerCM().

37  {
38  return chargePerCM(detid,cl)*tp.absdz();
39  }
float chargePerCM(DetId detid, Iter a, Iter b)
template<typename Clus >
float siStripClusterTools::chargePerCM ( DetId  detid,
Clus const &  cl,
const LocalVector ldir 
)

Definition at line 42 of file SiStripClusterTools.h.

References funct::abs(), chargePerCM(), PV3DBase< T, PVType, FrameType >::mag(), and PV3DBase< T, PVType, FrameType >::z().

42  {
43  return chargePerCM(detid,cl)*std::abs(ldir.z())/ldir.mag();
44  }
float chargePerCM(DetId detid, Iter a, Iter b)
T mag() const
Definition: PV3DBase.h:67
T z() const
Definition: PV3DBase.h:64
Abs< T >::type abs(const T &t)
Definition: Abs.h:22
float siStripClusterTools::sensorThicknessInverse ( DetId  detid)

Definition at line 12 of file SiStripClusterTools.h.

References cond::rpcobgas::detid, f, SiStripDetId::moduleGeometry(), DetId::subdetId(), SiStripDetId::TIB, SiStripDetId::TOB, SiStripDetId::W5, SiStripDetId::W6, and SiStripDetId::W7.

Referenced by chargePerCM().

13  {
14  if (detid.subdetId()>=SiStripDetId::TIB) {
15  SiStripDetId siStripDetId = detid();
16  if (siStripDetId.subdetId()==SiStripDetId::TOB) return 1.f/0.047f;
17  if (siStripDetId.moduleGeometry()==SiStripDetId::W5 || siStripDetId.moduleGeometry()==SiStripDetId::W6 ||
18  siStripDetId.moduleGeometry()==SiStripDetId::W7)
19  return 1.f/0.047f;
20  return 1.f/0.029f; // so it is TEC ring 1-4 or TIB or TOB;
21  } else if (detid.subdetId()==1) return 1.f/0.0285f;
22  else return 1.f/0.027f;
23  }
double f[11][100]
int subdetId() const
get the contents of the subdetector field (not cast into any detector&#39;s numbering enum) ...
Definition: DetId.h:37
Detector identifier class for the strip tracker.
Definition: SiStripDetId.h:17
ModuleGeometry moduleGeometry() const
Definition: SiStripDetId.h:134