CMS 3D CMS Logo

Public Member Functions

TrackerCounters Class Reference

#include <TrackerCounters.h>

Inheritance diagram for TrackerCounters:
Counters

List of all members.

Public Member Functions

 TrackerCounters ()
 Build the counters map.
 ~TrackerCounters ()

Detailed Description

Concrete implementation of counters for the tracker

Allows to set an id to each alignable. Actual counter definitions are in separate header files.

Date:
2007/10/18 09:57:10
Revision:
1.1
Author:
Chung Khim Lae

Definition at line 20 of file TrackerCounters.h.


Constructor & Destructor Documentation

TrackerCounters::TrackerCounters ( )

Build the counters map.

Definition at line 13 of file TrackerCounters.cc.

References align::tpe::bladeNumber(), align::tid::diskNumber(), align::tec::diskNumber(), align::tpe::endcapNumber(), align::tid::endcapNumber(), align::tec::endcapNumber(), align::tob::halfBarrelNumber(), align::tib::halfBarrelNumber(), align::tpb::halfBarrelNumber(), align::tpe::halfCylinderNumber(), align::tpe::halfDiskNumber(), align::tib::halfShellNumber(), align::tpb::ladderNumber(), align::tpb::layerNumber(), align::tob::layerNumber(), align::tib::layerNumber(), align::tib::moduleNumber(), align::tec::moduleNumber(), align::tpb::moduleNumber(), align::tob::moduleNumber(), align::tpe::moduleNumber(), align::tid::moduleNumber(), align::tpe::panelNumber(), align::tec::petalNumber(), align::tid::ringNumber(), align::tec::ringNumber(), align::tob::rodNumber(), align::tec::sideNumber(), align::tid::sideNumber(), align::tib::stringNumber(), align::tib::surfaceNumber(), align::TECDisk, align::TECEndcap, align::TECModule, align::TECPetal, align::TECRing, align::TECSide, align::TIBHalfBarrel, align::TIBHalfShell, align::TIBLayer, align::TIBModule, align::TIBString, align::TIBSurface, align::TIDDisk, align::TIDEndcap, align::TIDModule, align::TIDRing, align::TIDSide, align::TOBHalfBarrel, align::TOBLayer, align::TOBModule, align::TOBRod, align::TPBHalfBarrel, align::TPBLadder, align::TPBLayer, align::TPBModule, align::TPEBlade, align::TPEEndcap, align::TPEHalfCylinder, align::TPEHalfDisk, align::TPEModule, and align::TPEPanel.

{
  theCounters.clear();

  // Barrel Pixel
  theCounters[TPBModule]       = tpb::      moduleNumber;
  theCounters[TPBLadder]       = tpb::      ladderNumber;
  theCounters[TPBLayer]        = tpb::       layerNumber;
  theCounters[TPBHalfBarrel]   = tpb::  halfBarrelNumber;

  // Forward Pixel
  theCounters[TPEModule]       = tpe::      moduleNumber;
  theCounters[TPEPanel]        = tpe::       panelNumber;
  theCounters[TPEBlade]        = tpe::       bladeNumber;
  theCounters[TPEHalfDisk]     = tpe::    halfDiskNumber;
  theCounters[TPEHalfCylinder] = tpe::halfCylinderNumber;
  theCounters[TPEEndcap]       = tpe::      endcapNumber;

  // Tracker Inner Barrel
  theCounters[TIBModule]       = tib::      moduleNumber;
  theCounters[TIBString]       = tib::      stringNumber;
  theCounters[TIBSurface]      = tib::     surfaceNumber;
  theCounters[TIBHalfShell]    = tib::   halfShellNumber;
  theCounters[TIBLayer]        = tib::       layerNumber;
  theCounters[TIBHalfBarrel]   = tib::  halfBarrelNumber;

  // Tracker Inner Barrel
  theCounters[TIDModule]       = tid::      moduleNumber;
  theCounters[TIDSide]         = tid::        sideNumber;
  theCounters[TIDRing]         = tid::        ringNumber;
  theCounters[TIDDisk]         = tid::        diskNumber;
  theCounters[TIDEndcap]       = tid::      endcapNumber;

  // Tracker Outer Barrel
  theCounters[TOBModule]       = tob::      moduleNumber;
  theCounters[TOBRod]          = tob::         rodNumber;
  theCounters[TOBLayer]        = tob::       layerNumber;
  theCounters[TOBHalfBarrel]   = tob::  halfBarrelNumber;

  // Tracker Endcaps
  theCounters[TECModule]       = tec::      moduleNumber;
  theCounters[TECRing]         = tec::        ringNumber;
  theCounters[TECPetal]        = tec::       petalNumber;
  theCounters[TECSide]         = tec::        sideNumber;
  theCounters[TECDisk]         = tec::        diskNumber;
  theCounters[TECEndcap]       = tec::      endcapNumber;
}
TrackerCounters::~TrackerCounters ( ) [inline]

Definition at line 27 of file TrackerCounters.h.

{}