CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups 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 (Clus const &cl, LocalTrajectoryParameters const &tp, float invThick)
 
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 
)
inline
template<typename Clus >
float siStripClusterTools::chargePerCM ( DetId  detid,
Clus const &  cl 
)
inline

Definition at line 34 of file SiStripClusterTools.h.

References sensorThicknessInverse().

34  {
35  return cl.charge() * sensorThicknessInverse(detid);
36  }
tuple cl
Definition: haddnano.py:49
float sensorThicknessInverse(DetId detid)
template<typename Clus >
float siStripClusterTools::chargePerCM ( DetId  detid,
Clus const &  cl,
LocalTrajectoryParameters const &  tp 
)
inline

Definition at line 39 of file SiStripClusterTools.h.

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

39  {
40  return chargePerCM(detid, cl) * tp.absdz();
41  }
float chargePerCM(DetId detid, Iter a, Iter b)
tuple cl
Definition: haddnano.py:49
template<typename Clus >
float siStripClusterTools::chargePerCM ( Clus const &  cl,
LocalTrajectoryParameters const &  tp,
float  invThick 
)
inline

Definition at line 44 of file SiStripClusterTools.h.

References LocalTrajectoryParameters::absdz().

44  {
45  return cl.charge() * invThick * tp.absdz();
46  }
tuple cl
Definition: haddnano.py:49
template<typename Clus >
float siStripClusterTools::chargePerCM ( DetId  detid,
Clus const &  cl,
const LocalVector ldir 
)
inline

Definition at line 49 of file SiStripClusterTools.h.

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

49  {
50  return chargePerCM(detid, cl) * std::abs(ldir.z()) / ldir.mag();
51  }
float chargePerCM(DetId detid, Iter a, Iter b)
tuple cl
Definition: haddnano.py:49
T mag() const
Definition: PV3DBase.h:64
T z() const
Definition: PV3DBase.h:61
Abs< T >::type abs(const T &t)
Definition: Abs.h:22
float siStripClusterTools::sensorThicknessInverse ( DetId  detid)
inline

Definition at line 12 of file SiStripClusterTools.h.

References validate-o2o-wbm::f, SiStripDetId::moduleGeometry(), DetId::subdetId(), SiStripDetId::TIB, SiStripDetId::TOB, W5, W6, and W7.

Referenced by chargePerCM().

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