![]() |
AliRoot Core
v5-06-30 (35d6c57)
|
Task to align the muon spectrometer. More...
#include <AliMUONAlignmentTask.h>
Public Member Functions | |
AliMUONAlignmentTask (const char *name="AliMUONAlignmentTask") | |
constructor More... | |
virtual | ~AliMUONAlignmentTask () |
destructor More... | |
AliMUONAlignment * | alignment (void) const |
get pointer to alignment class More... | |
virtual void | LocalInit () |
virtual void | UserCreateOutputObjects () |
output data More... | |
virtual void | UserExec (Option_t *) |
per-event method More... | |
virtual void | NotifyRun () |
virtual void | Terminate (const Option_t *) |
termination cleanup More... | |
virtual void | FinishTaskOutput () |
end of task execution More... | |
void | SetDefaultStorage (TString defaultOCDB) |
Set default ocdb. More... | |
void | SetOldAlignStorage (TString oldalignOCDB) |
Set old (misaligned) alignment path for ocdb. More... | |
void | SetNewAlignStorage (TString newalignOCDB) |
Set new (realigned) alignment path for ocdb. More... | |
void | SetLoadOCDBOnce (Bool_t loadOCDBOnce=kTRUE) |
Flag to set OCDB once at first run notify. More... | |
Protected Member Functions | |
void | SaveMisAlignmentData (AliMUONGeometryTransformer *) const |
store misalignment matrices from OCDB into geometry transformer More... | |
Private Member Functions | |
AliMUONAlignmentTask (const AliMUONAlignmentTask &obj) | |
copy constructor, not implemented More... | |
AliMUONAlignmentTask & | operator= (const AliMUONAlignmentTask &other) |
asignment operator, not implemented More... | |
Private Attributes | |
AliMUONAlignment * | fAlign |
The MUON alignment object. More... | |
TString | fDefaultStorage |
location of the default OCDB storage More... | |
TString | fOldAlignStorage |
location of the OCDB storage where to find old MUON/Align/Data (use the default one if empty) More... | |
TString | fNewAlignStorage |
location of the OCDB storage where to put new MUON/Align/Data (use the default one if empty) More... | |
AliMUONGeometryTransformer * | fOldGeoTransformer |
geometry transformer used to recontruct the present data More... | |
AliMUONGeometryTransformer * | fNewGeoTransformer |
new geometry transformer containing the new alignment to be applied More... | |
Bool_t | fLoadOCDBOnce |
set to true if not willing to re-initialize OCDB at every new run More... | |
Bool_t | fOCDBLoaded |
set to true when OCDB was loaded at least once More... | |
Int_t | fEvent |
event number (internal counter) More... | |
Int_t | fTrackTot |
Total number of track read. More... | |
Int_t | fTrackOk |
Number of tracks used for alignment. More... | |
Int_t | fRunNumberMin |
run range More... | |
Int_t | fRunNumberMax |
Double_t | fParameters [AliMUONAlignment::fNGlobal] |
Array of alignment parameters. More... | |
Double_t | fErrors [AliMUONAlignment::fNGlobal] |
Array of alignment parameters errors. More... | |
Double_t | fPulls [AliMUONAlignment::fNGlobal] |
Array of alignment parameters pulls. More... | |
TClonesArray * | fRecords |
list of track records More... | |
Int_t | fRecordCount |
number of records More... | |
flags | |
Bool_t | fReadRecords |
perform alignment from alignment records is true. Use ESD tracks otherwise More... | |
Bool_t | fWriteRecords |
write alignment records to AOD if true More... | |
Bool_t | fDoAlignment |
perform alignment (from either tracks or records depending on fReadRecords) More... | |
Bool_t | fMergeAlignmentCDBs |
merge old and new Align CDBs into the new one. More... | |
Bool_t | fForceBField |
true if magnetic field was forced to value, instead of reading from GRP More... | |
Bool_t | fBFieldOn |
Flag for Magnetic field On/Off. More... | |
void | SetReadRecords (Bool_t value=kTRUE) |
perform alignment from alignment records is true. Use ESD tracks otherwise More... | |
void | SetWriteRecords (Bool_t value=kTRUE) |
write alignment records to AOD if true More... | |
void | SetDoAlignment (Bool_t value) |
perform alignment (from either tracks or records depending on fReadRecords) More... | |
void | SetMergeAlignmentCDBs (Bool_t value) |
merge old and new Align CDBs into the new one. More... | |
void | SetBFieldOn (Bool_t value) |
field on alignment More... | |
void | SetRunRange (Int_t runNumberMin, Int_t runNumberMax) |
run range More... | |
Task to align the muon spectrometer.
AliAnalysisTask to align the MUON spectrometer. The Task reads as input ESDs and feeds the MUONTracks to AliMUONAlignment. The alignment itself is performed by AliMillePede2. A OCDB entry is written with the alignment parameters.
Definition at line 22 of file AliMUONAlignmentTask.h.
AliMUONAlignmentTask::AliMUONAlignmentTask | ( | const char * | name = "AliMUONAlignmentTask" | ) |
|
virtual |
|
private |
copy constructor, not implemented
|
inline |
get pointer to alignment class
Definition at line 34 of file AliMUONAlignmentTask.h.
|
virtual |
end of task execution
Called once per task on the client machine at the end of the analysis.
Definition at line 381 of file AliMUONAlignmentTask.cxx.
|
virtual |
Local initialization, called once per task on the client machine where the analysis train is assembled
Definition at line 139 of file AliMUONAlignmentTask.cxx.
|
virtual |
run number (re)initialization
Definition at line 465 of file AliMUONAlignmentTask.cxx.
|
private |
asignment operator, not implemented
|
protected |
store misalignment matrices from OCDB into geometry transformer
Definition at line 614 of file AliMUONAlignmentTask.cxx.
Referenced by FinishTaskOutput().
|
inline |
field on alignment
Definition at line 59 of file AliMUONAlignmentTask.h.
|
inline |
Set default ocdb.
Definition at line 89 of file AliMUONAlignmentTask.h.
|
inline |
perform alignment (from either tracks or records depending on fReadRecords)
Definition at line 51 of file AliMUONAlignmentTask.h.
Referenced by AddTaskMuonAlignment(), and LocalInit().
|
inline |
Flag to set OCDB once at first run notify.
Definition at line 101 of file AliMUONAlignmentTask.h.
Referenced by AddTaskMuonAlignment().
|
inline |
merge old and new Align CDBs into the new one.
Definition at line 55 of file AliMUONAlignmentTask.h.
Referenced by AddTaskMuonAlignment().
|
inline |
Set new (realigned) alignment path for ocdb.
Definition at line 97 of file AliMUONAlignmentTask.h.
Referenced by AddTaskMuonAlignment().
|
inline |
Set old (misaligned) alignment path for ocdb.
Definition at line 93 of file AliMUONAlignmentTask.h.
Referenced by AddTaskMuonAlignment().
|
inline |
perform alignment from alignment records is true. Use ESD tracks otherwise
Definition at line 43 of file AliMUONAlignmentTask.h.
Referenced by AddTaskMuonAlignment().
|
inline |
run range
Definition at line 66 of file AliMUONAlignmentTask.h.
|
inline |
write alignment records to AOD if true
Definition at line 47 of file AliMUONAlignmentTask.h.
Referenced by AddTaskMuonAlignment().
|
inlinevirtual |
termination cleanup
Definition at line 82 of file AliMUONAlignmentTask.h.
|
virtual |
output data
Definition at line 228 of file AliMUONAlignmentTask.cxx.
|
virtual |
per-event method
Main loop, called for each event
Definition at line 252 of file AliMUONAlignmentTask.cxx.
|
private |
The MUON alignment object.
Definition at line 141 of file AliMUONAlignmentTask.h.
Referenced by alignment(), FinishTaskOutput(), LocalInit(), NotifyRun(), UserExec(), and ~AliMUONAlignmentTask().
|
private |
Flag for Magnetic field On/Off.
Definition at line 136 of file AliMUONAlignmentTask.h.
Referenced by LocalInit(), NotifyRun(), and SetBFieldOn().
|
private |
location of the default OCDB storage
Definition at line 144 of file AliMUONAlignmentTask.h.
Referenced by LocalInit(), NotifyRun(), and SetDefaultStorage().
|
private |
perform alignment (from either tracks or records depending on fReadRecords)
Definition at line 127 of file AliMUONAlignmentTask.h.
Referenced by FinishTaskOutput(), LocalInit(), SetDoAlignment(), and UserExec().
|
private |
Array of alignment parameters errors.
Definition at line 181 of file AliMUONAlignmentTask.h.
Referenced by FinishTaskOutput().
|
private |
event number (internal counter)
Definition at line 165 of file AliMUONAlignmentTask.h.
Referenced by UserExec().
|
private |
true if magnetic field was forced to value, instead of reading from GRP
Definition at line 133 of file AliMUONAlignmentTask.h.
Referenced by LocalInit(), NotifyRun(), and SetBFieldOn().
|
private |
set to true if not willing to re-initialize OCDB at every new run
Definition at line 159 of file AliMUONAlignmentTask.h.
Referenced by NotifyRun(), and SetLoadOCDBOnce().
|
private |
merge old and new Align CDBs into the new one.
Definition at line 130 of file AliMUONAlignmentTask.h.
Referenced by FinishTaskOutput(), LocalInit(), and SetMergeAlignmentCDBs().
|
private |
location of the OCDB storage where to put new MUON/Align/Data (use the default one if empty)
Definition at line 150 of file AliMUONAlignmentTask.h.
Referenced by FinishTaskOutput(), LocalInit(), and SetNewAlignStorage().
|
private |
new geometry transformer containing the new alignment to be applied
Definition at line 156 of file AliMUONAlignmentTask.h.
Referenced by FinishTaskOutput(), and ~AliMUONAlignmentTask().
|
private |
set to true when OCDB was loaded at least once
Definition at line 162 of file AliMUONAlignmentTask.h.
Referenced by NotifyRun().
|
private |
location of the OCDB storage where to find old MUON/Align/Data (use the default one if empty)
Definition at line 147 of file AliMUONAlignmentTask.h.
Referenced by LocalInit(), NotifyRun(), and SetOldAlignStorage().
|
private |
geometry transformer used to recontruct the present data
Definition at line 153 of file AliMUONAlignmentTask.h.
Referenced by FinishTaskOutput(), NotifyRun(), and ~AliMUONAlignmentTask().
|
private |
Array of alignment parameters.
Definition at line 178 of file AliMUONAlignmentTask.h.
Referenced by FinishTaskOutput(), and LocalInit().
|
private |
Array of alignment parameters pulls.
Definition at line 184 of file AliMUONAlignmentTask.h.
Referenced by FinishTaskOutput().
|
private |
perform alignment from alignment records is true. Use ESD tracks otherwise
Definition at line 121 of file AliMUONAlignmentTask.h.
Referenced by LocalInit(), NotifyRun(), SetReadRecords(), and UserExec().
|
private |
number of records
Definition at line 190 of file AliMUONAlignmentTask.h.
Referenced by UserCreateOutputObjects(), and UserExec().
|
private |
list of track records
Definition at line 187 of file AliMUONAlignmentTask.h.
Referenced by UserCreateOutputObjects(), and UserExec().
|
private |
Definition at line 175 of file AliMUONAlignmentTask.h.
Referenced by LocalInit(), SetRunRange(), and UserExec().
|
private |
run range
Definition at line 174 of file AliMUONAlignmentTask.h.
Referenced by LocalInit(), SetRunRange(), and UserExec().
|
private |
Number of tracks used for alignment.
Definition at line 171 of file AliMUONAlignmentTask.h.
Referenced by FinishTaskOutput(), and UserExec().
|
private |
Total number of track read.
Definition at line 168 of file AliMUONAlignmentTask.h.
Referenced by FinishTaskOutput(), and UserExec().
|
private |
write alignment records to AOD if true
Definition at line 124 of file AliMUONAlignmentTask.h.
Referenced by LocalInit(), SetWriteRecords(), UserCreateOutputObjects(), and UserExec().