kalmanalignment is hosted by Hepforge, IPPP Durham

Detector Class Reference

Configuration of detector layout and its misalignment. More...

#include <Detector.h>

List of all members.

Public Member Functions

 Detector (const char *fname)
virtual ~Detector ()
const int GetNLayer () const
 return number of layers of detector (along z)
const int GetNRod () const
 return number of rods in each layer (along x)
const int GetNModule () const
 return number of modules in each rod (along y)
const double GetLayerDistance () const
 distance between layers in z
const double GetWidth () const
const double GetLength () const
const double GetHeight () const
const double GetMisalignPosition () const
const double GetMisalignRotation () const
const CLHEP::HepVector & GetTrueMisalign () const
 Get true misalignment in one HepVector.
int MakeID (int layer, int rod, int module) const
 Make a linear (array) number for the specified module.
const DetGetDet (int layer, int rod, int module) const
 Get detector at that place.
void ResetDet (int moduleID)
 reset Detector to its nominal position

Protected Attributes

int fNLayer
int fNRod
int fNModule
double fLayerDistance
bool fRandomPlacement
double fModuleWidth
double fModuleLength
double fModuleThickness
double fModulePitchX
double fModulePitchY
double fMisalignPosition
double fMisalignRotation
std::vector< Det * > DetVec
 Detector collection.
CLHEP::HepVector fTrueMisalignment
 true misalignment parameters

Detailed Description

Configuration of detector layout and its misalignment.

All values are given in mm and rad, respectively. The detector consists of layers, rods and modules. The default configuration is resembling the TOB Cosmic Rack.


Constructor & Destructor Documentation

Detector::Detector ( const char *  fname)

default constructor reads detector layout from file and creates and misaligns all detectors.

Initialize Detector from given configuration file

Detector::~Detector ( ) [virtual]

Destructor. Delete the detectors from memory


Member Function Documentation

const double Detector::GetMisalignPosition ( ) const [inline]

A misalignment (movement) of the detector. It is given in mm and applied to either direction (i.e. on + and - direction), being randomized uniformly.

const double Detector::GetMisalignRotation ( ) const [inline]

A misalignment (rotation) of the detector. The angle is given in rad and applied to either direction, being randomized uniformly.

int Detector::MakeID ( int  layer,
int  rod,
int  module 
) const

Make a linear (array) number for the specified module.

Create a single unique number used as an identity out of layer, rod and module index.

void Detector::ResetDet ( int  moduleID)

reset Detector to its nominal position

Reset detector to nominal position and orientation. Additionally the true alignment parameters are reset.


The documentation for this class was generated from the following files:
  • /home/mweber/Dokumente/CMS/Alignment/kalmanalignment/trunk/simulation/Detector.h
  • /home/mweber/Dokumente/CMS/Alignment/kalmanalignment/trunk/simulation/Detector.cc