test
CMS 3D CMS Logo

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

Functions

unsigned int barrelNumber (align::ID, const TrackerTopology *)
 Barrel number is 1 for all align::ID's which belong to this barrel. More...
 
unsigned int halfBarrelNumber (align::ID, const TrackerTopology *)
 Half barrel number is 1 at left side (-x) and 2 at right side (+x). More...
 
unsigned int ladderNumber (align::ID, const TrackerTopology *)
 
unsigned int layerNumber (align::ID, const TrackerTopology *)
 Layer number increases with rho from 1 to 3. More...
 
unsigned int moduleNumber (align::ID, const TrackerTopology *)
 Module number increases with z from 1 to 8. More...
 

Variables

std::vector< unsigned int > lpqc
 Number of ladders for each quarter cylinder. More...
 

Function Documentation

unsigned int align::tpb::barrelNumber ( align::ID  ,
const TrackerTopology  
)
inline

Barrel number is 1 for all align::ID's which belong to this barrel.

Definition at line 80 of file TPBNameSpace.h.

Referenced by TrackerAlignableIndexer::TrackerAlignableIndexer().

81 {
82  return 1;
83 }
unsigned int align::tpb::halfBarrelNumber ( align::ID  id,
const TrackerTopology tTopo 
)
inline

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

Definition at line 72 of file TPBNameSpace.h.

References EnergyCorrector::c, cmsLHEtoEOSManager::l, lpqc, TrackerTopology::pxbLadder(), and TrackerTopology::pxbLayer().

Referenced by TrackerAlignableIndexer::TrackerAlignableIndexer().

73 {
74  unsigned int l = tTopo->pxbLadder(id); // increases with phi
75  unsigned int c = tTopo->pxbLayer(id) - 1;
76 
77  return l > lpqc[c] && l <= 3 * lpqc[c] ? 1 : 2;
78 }
unsigned int pxbLadder(const DetId &id) const
unsigned int pxbLayer(const DetId &id) const
std::vector< unsigned int > lpqc
Number of ladders for each quarter cylinder.
Definition: TPBNameSpace.h:27
unsigned int align::tpb::ladderNumber ( align::ID  id,
const TrackerTopology tTopo 
)
inline

Ladder number increases from 1 at the top to 2 * lpqc at the bottom of each half cylinder.

Definition at line 52 of file TPBNameSpace.h.

References EnergyCorrector::c, cmsLHEtoEOSManager::l, lpqc, TrackerTopology::pxbLadder(), and TrackerTopology::pxbLayer().

Referenced by TrackerAlignableIndexer::TrackerAlignableIndexer().

53 {
54  unsigned int l = tTopo->pxbLadder(id); // increases with phi
55  unsigned int c = tTopo->pxbLayer(id) - 1;
56 
57 // Ladder in 1st quadrant: number = lpqc + 1 - l (1 to lpqc)
58 // Ladder in 2nd quadrant: number = l - lpqc (1 to lpqc)
59 // Ladder in 3rd quadrant: number = l - lpqc (lpqc + 1 to 2 * lpqc)
60 // Ladder in 4th quadrant: number = 5 * lpqc + 1 - l (lpqc + 1 to 2 * lpqc)
61 
62  return l > 3 * lpqc[c] ? 5 * lpqc[c] + 1 - l : // ladder in 4th quadrant
63  (l > lpqc[c] ? l - lpqc[c] : // ladder not in 1st quadrant
64  lpqc[c] + 1 - l);
65 }
unsigned int pxbLadder(const DetId &id) const
unsigned int pxbLayer(const DetId &id) const
std::vector< unsigned int > lpqc
Number of ladders for each quarter cylinder.
Definition: TPBNameSpace.h:27
unsigned int align::tpb::layerNumber ( align::ID  id,
const TrackerTopology tTopo 
)
inline

Layer number increases with rho from 1 to 3.

Definition at line 67 of file TPBNameSpace.h.

References TrackerTopology::pxbLayer().

Referenced by TrackerAlignableIndexer::TrackerAlignableIndexer().

68 {
69  return tTopo->pxbLayer(id);
70 }
unsigned int pxbLayer(const DetId &id) const
unsigned int align::tpb::moduleNumber ( align::ID  id,
const TrackerTopology tTopo 
)
inline

Module number increases with z from 1 to 8.

Definition at line 47 of file TPBNameSpace.h.

References TrackerTopology::pxbModule().

Referenced by TrackerAlignableIndexer::TrackerAlignableIndexer().

48 {
49  return tTopo->pxbModule(id);
50 }
unsigned int pxbModule(const DetId &id) const

Variable Documentation

std::vector< unsigned int > align::tpb::lpqc

Number of ladders for each quarter cylinder.

Definition at line 27 of file TPBNameSpace.h.

Referenced by TrackerAlignmentLevelBuilder::buildPXBAlignmentLevels(), halfBarrelNumber(), and ladderNumber().