![]() |
AliRoot Core
3dc7879 (3dc7879)
|
This task creates fake alignment. More...
#include <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="") | |
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) | |
AliFMDAlignFaker & | operator= (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 |
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.
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.
AliFMDAlignFaker::AliFMDAlignFaker | ( | Int_t | mask = kAll , |
const char * | geo = "geometry.root" , |
||
const char * | loc = "" |
||
) |
Constructor
mask | Bit mask of what to make alignments for |
geo | File to read geometry from, if needed |
loc | Where to store the result |
Definition at line 69 of file AliFMDAlignFaker.cxx.
|
inlinevirtual |
Destructor
Definition at line 75 of file AliFMDAlignFaker.h.
|
inlineprotected |
|
inline |
Add something to make alignment for
w | Bit of alignment mask |
Definition at line 80 of file AliFMDAlignFaker.h.
void AliFMDAlignFaker::Exec | ( | Option_t * | option = "" | ) |
Make the alignment objects.
option | Not used. |
Definition at line 194 of file AliFMDAlignFaker.cxx.
Referenced by MakeAlignment(), MakeFMDFullMisAlignment(), MakeFMDResMisAlignment(), MakeFMDZeroMisAlignment(), MakeResidualAlignment(), and SetComment().
|
static |
Get the geometry
toCdb | Whether to store in CDB |
storage | Storage element to use |
Definition at line 148 of file AliFMDAlignFaker.cxx.
Referenced by MakeFMDFullMisAlignment(), MakeFMDResMisAlignment(), MakeFMDZeroMisAlignment(), and SetComment().
|
protected |
Make the alignment object for a path
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 |
true
on success Definition at line 288 of file AliFMDAlignFaker.cxx.
Referenced by MakeAlignHalf(), MakeAlignSensor(), and operator=().
|
protected |
Align a half-ring
path | of a sensor |
id | Volume id |
Definition at line 322 of file AliFMDAlignFaker.cxx.
Referenced by Exec(), and operator=().
|
protected |
Align a sensor
path | of a sensor |
id | Volume id |
Definition at line 338 of file AliFMDAlignFaker.cxx.
Referenced by Exec(), and operator=().
|
inlineprotected |
|
inline |
Remove something to make alignment for
w | Bit of alignment mask |
Definition at line 85 of file AliFMDAlignFaker.h.
|
inline |
|
inline |
Set the comment
Definition at line 154 of file AliFMDAlignFaker.h.
Referenced by AliFMDAlignFaker(), and MakeResidualAlignment().
|
inline |
Set the file to read the geometry from.
file | File 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.
x1 | Minimum X displacement |
y1 | Minimum Y displacement |
z1 | Minimum Z displacement |
x2 | Maximum X displacement |
y2 | Maximum Y displacement |
z2 | Maximum 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.
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) |
Definition at line 132 of file AliFMDAlignFaker.cxx.
Referenced by AliFMDAlignFaker(), MakeAlignment(), MakeFMDFullMisAlignment(), MakeFMDResMisAlignment(), MakeFMDZeroMisAlignment(), MakeResidualAlignment(), and SetAlign().
|
inline |
Set the output file name. Should be a valid CDB URL.
file | CDB 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.
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) |
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.
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) |
Definition at line 112 of file AliFMDAlignFaker.cxx.
Referenced by AliFMDAlignFaker(), MakeAlignment(), MakeFMDFullMisAlignment(), MakeFMDResMisAlignment(), MakeFMDZeroMisAlignment(), MakeResidualAlignment(), and SetAlign().
|
protected |
Write to CDB
Definition at line 353 of file AliFMDAlignFaker.cxx.
Referenced by Exec(), and operator=().
|
protected |
Write to file
Definition at line 371 of file AliFMDAlignFaker.cxx.
Referenced by Exec(), and operator=().
|
protected |
Definition at line 246 of file AliFMDAlignFaker.h.
Referenced by Exec(), MakeAlign(), WriteToCDB(), and WriteToFile().
|
protected |
Definition at line 247 of file AliFMDAlignFaker.h.
Referenced by SetComment(), and WriteToCDB().
|
protected |
Definition at line 243 of file AliFMDAlignFaker.h.
Referenced by MakeAlignHalf(), and SetHalfRotation().
|
protected |
Definition at line 242 of file AliFMDAlignFaker.h.
Referenced by MakeAlignHalf(), and SetHalfRotation().
|
protected |
Definition at line 241 of file AliFMDAlignFaker.h.
Referenced by MakeAlignHalf(), and SetHalfDisplacement().
|
protected |
Definition at line 240 of file AliFMDAlignFaker.h.
Referenced by MakeAlignHalf(), and SetHalfDisplacement().
|
protected |
Definition at line 235 of file AliFMDAlignFaker.h.
Referenced by AddAlign(), Exec(), RemoveAlign(), and SetAlign().
|
protected |
Definition at line 245 of file AliFMDAlignFaker.h.
Referenced by WriteToCDB().
|
protected |
Definition at line 244 of file AliFMDAlignFaker.h.
Referenced by WriteToCDB().
|
protected |
Definition at line 239 of file AliFMDAlignFaker.h.
Referenced by MakeAlignSensor(), and SetSensorRotation().
|
protected |
Definition at line 238 of file AliFMDAlignFaker.h.
Referenced by MakeAlignSensor(), and SetSensorRotation().
|
protected |
Definition at line 237 of file AliFMDAlignFaker.h.
Referenced by MakeAlignSensor(), and SetSensorDisplacement().
|
protected |
Definition at line 236 of file AliFMDAlignFaker.h.
Referenced by MakeAlignSensor(), and SetSensorDisplacement().