CMS 3D CMS Logo

List of all members | Public Member Functions | Private Attributes | Friends
align::TrackerNameSpace::TID Class Reference

#include <TrackerNameSpace.h>

Public Member Functions

unsigned int diskNumber (align::ID) const
 Disk number increases with |z| from 1 to 3. More...
 
unsigned int endcapNumber (align::ID) const
 Endcap number is 1 at -z side and 2 at +z side. More...
 
unsigned int moduleNumber (align::ID) const
 Module number increases with phi. More...
 
TIDoperator= (const TID &)=default
 
TIDoperator= (TID &&)=default
 
unsigned int ringNumber (align::ID) const
 Ring number increases with rho from 1 to 3. More...
 
unsigned int sideNumber (align::ID) const
 Side number is 1 for back ring and 2 for front (towards IP). More...
 
 TID (const TrackerTopology *)
 
 TID (const TID &)=default
 
 TID (TID &&)=default
 
virtual ~TID ()=default
 

Private Attributes

const TrackerTopologytrackerTopology_
 

Friends

class ::TrackerAlignmentLevelBuilder
 grant access for the TrackerAlignmentLevelBuilder (in global namespace) More...
 
class TrackerNameSpace
 grant access for the enclosing TrackerNameSpace More...
 

Detailed Description

Definition at line 184 of file TrackerNameSpace.h.

Constructor & Destructor Documentation

align::TrackerNameSpace::TID::TID ( const TrackerTopology topology)

Definition at line 238 of file TrackerNameSpace.cc.

References moduleNumber().

Referenced by align::TrackerNameSpace::TOB::barrelNumber().

238  :
239  trackerTopology_(topology)
240 {
241 }
const TrackerTopology * trackerTopology_
align::TrackerNameSpace::TID::TID ( const TID )
default
align::TrackerNameSpace::TID::TID ( TID &&  )
default
virtual align::TrackerNameSpace::TID::~TID ( )
virtualdefault

Member Function Documentation

unsigned int align::TrackerNameSpace::TID::diskNumber ( align::ID  id) const

Disk number increases with |z| from 1 to 3.

Definition at line 262 of file TrackerNameSpace.cc.

References endcapNumber(), TrackerTopology::tidWheel(), and trackerTopology_.

Referenced by ringNumber().

263 {
264  return trackerTopology_->tidWheel(id);
265 }
unsigned int tidWheel(const DetId &id) const
const TrackerTopology * trackerTopology_
unsigned int align::TrackerNameSpace::TID::endcapNumber ( align::ID  id) const

Endcap number is 1 at -z side and 2 at +z side.

Definition at line 268 of file TrackerNameSpace.cc.

References align::TrackerNameSpace::TEC::TEC(), TrackerTopology::tidSide(), and trackerTopology_.

Referenced by diskNumber().

269 {
270  return trackerTopology_->tidSide(id);
271 }
unsigned int tidSide(const DetId &id) const
const TrackerTopology * trackerTopology_
unsigned int align::TrackerNameSpace::TID::moduleNumber ( align::ID  id) const

Module number increases with phi.

Definition at line 244 of file TrackerNameSpace.cc.

References sideNumber(), TrackerTopology::tidModuleInfo(), and trackerTopology_.

Referenced by TID().

245 {
246  return trackerTopology_->tidModuleInfo(id)[1];
247 }
std::vector< unsigned int > tidModuleInfo(const DetId &id) const
const TrackerTopology * trackerTopology_
TID& align::TrackerNameSpace::TID::operator= ( const TID )
default
TID& align::TrackerNameSpace::TID::operator= ( TID &&  )
default
unsigned int align::TrackerNameSpace::TID::ringNumber ( align::ID  id) const

Ring number increases with rho from 1 to 3.

Definition at line 256 of file TrackerNameSpace.cc.

References diskNumber(), TrackerTopology::tidRing(), and trackerTopology_.

Referenced by sideNumber().

257 {
258  return trackerTopology_->tidRing(id);
259 }
unsigned int tidRing(const DetId &id) const
const TrackerTopology * trackerTopology_
unsigned int align::TrackerNameSpace::TID::sideNumber ( align::ID  id) const

Side number is 1 for back ring and 2 for front (towards IP).

Definition at line 250 of file TrackerNameSpace.cc.

References ringNumber(), TrackerTopology::tidModuleInfo(), and trackerTopology_.

Referenced by moduleNumber().

251 {
252  return trackerTopology_->tidModuleInfo(id)[0];
253 }
std::vector< unsigned int > tidModuleInfo(const DetId &id) const
const TrackerTopology * trackerTopology_

Friends And Related Function Documentation

friend class ::TrackerAlignmentLevelBuilder
friend

grant access for the TrackerAlignmentLevelBuilder (in global namespace)

Definition at line 189 of file TrackerNameSpace.h.

friend class TrackerNameSpace
friend

grant access for the enclosing TrackerNameSpace

Definition at line 186 of file TrackerNameSpace.h.

Member Data Documentation

const TrackerTopology* align::TrackerNameSpace::TID::trackerTopology_
private

Definition at line 214 of file TrackerNameSpace.h.

Referenced by diskNumber(), endcapNumber(), moduleNumber(), ringNumber(), and sideNumber().