AliRoot Core  edcc906 (edcc906)
AliMUONAlignmentTask Class Reference

Task to align the muon spectrometer. More...

#include <AliMUONAlignmentTask.h>

Inheritance diagram for AliMUONAlignmentTask:

Public Member Functions

 AliMUONAlignmentTask (const char *name="AliMUONAlignmentTask")
 constructor More...
 
virtual ~AliMUONAlignmentTask ()
 destructor More...
 
AliMUONAlignmentalignment (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...
 
AliMUONAlignmentTaskoperator= (const AliMUONAlignmentTask &other)
 asignment operator, not implemented More...
 

Private Attributes

Double_t fMinPt
 track momentum cut More...
 
Double_t fMinPyPz
 track momentum cut More...
 
Int_t fMinStations
 track min number of stations More...
 
AliMUONAlignmentfAlign
 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...
 
AliMUONGeometryTransformerfOldGeoTransformer
 geometry transformer used to recontruct the present data More...
 
AliMUONGeometryTransformerfNewGeoTransformer
 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 fRecordsTot
 Number of records (should match fTrackOk) 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 * fTrackParams
 list of track parameters 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...
 
Bool_t fRefitStraightTracks
 Flag for refitting straight tracks. More...
 
Bool_t fDoEvaluation
 Flag for running refit evaluation. 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 SetRefitStraightTracks (Bool_t value)
 refit straight tracks More...
 
void SetDoEvaluation (Bool_t value)
 do evaluation More...
 
void SetMinPt (Double_t value)
 min Pt More...
 
void SetMinPyPz (Double_t value)
 min PyPz More...
 
void SetMinStations (Int_t value)
 min number of stations More...
 
void SetRunRange (Int_t runNumberMin, Int_t runNumberMax)
 run range More...
 

Detailed Description

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.

Author
Javier Castillo, CEA/Saclay - Irfu/SPhN
Hugo Pereira Da Costa, CEA/Saclay - Irfu/SPhN
Javier Castillo, CEA/Saclay - Irfu/SPhN
Hugo Pereira Da Costa, CEA/Saclay - Irfu/SPhN

Definition at line 60 of file AliMUONAlignmentTask.h.

Constructor & Destructor Documentation

AliMUONAlignmentTask::AliMUONAlignmentTask ( const char *  name = "AliMUONAlignmentTask")

constructor

Default Constructor

Definition at line 115 of file AliMUONAlignmentTask.cxx.

AliMUONAlignmentTask::~AliMUONAlignmentTask ( )
virtual

destructor

destructor

Definition at line 168 of file AliMUONAlignmentTask.cxx.

AliMUONAlignmentTask::AliMUONAlignmentTask ( const AliMUONAlignmentTask obj)
private

copy constructor, not implemented

Member Function Documentation

AliMUONAlignment* AliMUONAlignmentTask::alignment ( void  ) const
inline

get pointer to alignment class

Definition at line 72 of file AliMUONAlignmentTask.h.

void AliMUONAlignmentTask::FinishTaskOutput ( )
virtual

end of task execution

Called once per task on the client machine at the end of the analysis.

Definition at line 523 of file AliMUONAlignmentTask.cxx.

void AliMUONAlignmentTask::LocalInit ( )
virtual

Local initialization, called once per task on the client machine where the analysis train is assembled

Definition at line 177 of file AliMUONAlignmentTask.cxx.

void AliMUONAlignmentTask::NotifyRun ( )
virtual

run number (re)initialization

Definition at line 585 of file AliMUONAlignmentTask.cxx.

AliMUONAlignmentTask& AliMUONAlignmentTask::operator= ( const AliMUONAlignmentTask other)
private

asignment operator, not implemented

void AliMUONAlignmentTask::SaveMisAlignmentData ( AliMUONGeometryTransformer transformer) const
protected

store misalignment matrices from OCDB into geometry transformer

Definition at line 729 of file AliMUONAlignmentTask.cxx.

Referenced by FinishTaskOutput().

void AliMUONAlignmentTask::SetBFieldOn ( Bool_t  value)
inline

field on alignment

Definition at line 97 of file AliMUONAlignmentTask.h.

void AliMUONAlignmentTask::SetDefaultStorage ( TString  defaultOCDB)
inline

Set default ocdb.

Definition at line 150 of file AliMUONAlignmentTask.h.

void AliMUONAlignmentTask::SetDoAlignment ( Bool_t  value)
inline

perform alignment (from either tracks or records depending on fReadRecords)

Definition at line 89 of file AliMUONAlignmentTask.h.

Referenced by AddTaskMuonAlignment(), and LocalInit().

void AliMUONAlignmentTask::SetDoEvaluation ( Bool_t  value)
inline

do evaluation

Definition at line 108 of file AliMUONAlignmentTask.h.

void AliMUONAlignmentTask::SetLoadOCDBOnce ( Bool_t  loadOCDBOnce = kTRUE)
inline

Flag to set OCDB once at first run notify.

Definition at line 162 of file AliMUONAlignmentTask.h.

Referenced by AddTaskMuonAlignment().

void AliMUONAlignmentTask::SetMergeAlignmentCDBs ( Bool_t  value)
inline

merge old and new Align CDBs into the new one.

Definition at line 93 of file AliMUONAlignmentTask.h.

Referenced by AddTaskMuonAlignment().

void AliMUONAlignmentTask::SetMinPt ( Double_t  value)
inline

min Pt

Definition at line 112 of file AliMUONAlignmentTask.h.

void AliMUONAlignmentTask::SetMinPyPz ( Double_t  value)
inline

min PyPz

Definition at line 119 of file AliMUONAlignmentTask.h.

void AliMUONAlignmentTask::SetMinStations ( Int_t  value)
inline

min number of stations

Definition at line 123 of file AliMUONAlignmentTask.h.

void AliMUONAlignmentTask::SetNewAlignStorage ( TString  newalignOCDB)
inline

Set new (realigned) alignment path for ocdb.

Definition at line 158 of file AliMUONAlignmentTask.h.

Referenced by AddTaskMuonAlignment().

void AliMUONAlignmentTask::SetOldAlignStorage ( TString  oldalignOCDB)
inline

Set old (misaligned) alignment path for ocdb.

Definition at line 154 of file AliMUONAlignmentTask.h.

Referenced by AddTaskMuonAlignment().

void AliMUONAlignmentTask::SetReadRecords ( Bool_t  value = kTRUE)
inline

perform alignment from alignment records is true. Use ESD tracks otherwise

Definition at line 81 of file AliMUONAlignmentTask.h.

Referenced by AddTaskMuonAlignment().

void AliMUONAlignmentTask::SetRefitStraightTracks ( Bool_t  value)
inline

refit straight tracks

Definition at line 104 of file AliMUONAlignmentTask.h.

void AliMUONAlignmentTask::SetRunRange ( Int_t  runNumberMin,
Int_t  runNumberMax 
)
inline

run range

Definition at line 127 of file AliMUONAlignmentTask.h.

void AliMUONAlignmentTask::SetWriteRecords ( Bool_t  value = kTRUE)
inline

write alignment records to AOD if true

Definition at line 85 of file AliMUONAlignmentTask.h.

Referenced by AddTaskMuonAlignment().

virtual void AliMUONAlignmentTask::Terminate ( const Option_t *  )
inlinevirtual

termination cleanup

Definition at line 143 of file AliMUONAlignmentTask.h.

void AliMUONAlignmentTask::UserCreateOutputObjects ( )
virtual

output data

Definition at line 295 of file AliMUONAlignmentTask.cxx.

void AliMUONAlignmentTask::UserExec ( Option_t *  )
virtual

per-event method

Main loop, called for each event

Definition at line 325 of file AliMUONAlignmentTask.cxx.

Member Data Documentation

AliMUONAlignment* AliMUONAlignmentTask::fAlign
private

The MUON alignment object.

Definition at line 217 of file AliMUONAlignmentTask.h.

Referenced by AliMUONAlignmentTask(), FinishTaskOutput(), LocalInit(), NotifyRun(), UserExec(), and ~AliMUONAlignmentTask().

Bool_t AliMUONAlignmentTask::fBFieldOn
private

Flag for Magnetic field On/Off.

Definition at line 197 of file AliMUONAlignmentTask.h.

Referenced by LocalInit(), and NotifyRun().

TString AliMUONAlignmentTask::fDefaultStorage
private

location of the default OCDB storage

Definition at line 220 of file AliMUONAlignmentTask.h.

Referenced by LocalInit(), and NotifyRun().

Bool_t AliMUONAlignmentTask::fDoAlignment
private

perform alignment (from either tracks or records depending on fReadRecords)

Definition at line 188 of file AliMUONAlignmentTask.h.

Referenced by FinishTaskOutput(), LocalInit(), and UserExec().

Bool_t AliMUONAlignmentTask::fDoEvaluation
private

Flag for running refit evaluation.

Definition at line 203 of file AliMUONAlignmentTask.h.

Referenced by LocalInit().

Double_t AliMUONAlignmentTask::fErrors[AliMUONAlignment::fNGlobal]
private

Array of alignment parameters errors.

Definition at line 260 of file AliMUONAlignmentTask.h.

Referenced by AliMUONAlignmentTask(), and FinishTaskOutput().

Int_t AliMUONAlignmentTask::fEvent
private

event number (internal counter)

Definition at line 241 of file AliMUONAlignmentTask.h.

Referenced by UserExec().

Bool_t AliMUONAlignmentTask::fForceBField
private

true if magnetic field was forced to value, instead of reading from GRP

Definition at line 194 of file AliMUONAlignmentTask.h.

Referenced by LocalInit(), and NotifyRun().

Bool_t AliMUONAlignmentTask::fLoadOCDBOnce
private

set to true if not willing to re-initialize OCDB at every new run

Definition at line 235 of file AliMUONAlignmentTask.h.

Referenced by NotifyRun().

Bool_t AliMUONAlignmentTask::fMergeAlignmentCDBs
private

merge old and new Align CDBs into the new one.

Definition at line 191 of file AliMUONAlignmentTask.h.

Referenced by FinishTaskOutput(), and LocalInit().

Double_t AliMUONAlignmentTask::fMinPt
private

track momentum cut

Definition at line 208 of file AliMUONAlignmentTask.h.

Referenced by LocalInit(), and UserExec().

Double_t AliMUONAlignmentTask::fMinPyPz
private

track momentum cut

Definition at line 211 of file AliMUONAlignmentTask.h.

Referenced by LocalInit(), and UserExec().

Int_t AliMUONAlignmentTask::fMinStations
private

track min number of stations

Definition at line 214 of file AliMUONAlignmentTask.h.

Referenced by LocalInit(), and UserExec().

TString AliMUONAlignmentTask::fNewAlignStorage
private

location of the OCDB storage where to put new MUON/Align/Data (use the default one if empty)

Definition at line 226 of file AliMUONAlignmentTask.h.

Referenced by FinishTaskOutput(), and LocalInit().

AliMUONGeometryTransformer* AliMUONAlignmentTask::fNewGeoTransformer
private

new geometry transformer containing the new alignment to be applied

Definition at line 232 of file AliMUONAlignmentTask.h.

Referenced by FinishTaskOutput(), and ~AliMUONAlignmentTask().

Bool_t AliMUONAlignmentTask::fOCDBLoaded
private

set to true when OCDB was loaded at least once

Definition at line 238 of file AliMUONAlignmentTask.h.

Referenced by NotifyRun().

TString AliMUONAlignmentTask::fOldAlignStorage
private

location of the OCDB storage where to find old MUON/Align/Data (use the default one if empty)

Definition at line 223 of file AliMUONAlignmentTask.h.

Referenced by LocalInit(), and NotifyRun().

AliMUONGeometryTransformer* AliMUONAlignmentTask::fOldGeoTransformer
private

geometry transformer used to recontruct the present data

Definition at line 229 of file AliMUONAlignmentTask.h.

Referenced by AliMUONAlignmentTask(), FinishTaskOutput(), NotifyRun(), and ~AliMUONAlignmentTask().

Double_t AliMUONAlignmentTask::fParameters[AliMUONAlignment::fNGlobal]
private

Array of alignment parameters.

Definition at line 257 of file AliMUONAlignmentTask.h.

Referenced by AliMUONAlignmentTask(), FinishTaskOutput(), and LocalInit().

Double_t AliMUONAlignmentTask::fPulls[AliMUONAlignment::fNGlobal]
private

Array of alignment parameters pulls.

Definition at line 263 of file AliMUONAlignmentTask.h.

Referenced by AliMUONAlignmentTask(), and FinishTaskOutput().

Bool_t AliMUONAlignmentTask::fReadRecords
private

perform alignment from alignment records is true. Use ESD tracks otherwise

Definition at line 182 of file AliMUONAlignmentTask.h.

Referenced by LocalInit(), NotifyRun(), and UserExec().

Int_t AliMUONAlignmentTask::fRecordCount
private

number of records

Definition at line 272 of file AliMUONAlignmentTask.h.

Referenced by UserCreateOutputObjects(), and UserExec().

TClonesArray* AliMUONAlignmentTask::fRecords
private

list of track records

Definition at line 269 of file AliMUONAlignmentTask.h.

Referenced by UserCreateOutputObjects(), and UserExec().

Int_t AliMUONAlignmentTask::fRecordsTot
private

Number of records (should match fTrackOk)

Definition at line 250 of file AliMUONAlignmentTask.h.

Referenced by UserExec().

Bool_t AliMUONAlignmentTask::fRefitStraightTracks
private

Flag for refitting straight tracks.

Definition at line 200 of file AliMUONAlignmentTask.h.

Referenced by LocalInit().

Int_t AliMUONAlignmentTask::fRunNumberMax
private

Definition at line 254 of file AliMUONAlignmentTask.h.

Referenced by FinishTaskOutput(), LocalInit(), and UserExec().

Int_t AliMUONAlignmentTask::fRunNumberMin
private

run range

Definition at line 253 of file AliMUONAlignmentTask.h.

Referenced by FinishTaskOutput(), LocalInit(), and UserExec().

Int_t AliMUONAlignmentTask::fTrackOk
private

Number of tracks used for alignment.

Definition at line 247 of file AliMUONAlignmentTask.h.

Referenced by FinishTaskOutput(), and UserExec().

TClonesArray* AliMUONAlignmentTask::fTrackParams
private

list of track parameters

Definition at line 266 of file AliMUONAlignmentTask.h.

Referenced by UserCreateOutputObjects(), and UserExec().

Int_t AliMUONAlignmentTask::fTrackTot
private

Total number of track read.

Definition at line 244 of file AliMUONAlignmentTask.h.

Referenced by FinishTaskOutput(), and UserExec().

Bool_t AliMUONAlignmentTask::fWriteRecords
private

write alignment records to AOD if true

Definition at line 185 of file AliMUONAlignmentTask.h.

Referenced by LocalInit(), UserCreateOutputObjects(), and UserExec().


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