![]() |
AliRoot Core
ee782a0 (ee782a0)
|
Implementation of VTrackerDataMaker to read raw data. More...
#include <AliMUONTrackerDataMaker.h>
Public Member Functions | |
AliMUONTrackerDataMaker (TRootIOCtor *) | |
AliMUONTrackerDataMaker (const AliMUONRecoParam *recoParam, Int_t runNumber, AliRawReader *rawReader, const char *cdbPath, const char *calibMode, Bool_t histogram=kFALSE, Double_t xmin=0.0, Double_t xmax=4095.0) | |
AliMUONTrackerDataMaker (const AliMUONRecoParam *recoParam, AliRawReader *rawReader, const char *cdbPath, const char *calibMode, Bool_t histogram=kFALSE, Double_t xmin=0.0, Double_t xmax=4095.0) | |
AliMUONTrackerDataMaker (AliRawReader *rawReader, Bool_t histogram=kFALSE) | |
virtual | ~AliMUONTrackerDataMaker () |
Bool_t | Add (const AliMUONTrackerDataMaker &other) |
Bool_t | IsValid () const |
Whether we have a valid reader or not. More... | |
AliMUONVTrackerData * | Data () const |
Get our accumulated data. More... | |
void | SetOwnerOfData (Bool_t flag) |
Whether or not we're the owner of our fAccumulatedData. More... | |
Bool_t | IsEventByEvent () const |
Whether we're only handling event-by-event data (i.e. no accumulation) More... | |
void | SetEventByEvent (Bool_t flag) |
Set event-by-event mode. More... | |
Bool_t | IsRunnable () const |
We can run if we have a reader. More... | |
Bool_t | IsRunning () const |
Whether we are running or not. More... | |
void | SetRunning (Bool_t flag) |
Set the runnning status. More... | |
Bool_t | ProcessEvent () |
Process current event. More... | |
Bool_t | NextEvent () |
Advance to next event and process it (no effect if not runnable) More... | |
void | Print (Option_t *opt="") const |
void | Rewind () |
Rewind events (no effect if not runnable) More... | |
TString | Source () const |
Get our source URI. More... | |
void | SetSource (const char *source) |
Set our source URI. More... | |
Int_t | NumberOfEvents () const |
Number of events seen. More... | |
Int_t | NumberOfPhysicsEvents () const |
Number of physics events seen. More... | |
Int_t | NumberOfGoodPhysicsEvents () const |
Number of good physics events seen. More... | |
Long64_t | Merge (TCollection *li) |
Merge. More... | |
void | SetRawReader (AliRawReader *rawReader) |
void | EnableErrorLogger (AliMUONLogger *logger) |
Set the error logger. More... | |
Bool_t | LastEventWasEmpty () const |
Whether last decoded event was empty. More... | |
void | SetTryRecover (Bool_t flag) |
Whether or not we should try to recover corrupted raw data. More... | |
void | SetEventRange (Int_t first, Int_t last) |
Set the event range to consider. More... | |
![]() | |
AliMUONVTrackerDataMaker () | |
virtual | ~AliMUONVTrackerDataMaker () |
Private Member Functions | |
AliMUONTrackerDataMaker (const AliMUONTrackerDataMaker &rhs) | |
not implemented More... | |
AliMUONTrackerDataMaker & | operator= (const AliMUONTrackerDataMaker &rhs) |
not implemented More... | |
void | Ctor (const AliMUONRecoParam *param, Int_t runNumber, const char *calibMode, Bool_t histogram, Double_t xmin=0.0, Double_t xmax=4095.0) |
Private Attributes | |
AliRawReader * | fRawReader |
! reader of the data (owner or not) More... | |
AliMUONVTrackerData * | fAccumulatedData |
data (owner or not) More... | |
Bool_t | fIsOwnerOfAccumulatedData |
owner or not of fAccumulatedData More... | |
AliMUONVStore * | fOneEventData |
data for a single event (owner) More... | |
AliMUONDigitCalibrator * | fDigitCalibrator |
! digit calibrator (if calibrating) More... | |
AliMUONCalibrationData * | fCalibrationData |
calibration data (if calibrating) More... | |
TString | fSource |
where the data comes from More... | |
TString | fOCDBPath |
OCDB path (if calibrating) More... | |
Int_t | fNumberOfEvents |
number of events seen More... | |
Int_t | fRunNumber |
run number of the data More... | |
Bool_t | fIsRunning |
whether we are running or not More... | |
Bool_t | fIsOwnerOfRawReader |
whether we must delete rawReader or not More... | |
Bool_t | fIsEventByEvent |
we only keep one event's data (no accumulation) More... | |
AliMUONLogger * | fLogger |
error logger (not owner) More... | |
Bool_t | fLastEventWasEmpty |
whether last decoded event was empty More... | |
Int_t | fNumberOfPhysicsEvents |
number of physics events seen More... | |
Int_t | fNumberOfGoodPhysicsEvents |
number of errors with no (fatal) readout error More... | |
Bool_t | fTryRecover |
whether we should try to recover corrupted raw data More... | |
Int_t | fFirstEvent |
first event to consider More... | |
Int_t | fLastEvent |
last event to consider More... | |
Static Private Attributes | |
static Int_t | fgkCounter |
to count the number of instances More... | |
Implementation of VTrackerDataMaker to read raw data.
Implementation of VTrackerDataMaker to read raw data and calibrate it (if required)
Definition at line 30 of file AliMUONTrackerDataMaker.h.
AliMUONTrackerDataMaker::AliMUONTrackerDataMaker | ( | TRootIOCtor * | ) |
Root IO ctor
Definition at line 53 of file AliMUONTrackerDataMaker.cxx.
Referenced by SetEventRange().
AliMUONTrackerDataMaker::AliMUONTrackerDataMaker | ( | const AliMUONRecoParam * | recoParam, |
Int_t | runNumber, | ||
AliRawReader * | rawReader, | ||
const char * | cdbPath, | ||
const char * | calibMode, | ||
Bool_t | histogram = kFALSE , |
||
Double_t | xmin = 0.0 , |
||
Double_t | xmax = 4095.0 |
||
) |
Ctor in which this object will NOT be the owner of the reader and can NOT apply rewind to it, nor use Next on it.
Definition at line 81 of file AliMUONTrackerDataMaker.cxx.
AliMUONTrackerDataMaker::AliMUONTrackerDataMaker | ( | const AliMUONRecoParam * | recoParam, |
AliRawReader * | rawReader, | ||
const char * | cdbPath, | ||
const char * | calibMode, | ||
Bool_t | histogram = kFALSE , |
||
Double_t | xmin = 0.0 , |
||
Double_t | xmax = 4095.0 |
||
) |
Ctor in which we take the ownership of the rawReader, so we can rewind and advance it as we wish
Definition at line 119 of file AliMUONTrackerDataMaker.cxx.
AliMUONTrackerDataMaker::AliMUONTrackerDataMaker | ( | AliRawReader * | rawReader, |
Bool_t | histogram = kFALSE |
||
) |
Ctor from raw data reader
Definition at line 162 of file AliMUONTrackerDataMaker.cxx.
|
virtual |
dtor
Definition at line 277 of file AliMUONTrackerDataMaker.cxx.
|
private |
not implemented
Bool_t AliMUONTrackerDataMaker::Add | ( | const AliMUONTrackerDataMaker & | other | ) |
Adds other to this
Definition at line 290 of file AliMUONTrackerDataMaker.cxx.
Referenced by Merge().
|
private |
"designated constructor"
Definition at line 199 of file AliMUONTrackerDataMaker.cxx.
Referenced by AliMUONTrackerDataMaker(), and SetEventRange().
|
inlinevirtual |
Get our accumulated data.
Implements AliMUONVTrackerDataMaker.
Definition at line 62 of file AliMUONTrackerDataMaker.h.
Referenced by AliMUONTrackerQADataMakerRec::TrackerDataMaker().
|
inline |
Set the error logger.
Definition at line 110 of file AliMUONTrackerDataMaker.h.
Referenced by AliMUONTrackerQADataMakerRec::TrackerDataMaker().
|
inlinevirtual |
Whether we're only handling event-by-event data (i.e. no accumulation)
Reimplemented from AliMUONVTrackerDataMaker.
Definition at line 68 of file AliMUONTrackerDataMaker.h.
|
inlinevirtual |
We can run if we have a reader.
Implements AliMUONVTrackerDataMaker.
Definition at line 74 of file AliMUONTrackerDataMaker.h.
|
inlinevirtual |
Whether we are running or not.
Implements AliMUONVTrackerDataMaker.
Definition at line 77 of file AliMUONTrackerDataMaker.h.
Referenced by NextEvent(), and Print().
|
inlinevirtual |
Whether we have a valid reader or not.
Implements AliMUONVTrackerDataMaker.
Definition at line 59 of file AliMUONTrackerDataMaker.h.
Referenced by IsRunnable().
|
inline |
Whether last decoded event was empty.
Definition at line 113 of file AliMUONTrackerDataMaker.h.
Referenced by AliMUONTrackerQADataMakerRec::MakeRaws().
|
virtual |
Merge.
Merge objects in collection
Implements AliMUONVTrackerDataMaker.
Definition at line 518 of file AliMUONTrackerDataMaker.cxx.
Referenced by NumberOfGoodPhysicsEvents().
|
virtual |
Advance to next event and process it (no effect if not runnable)
Read and process next event
Reimplemented from AliMUONVTrackerDataMaker.
Definition at line 321 of file AliMUONTrackerDataMaker.cxx.
Referenced by SetRunning().
|
inlinevirtual |
Number of events seen.
Implements AliMUONVTrackerDataMaker.
Definition at line 97 of file AliMUONTrackerDataMaker.h.
Referenced by Merge().
|
inline |
Number of good physics events seen.
Definition at line 103 of file AliMUONTrackerDataMaker.h.
|
inline |
Number of physics events seen.
Definition at line 100 of file AliMUONTrackerDataMaker.h.
|
private |
not implemented
Referenced by SetEventRange().
void AliMUONTrackerDataMaker::Print | ( | Option_t * | opt = "" | ) | const |
|
virtual |
Process current event.
Process current event
Note that in case of calibration, we do not simply reuse the AliMUONDigitCalibrator::Calibrate(AliMUONVDigitStore&) method, as this would require filling first a digitStore, and then calibrate it, and then convert it into a VStore, all this taking too much time. But we do reuse the AliMUONDigitCalibrator::CalibrateDigit in order not to duplicate this critical piece of calibration code !
Implements AliMUONVTrackerDataMaker.
Definition at line 373 of file AliMUONTrackerDataMaker.cxx.
Referenced by AliMUONTrackerQADataMakerRec::MakeRaws(), NextEvent(), and SetRunning().
|
virtual |
Rewind events (no effect if not runnable)
Rewind events
Implements AliMUONVTrackerDataMaker.
Definition at line 501 of file AliMUONTrackerDataMaker.cxx.
Referenced by SetRunning().
|
inlinevirtual |
Set event-by-event mode.
Reimplemented from AliMUONVTrackerDataMaker.
Definition at line 71 of file AliMUONTrackerDataMaker.h.
|
inlinevirtual |
Set the event range to consider.
Reimplemented from AliMUONVTrackerDataMaker.
Definition at line 119 of file AliMUONTrackerDataMaker.h.
|
inlinevirtual |
Whether or not we're the owner of our fAccumulatedData.
Reimplemented from AliMUONVTrackerDataMaker.
Definition at line 65 of file AliMUONTrackerDataMaker.h.
void AliMUONTrackerDataMaker::SetRawReader | ( | AliRawReader * | rawReader | ) |
Change the rawreader (only works if isowner=true)
Definition at line 552 of file AliMUONTrackerDataMaker.cxx.
Referenced by AliMUONTrackerQADataMakerRec::MakeRaws(), and NumberOfGoodPhysicsEvents().
|
inlinevirtual |
Set the runnning status.
Implements AliMUONVTrackerDataMaker.
Definition at line 80 of file AliMUONTrackerDataMaker.h.
Referenced by AliMUONTrackerQADataMakerRec::TrackerDataMaker().
|
inlinevirtual |
Set our source URI.
Implements AliMUONVTrackerDataMaker.
Definition at line 94 of file AliMUONTrackerDataMaker.h.
|
inline |
Whether or not we should try to recover corrupted raw data.
Definition at line 116 of file AliMUONTrackerDataMaker.h.
|
inlinevirtual |
Get our source URI.
Implements AliMUONVTrackerDataMaker.
Definition at line 91 of file AliMUONTrackerDataMaker.h.
Referenced by Print().
|
private |
data (owner or not)
Definition at line 136 of file AliMUONTrackerDataMaker.h.
Referenced by Add(), Ctor(), Data(), ProcessEvent(), and ~AliMUONTrackerDataMaker().
|
private |
calibration data (if calibrating)
Definition at line 140 of file AliMUONTrackerDataMaker.h.
Referenced by Ctor(), and ~AliMUONTrackerDataMaker().
|
private |
! digit calibrator (if calibrating)
Definition at line 139 of file AliMUONTrackerDataMaker.h.
Referenced by Ctor(), ProcessEvent(), and ~AliMUONTrackerDataMaker().
|
private |
first event to consider
Definition at line 154 of file AliMUONTrackerDataMaker.h.
Referenced by NextEvent(), and SetEventRange().
|
staticprivate |
to count the number of instances
Definition at line 148 of file AliMUONTrackerDataMaker.h.
Referenced by Ctor().
|
private |
we only keep one event's data (no accumulation)
Definition at line 147 of file AliMUONTrackerDataMaker.h.
Referenced by Add(), IsEventByEvent(), and SetEventByEvent().
|
private |
owner or not of fAccumulatedData
Definition at line 137 of file AliMUONTrackerDataMaker.h.
Referenced by SetOwnerOfData(), and ~AliMUONTrackerDataMaker().
|
private |
whether we must delete rawReader or not
Definition at line 146 of file AliMUONTrackerDataMaker.h.
Referenced by NextEvent(), Rewind(), SetRawReader(), and ~AliMUONTrackerDataMaker().
|
private |
whether we are running or not
Definition at line 145 of file AliMUONTrackerDataMaker.h.
Referenced by IsRunning(), and SetRunning().
|
private |
last event to consider
Definition at line 155 of file AliMUONTrackerDataMaker.h.
Referenced by NextEvent(), and SetEventRange().
|
private |
whether last decoded event was empty
Definition at line 150 of file AliMUONTrackerDataMaker.h.
Referenced by LastEventWasEmpty(), and ProcessEvent().
|
private |
error logger (not owner)
Definition at line 149 of file AliMUONTrackerDataMaker.h.
Referenced by EnableErrorLogger(), and ProcessEvent().
|
private |
number of events seen
Definition at line 143 of file AliMUONTrackerDataMaker.h.
Referenced by Add(), NextEvent(), NumberOfEvents(), ProcessEvent(), and Rewind().
|
private |
number of errors with no (fatal) readout error
Definition at line 152 of file AliMUONTrackerDataMaker.h.
Referenced by Add(), NumberOfGoodPhysicsEvents(), ProcessEvent(), and Rewind().
|
private |
number of physics events seen
Definition at line 151 of file AliMUONTrackerDataMaker.h.
Referenced by Add(), NumberOfPhysicsEvents(), ProcessEvent(), and Rewind().
|
private |
OCDB path (if calibrating)
Definition at line 142 of file AliMUONTrackerDataMaker.h.
Referenced by Ctor().
|
private |
data for a single event (owner)
Definition at line 138 of file AliMUONTrackerDataMaker.h.
Referenced by ProcessEvent(), and ~AliMUONTrackerDataMaker().
|
private |
! reader of the data (owner or not)
Definition at line 135 of file AliMUONTrackerDataMaker.h.
Referenced by AliMUONTrackerDataMaker(), IsValid(), NextEvent(), ProcessEvent(), Rewind(), SetRawReader(), and ~AliMUONTrackerDataMaker().
|
private |
run number of the data
Definition at line 144 of file AliMUONTrackerDataMaker.h.
Referenced by Add(), AliMUONTrackerDataMaker(), and Ctor().
|
private |
where the data comes from
Definition at line 141 of file AliMUONTrackerDataMaker.h.
Referenced by Add(), SetSource(), and Source().
|
private |
whether we should try to recover corrupted raw data
Definition at line 153 of file AliMUONTrackerDataMaker.h.
Referenced by ProcessEvent(), and SetTryRecover().