AliFMDAlignFaker Class Reference
[Utility classes.]

#include <AliFMDAlignFaker.h>

List of all members.


Detailed Description

This task creates fake alignment. Which alignment, depends on the bit mask passed to the constructor, or added by `AddAlign'.

The default is to write all alignment parameters to a local storage local://cdb which is a directory in the current directory.

Definition at line 33 of file AliFMDAlignFaker.h.

Public Types

enum  EWhat { kSensors = 1, kHalves }
enum  { kAll = (1<<kHalves|1<<kSensors) }

Public Member Functions

 AliFMDAlignFaker (Int_t mask=kAll, const char *geo="geometry.root", const char *loc="local://cdb")
virtual ~AliFMDAlignFaker ()
void AddAlign (EWhat w)
void RemoveAlign (EWhat w)
void SetAlign (Int_t mask)
void SetSensorDisplacement (Double_t x1=0, Double_t y1=0, Double_t z1=0, Double_t x2=.01, Double_t y2=.01, Double_t z2=0)
void SetSensorRotation (Double_t x1=0, Double_t y1=0, Double_t z1=0, Double_t x2=.5, Double_t y2=.5, Double_t z2=.5)
void SetHalfDisplacement (Double_t x1=0, Double_t y1=0, Double_t z1=0, Double_t x2=.05, Double_t y2=.05, Double_t z2=.05)
void SetHalfRotation (Double_t x1=0, Double_t y1=0, Double_t z1=0, Double_t x2=0, Double_t y2=0, Double_t z2=0)
void SetOutput (const char *file)
void SetGeometryFile (const char *file)
void Exec (Option_t *option="")

Protected Member Functions

Bool_t MakeAlign (const TString &path, Int_t volID, Double_t transX, Double_t transY, Double_t transZ, Double_t rotX, Double_t rotY, Double_t rotZ)
Bool_t MakeAlignSensor (const TString &path, Int_t id)
Bool_t MakeAlignHalf (const TString &path, Int_t id)
void WriteToCDB ()
void WriteToFile ()

Protected Attributes

Long_t fMask
TVector3 fSensorTransMin
TVector3 fSensorTransMax
TVector3 fSensorRotMin
TVector3 fSensorRotMax
TVector3 fHalfTransMin
TVector3 fHalfTransMax
TVector3 fHalfRotMin
TVector3 fHalfRotMax
Int_t fRunMin
Int_t fRunMax
TClonesArray * fArray


Member Enumeration Documentation

anonymous enum
 

Enumerator:
kAll  All types of alignment

Definition at line 43 of file AliFMDAlignFaker.h.

enum AliFMDAlignFaker::EWhat
 

What to make alignments for

Enumerator:
kSensors  MAke alignment for sensors
kHalves  Make alignment for half-rings

Definition at line 37 of file AliFMDAlignFaker.h.


Constructor & Destructor Documentation

AliFMDAlignFaker::AliFMDAlignFaker Int_t  mask = kAll,
const char *  geo = "geometry.root",
const char *  loc = "local://cdb"
 

Constructor

Parameters:
mask Bit mask of what to make alignments for
geo File to read geometry from, if needed
loc Where to store the result

virtual AliFMDAlignFaker::~AliFMDAlignFaker  )  [inline, virtual]
 

Destructor

Definition at line 55 of file AliFMDAlignFaker.h.


Member Function Documentation

void AliFMDAlignFaker::AddAlign EWhat  w  )  [inline]
 

Add something to make alignment for

Parameters:
w Bit of alignment mask

Definition at line 58 of file AliFMDAlignFaker.h.

void AliFMDAlignFaker::Exec Option_t *  option = ""  ) 
 

Make the alignment objects.

Parameters:
option Not used.

Bool_t AliFMDAlignFaker::MakeAlign const TString &  path,
Int_t  volID,
Double_t  transX,
Double_t  transY,
Double_t  transZ,
Double_t  rotX,
Double_t  rotY,
Double_t  rotZ
[protected]
 

Make the alignment object for a path

Parameters:
path Node path.
volID Volume identifier
transX Translation in X
transY Translation in Y
transZ Translation in Z
rotX Rotation around X axis
rotY Rotation around Y axis
rotZ Rotation around Z axis
Returns:
true on success

Bool_t AliFMDAlignFaker::MakeAlignHalf const TString &  path,
Int_t  id
[protected]
 

Align a half-ring

Parameters:
path of a sensor
id Volume id

Bool_t AliFMDAlignFaker::MakeAlignSensor const TString &  path,
Int_t  id
[protected]
 

Align a sensor

Parameters:
path of a sensor
id Volume id

void AliFMDAlignFaker::RemoveAlign EWhat  w  )  [inline]
 

Remove something to make alignment for

Parameters:
w Bit of alignment mask

Definition at line 61 of file AliFMDAlignFaker.h.

void AliFMDAlignFaker::SetAlign Int_t  mask  )  [inline]
 

Set alignment select mask

Parameters:
mask Bit mask

Definition at line 64 of file AliFMDAlignFaker.h.

void AliFMDAlignFaker::SetGeometryFile const char *  file  )  [inline]
 

Set the file to read the geometry from.

Parameters:
file File name

Definition at line 112 of file AliFMDAlignFaker.h.

void AliFMDAlignFaker::SetHalfDisplacement Double_t  x1 = 0,
Double_t  y1 = 0,
Double_t  z1 = 0,
Double_t  x2 = .05,
Double_t  y2 = .05,
Double_t  z2 = .05
 

Set the displacement (translation) of half-rings. The displacement is selected random uniformly between the corresponding minimum and maximum.

Parameters:
x1 Minimum X displacement
y1 Minimum Y displacement
z1 Minimum Z displacement
x2 Maximum X displacement
y2 Maximum Y displacement
z2 Maximum Z displacement

void AliFMDAlignFaker::SetHalfRotation Double_t  x1 = 0,
Double_t  y1 = 0,
Double_t  z1 = 0,
Double_t  x2 = 0,
Double_t  y2 = 0,
Double_t  z2 = 0
 

Set the rotation of half-rings. The displacement is selected random uniformly between the corresponding minimum and maximum.

Parameters:
x1 Minimum X rotation (in degrees)
y1 Minimum Y rotation (in degrees)
z1 Minimum Z rotation (in degrees)
x2 Maximum X rotation (in degrees)
y2 Maximum Y rotation (in degrees)
z2 Maximum Z rotation (in degrees)

void AliFMDAlignFaker::SetOutput const char *  file  )  [inline]
 

Set the output file name. Should be a valid CDB URL.

Parameters:
file CDB URL

Definition at line 109 of file AliFMDAlignFaker.h.

void AliFMDAlignFaker::SetSensorDisplacement Double_t  x1 = 0,
Double_t  y1 = 0,
Double_t  z1 = 0,
Double_t  x2 = .01,
Double_t  y2 = .01,
Double_t  z2 = 0
 

Set the displacement (translation) of sensors. The displacement is selected random uniformly between the corresponding minimum and maximum.

Parameters:
x1 Minimum X displacement (in centimeters)
y1 Minimum Y displacement (in centimeters)
z1 Minimum Z displacement (in centimeters)
x2 Maximum X displacement (in centimeters)
y2 Maximum Y displacement (in centimeters)
z2 Maximum Z displacement (in centimeters)

void AliFMDAlignFaker::SetSensorRotation Double_t  x1 = 0,
Double_t  y1 = 0,
Double_t  z1 = 0,
Double_t  x2 = .5,
Double_t  y2 = .5,
Double_t  z2 = .5
 

Set the rotation of sensors. The displacement is selected random uniformly between the corresponding minimum and maximum.

Parameters:
x1 Minimum X rotation (in degrees)
y1 Minimum Y rotation (in degrees)
z1 Minimum Z rotation (in degrees)
x2 Maximum X rotation (in degrees)
y2 Maximum Y rotation (in degrees)
z2 Maximum Z rotation (in degrees)

void AliFMDAlignFaker::WriteToCDB  )  [protected]
 

Write to CDB

void AliFMDAlignFaker::WriteToFile  )  [protected]
 

Write to file


Member Data Documentation

TClonesArray* AliFMDAlignFaker::fArray [protected]
 

Definition at line 154 of file AliFMDAlignFaker.h.

TVector3 AliFMDAlignFaker::fHalfRotMax [protected]
 

Definition at line 151 of file AliFMDAlignFaker.h.

TVector3 AliFMDAlignFaker::fHalfRotMin [protected]
 

Definition at line 150 of file AliFMDAlignFaker.h.

TVector3 AliFMDAlignFaker::fHalfTransMax [protected]
 

Definition at line 149 of file AliFMDAlignFaker.h.

TVector3 AliFMDAlignFaker::fHalfTransMin [protected]
 

Definition at line 148 of file AliFMDAlignFaker.h.

Long_t AliFMDAlignFaker::fMask [protected]
 

Definition at line 143 of file AliFMDAlignFaker.h.

Int_t AliFMDAlignFaker::fRunMax [protected]
 

Definition at line 153 of file AliFMDAlignFaker.h.

Int_t AliFMDAlignFaker::fRunMin [protected]
 

Definition at line 152 of file AliFMDAlignFaker.h.

TVector3 AliFMDAlignFaker::fSensorRotMax [protected]
 

Definition at line 147 of file AliFMDAlignFaker.h.

TVector3 AliFMDAlignFaker::fSensorRotMin [protected]
 

Definition at line 146 of file AliFMDAlignFaker.h.

TVector3 AliFMDAlignFaker::fSensorTransMax [protected]
 

Definition at line 145 of file AliFMDAlignFaker.h.

TVector3 AliFMDAlignFaker::fSensorTransMin [protected]
 

Definition at line 144 of file AliFMDAlignFaker.h.


The documentation for this class was generated from the following file:
Generated on Fri Mar 24 17:11:22 2006 for ALICE FMD Off-line by  doxygen 1.4.6