CMS 3D CMS Logo

Functions
siStripClusterTools Namespace Reference

Functions

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

Function Documentation

◆ chargePerCM() [1/5]

template<typename Clus >
float siStripClusterTools::chargePerCM ( Clus const &  cl,
LocalTrajectoryParameters const &  tp,
float  invThick 
)
inline

Definition at line 44 of file SiStripClusterTools.h.

44  {
45  return cl.charge() * invThick * tp.absdz();
46  }

References GetRecoTauVFromDQM_MC_cff::cl, and cmsswSequenceInfo::tp.

◆ chargePerCM() [2/5]

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

Definition at line 34 of file SiStripClusterTools.h.

34  {
35  return cl.charge() * sensorThicknessInverse(detid);
36  }

References GetRecoTauVFromDQM_MC_cff::cl, and sensorThicknessInverse().

◆ chargePerCM() [3/5]

template<typename Clus >
float siStripClusterTools::chargePerCM ( DetId  detid,
Clus const &  cl,
const LocalVector ldir 
)
inline

◆ chargePerCM() [4/5]

template<typename Clus >
float siStripClusterTools::chargePerCM ( DetId  detid,
Clus const &  cl,
LocalTrajectoryParameters const &  tp 
)
inline

Definition at line 39 of file SiStripClusterTools.h.

39  {
40  return chargePerCM(detid, cl) * tp.absdz();
41  }

References chargePerCM(), GetRecoTauVFromDQM_MC_cff::cl, and cmsswSequenceInfo::tp.

◆ chargePerCM() [5/5]

template<typename Iter >
float siStripClusterTools::chargePerCM ( DetId  detid,
Iter  a,
Iter  b 
)
inline

◆ sensorThicknessInverse()

float siStripClusterTools::sensorThicknessInverse ( DetId  detid)
inline

Definition at line 12 of file SiStripClusterTools.h.

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  }

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

Referenced by chargePerCM().

SiStripDetId::moduleGeometry
SiStripModuleGeometry moduleGeometry() const
Definition: SiStripDetId.h:109
SiStripModuleGeometry::W7
dqmMemoryStats.float
float
Definition: dqmMemoryStats.py:127
f
double f[11][100]
Definition: MuScleFitUtils.cc:78
siStripClusterTools::sensorThicknessInverse
float sensorThicknessInverse(DetId detid)
Definition: SiStripClusterTools.h:12
SiStripModuleGeometry::W6
PV3DBase::z
T z() const
Definition: PV3DBase.h:61
GetRecoTauVFromDQM_MC_cff.cl
cl
Definition: GetRecoTauVFromDQM_MC_cff.py:38
SiStripModuleGeometry::W5
b
double b
Definition: hdecay.h:118
cmsswSequenceInfo.tp
tp
Definition: cmsswSequenceInfo.py:17
DetId::subdetId
constexpr int subdetId() const
get the contents of the subdetector field (not cast into any detector's numbering enum)
Definition: DetId.h:48
a
double a
Definition: hdecay.h:119
siStripClusterTools::chargePerCM
float chargePerCM(DetId detid, Clus const &cl, const LocalVector &ldir)
Definition: SiStripClusterTools.h:49
SiStripDetId::TOB
static constexpr auto TOB
Definition: SiStripDetId.h:39
PV3DBase::mag
T mag() const
Definition: PV3DBase.h:64
SiStripDetId::TIB
static constexpr auto TIB
Definition: SiStripDetId.h:37
funct::abs
Abs< T >::type abs(const T &t)
Definition: Abs.h:22
SiStripDetId
Detector identifier class for the strip tracker.
Definition: SiStripDetId.h:18