CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
Functions | Variables
align::tpe Namespace Reference

Functions

unsigned int bladeNumber (align::ID, const TrackerTopology *)
 
unsigned int endcapNumber (align::ID, const TrackerTopology *)
 Endcap number is 1 for -z and 2 for +z. More...
 
unsigned int halfCylinderNumber (align::ID, const TrackerTopology *)
 Half cylinder number is 1 at left side (-x) and 2 at right side (+x). More...
 
unsigned int halfDiskNumber (align::ID, const TrackerTopology *)
 Half disk number increases with |z| from 1 to 3. More...
 
unsigned int moduleNumber (align::ID, const TrackerTopology *)
 Module number increases with rho; from 1 to 4. More...
 
unsigned int panelNumber (align::ID, const TrackerTopology *)
 Panel number is 1 for 4 modules, 2 for 3 modules. More...
 

Variables

const unsigned int bpqd = 6
 

Function Documentation

unsigned int align::tpe::bladeNumber ( align::ID  id,
const TrackerTopology tTopo 
)
inline

Blade number increases from 1 at the top to 12 at the bottom of each half disk.

Definition at line 56 of file TPENameSpace.h.

References b, bpqd, and TrackerTopology::pxfBlade().

Referenced by TrackerCounters::TrackerCounters().

57 {
58  unsigned int b = tTopo->pxfBlade(id); // 1 to 24 in increasing phi
59 
60 // Blade in 1st quadrant: number = bpqd + 1 - b (1 to bpqd)
61 // Blade in 2nd quadrant: number = b - bpqd (1 to bpqd)
62 // Blade in 3rd quadrant: number = b - bpqd (bpqd + 1 to 2 * bpqd)
63 // Blade in 4th quadrant: number = 5 * bpqd + 1 - b (bpqd + 1 to 2 * bpqd)
64 
65  return b > 3 * bpqd ? // blade in 4th quadrant
66  5 * bpqd + 1 - b :
67  (b > bpqd ? // blade not in 1st quadrant
68  b - bpqd : bpqd + 1 - b);
69 }
const unsigned int bpqd
Definition: TPENameSpace.h:23
double b
Definition: hdecay.h:120
unsigned int pxfBlade(const DetId &id) const
unsigned int align::tpe::endcapNumber ( align::ID  id,
const TrackerTopology tTopo 
)
inline

Endcap number is 1 for -z and 2 for +z.

Definition at line 83 of file TPENameSpace.h.

References TrackerTopology::pxfSide().

Referenced by TrackerCounters::TrackerCounters().

84 {
85  return tTopo->pxfSide(id);
86 }
unsigned int pxfSide(const DetId &id) const
unsigned int align::tpe::halfCylinderNumber ( align::ID  id,
const TrackerTopology tTopo 
)
inline

Half cylinder number is 1 at left side (-x) and 2 at right side (+x).

Definition at line 76 of file TPENameSpace.h.

References b, bpqd, and TrackerTopology::pxfBlade().

Referenced by TrackerCounters::TrackerCounters().

77 {
78  unsigned int b = tTopo->pxfBlade(id); // 1 to 24 in increasing phi
79 
80  return b > bpqd && b <= 3 * bpqd ? 1 : 2;
81 }
const unsigned int bpqd
Definition: TPENameSpace.h:23
double b
Definition: hdecay.h:120
unsigned int pxfBlade(const DetId &id) const
unsigned int align::tpe::halfDiskNumber ( align::ID  id,
const TrackerTopology tTopo 
)
inline

Half disk number increases with |z| from 1 to 3.

Definition at line 71 of file TPENameSpace.h.

References TrackerTopology::pxfDisk().

Referenced by TrackerCounters::TrackerCounters().

72 {
73  return tTopo->pxfDisk(id);
74 }
unsigned int pxfDisk(const DetId &id) const
unsigned int align::tpe::moduleNumber ( align::ID  id,
const TrackerTopology tTopo 
)
inline

Module number increases with rho; from 1 to 4.

Definition at line 46 of file TPENameSpace.h.

References TrackerTopology::pxfModule().

Referenced by TrackerCounters::TrackerCounters().

47 {
48  return tTopo->pxfModule(id);
49 }
unsigned int pxfModule(const DetId &id) const
unsigned int align::tpe::panelNumber ( align::ID  id,
const TrackerTopology tTopo 
)
inline

Panel number is 1 for 4 modules, 2 for 3 modules.

Definition at line 51 of file TPENameSpace.h.

References TrackerTopology::pxfPanel().

Referenced by SiPixelDQMRocLevelAnalyzer::RocSummary(), and TrackerCounters::TrackerCounters().

52 {
53  return tTopo->pxfPanel(id);
54 }
unsigned int pxfPanel(const DetId &id) const

Variable Documentation

const unsigned int align::tpe::bpqd = 6

Definition at line 23 of file TPENameSpace.h.

Referenced by bladeNumber(), and halfCylinderNumber().