AliRoot Core  3dc7879 (3dc7879)
AliFMDAlignFaker Class Reference

This task creates fake alignment. More...

#include <AliFMDAlignFaker.h>

Inheritance diagram for AliFMDAlignFaker:

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="")
 
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 SetComment (const Char_t *comment="dummy data")
 
void Exec (Option_t *option="")
 

Static Public Member Functions

static Bool_t GetGeometry (Bool_t toCdb=kFALSE, const TString &storage=TString())
 

Protected Member Functions

 AliFMDAlignFaker (const AliFMDAlignFaker &o)
 
AliFMDAlignFakeroperator= (const AliFMDAlignFaker &)
 
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
 
TString fComment
 

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 47 of file AliFMDAlignFaker.h.

Member Enumeration Documentation

anonymous enum
Enumerator
kAll 

All types of alignment

Definition at line 59 of file AliFMDAlignFaker.h.

What to make alignments for

Enumerator
kSensors 

MAke alignment for sensors

kHalves 

Make alignment for half-rings

Definition at line 53 of file AliFMDAlignFaker.h.

Constructor & Destructor Documentation

AliFMDAlignFaker::AliFMDAlignFaker ( Int_t  mask = kAll,
const char *  geo = "geometry.root",
const char *  loc = "" 
)

Constructor

Parameters
maskBit mask of what to make alignments for
geoFile to read geometry from, if needed
locWhere to store the result

Definition at line 69 of file AliFMDAlignFaker.cxx.

virtual AliFMDAlignFaker::~AliFMDAlignFaker ( )
inlinevirtual

Destructor

Definition at line 75 of file AliFMDAlignFaker.h.

AliFMDAlignFaker::AliFMDAlignFaker ( const AliFMDAlignFaker o)
inlineprotected

Copy constructor

Parameters
oObject to copy from

Definition at line 176 of file AliFMDAlignFaker.h.

Member Function Documentation

void AliFMDAlignFaker::AddAlign ( EWhat  w)
inline

Add something to make alignment for

Parameters
wBit of alignment mask

Definition at line 80 of file AliFMDAlignFaker.h.

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

Make the alignment objects.

Parameters
optionNot used.

Definition at line 194 of file AliFMDAlignFaker.cxx.

Referenced by MakeAlignment(), MakeFMDFullMisAlignment(), MakeFMDResMisAlignment(), MakeFMDZeroMisAlignment(), MakeResidualAlignment(), and SetComment().

Bool_t AliFMDAlignFaker::GetGeometry ( Bool_t  toCdb = kFALSE,
const TString &  storage = TString() 
)
static

Get the geometry

Parameters
toCdbWhether to store in CDB
storageStorage element to use
Returns
true on success

Definition at line 148 of file AliFMDAlignFaker.cxx.

Referenced by MakeFMDFullMisAlignment(), MakeFMDResMisAlignment(), MakeFMDZeroMisAlignment(), and SetComment().

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
pathNode path.
volIDVolume identifier
transXTranslation in X
transYTranslation in Y
transZTranslation in Z
rotXRotation around X axis
rotYRotation around Y axis
rotZRotation around Z axis
Returns
true on success

Definition at line 288 of file AliFMDAlignFaker.cxx.

Referenced by MakeAlignHalf(), MakeAlignSensor(), and operator=().

Bool_t AliFMDAlignFaker::MakeAlignHalf ( const TString &  path,
Int_t  id 
)
protected

Align a half-ring

Parameters
pathof a sensor
idVolume id

Definition at line 322 of file AliFMDAlignFaker.cxx.

Referenced by Exec(), and operator=().

Bool_t AliFMDAlignFaker::MakeAlignSensor ( const TString &  path,
Int_t  id 
)
protected

Align a sensor

Parameters
pathof a sensor
idVolume id

Definition at line 338 of file AliFMDAlignFaker.cxx.

Referenced by Exec(), and operator=().

AliFMDAlignFaker& AliFMDAlignFaker::operator= ( const AliFMDAlignFaker )
inlineprotected

Assignment operator

Returns
Reference to this

Definition at line 198 of file AliFMDAlignFaker.h.

void AliFMDAlignFaker::RemoveAlign ( EWhat  w)
inline

Remove something to make alignment for

Parameters
wBit of alignment mask

Definition at line 85 of file AliFMDAlignFaker.h.

void AliFMDAlignFaker::SetAlign ( Int_t  mask)
inline

Set alignment select mask

Parameters
maskBit mask

Definition at line 90 of file AliFMDAlignFaker.h.

void AliFMDAlignFaker::SetComment ( const Char_t *  comment = "dummy data")
inline

Set the comment

Definition at line 154 of file AliFMDAlignFaker.h.

Referenced by AliFMDAlignFaker(), and MakeResidualAlignment().

void AliFMDAlignFaker::SetGeometryFile ( const char *  file)
inline

Set the file to read the geometry from.

Parameters
fileFile name

Definition at line 150 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
x1Minimum X displacement
y1Minimum Y displacement
z1Minimum Z displacement
x2Maximum X displacement
y2Maximum Y displacement
z2Maximum Z displacement

Definition at line 122 of file AliFMDAlignFaker.cxx.

Referenced by AliFMDAlignFaker(), MakeAlignment(), MakeFMDFullMisAlignment(), MakeFMDResMisAlignment(), MakeFMDZeroMisAlignment(), MakeResidualAlignment(), and SetAlign().

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
x1Minimum X rotation (in degrees)
y1Minimum Y rotation (in degrees)
z1Minimum Z rotation (in degrees)
x2Maximum X rotation (in degrees)
y2Maximum Y rotation (in degrees)
z2Maximum Z rotation (in degrees)

Definition at line 132 of file AliFMDAlignFaker.cxx.

Referenced by AliFMDAlignFaker(), MakeAlignment(), MakeFMDFullMisAlignment(), MakeFMDResMisAlignment(), MakeFMDZeroMisAlignment(), MakeResidualAlignment(), and SetAlign().

void AliFMDAlignFaker::SetOutput ( const char *  file)
inline

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

Parameters
fileCDB URL

Definition at line 145 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
x1Minimum X displacement (in centimeters)
y1Minimum Y displacement (in centimeters)
z1Minimum Z displacement (in centimeters)
x2Maximum X displacement (in centimeters)
y2Maximum Y displacement (in centimeters)
z2Maximum Z displacement (in centimeters)

Definition at line 102 of file AliFMDAlignFaker.cxx.

Referenced by AliFMDAlignFaker(), MakeAlignment(), MakeFMDFullMisAlignment(), MakeFMDResMisAlignment(), MakeFMDZeroMisAlignment(), MakeResidualAlignment(), and SetAlign().

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
x1Minimum X rotation (in degrees)
y1Minimum Y rotation (in degrees)
z1Minimum Z rotation (in degrees)
x2Maximum X rotation (in degrees)
y2Maximum Y rotation (in degrees)
z2Maximum Z rotation (in degrees)

Definition at line 112 of file AliFMDAlignFaker.cxx.

Referenced by AliFMDAlignFaker(), MakeAlignment(), MakeFMDFullMisAlignment(), MakeFMDResMisAlignment(), MakeFMDZeroMisAlignment(), MakeResidualAlignment(), and SetAlign().

void AliFMDAlignFaker::WriteToCDB ( )
protected

Write to CDB

Definition at line 353 of file AliFMDAlignFaker.cxx.

Referenced by Exec(), and operator=().

void AliFMDAlignFaker::WriteToFile ( )
protected

Write to file

Definition at line 371 of file AliFMDAlignFaker.cxx.

Referenced by Exec(), and operator=().

Member Data Documentation

TClonesArray* AliFMDAlignFaker::fArray
protected

Definition at line 246 of file AliFMDAlignFaker.h.

Referenced by Exec(), MakeAlign(), WriteToCDB(), and WriteToFile().

TString AliFMDAlignFaker::fComment
protected

Definition at line 247 of file AliFMDAlignFaker.h.

Referenced by SetComment(), and WriteToCDB().

TVector3 AliFMDAlignFaker::fHalfRotMax
protected

Definition at line 243 of file AliFMDAlignFaker.h.

Referenced by MakeAlignHalf(), and SetHalfRotation().

TVector3 AliFMDAlignFaker::fHalfRotMin
protected

Definition at line 242 of file AliFMDAlignFaker.h.

Referenced by MakeAlignHalf(), and SetHalfRotation().

TVector3 AliFMDAlignFaker::fHalfTransMax
protected

Definition at line 241 of file AliFMDAlignFaker.h.

Referenced by MakeAlignHalf(), and SetHalfDisplacement().

TVector3 AliFMDAlignFaker::fHalfTransMin
protected

Definition at line 240 of file AliFMDAlignFaker.h.

Referenced by MakeAlignHalf(), and SetHalfDisplacement().

Long_t AliFMDAlignFaker::fMask
protected

Definition at line 235 of file AliFMDAlignFaker.h.

Referenced by AddAlign(), Exec(), RemoveAlign(), and SetAlign().

Int_t AliFMDAlignFaker::fRunMax
protected

Definition at line 245 of file AliFMDAlignFaker.h.

Referenced by WriteToCDB().

Int_t AliFMDAlignFaker::fRunMin
protected

Definition at line 244 of file AliFMDAlignFaker.h.

Referenced by WriteToCDB().

TVector3 AliFMDAlignFaker::fSensorRotMax
protected

Definition at line 239 of file AliFMDAlignFaker.h.

Referenced by MakeAlignSensor(), and SetSensorRotation().

TVector3 AliFMDAlignFaker::fSensorRotMin
protected

Definition at line 238 of file AliFMDAlignFaker.h.

Referenced by MakeAlignSensor(), and SetSensorRotation().

TVector3 AliFMDAlignFaker::fSensorTransMax
protected

Definition at line 237 of file AliFMDAlignFaker.h.

Referenced by MakeAlignSensor(), and SetSensorDisplacement().

TVector3 AliFMDAlignFaker::fSensorTransMin
protected

Definition at line 236 of file AliFMDAlignFaker.h.

Referenced by MakeAlignSensor(), and SetSensorDisplacement().


The documentation for this class was generated from the following files: