AliRoot Core  ee782a0 (ee782a0)
AliMUONTrackerDataMaker Class Reference

Implementation of VTrackerDataMaker to read raw data. More...

#include <AliMUONTrackerDataMaker.h>

Inheritance diagram for AliMUONTrackerDataMaker:

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...
 
AliMUONVTrackerDataData () 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...
 
- Public Member Functions inherited from AliMUONVTrackerDataMaker
 AliMUONVTrackerDataMaker ()
 
virtual ~AliMUONVTrackerDataMaker ()
 

Private Member Functions

 AliMUONTrackerDataMaker (const AliMUONTrackerDataMaker &rhs)
 not implemented More...
 
AliMUONTrackerDataMakeroperator= (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...
 
AliMUONVTrackerDatafAccumulatedData
 data (owner or not) More...
 
Bool_t fIsOwnerOfAccumulatedData
 owner or not of fAccumulatedData More...
 
AliMUONVStorefOneEventData
 data for a single event (owner) More...
 
AliMUONDigitCalibratorfDigitCalibrator
 ! digit calibrator (if calibrating) More...
 
AliMUONCalibrationDatafCalibrationData
 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...
 
AliMUONLoggerfLogger
 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...
 

Detailed Description

Implementation of VTrackerDataMaker to read raw data.

Implementation of VTrackerDataMaker to read raw data and calibrate it (if required)

Author
Laurent Aphecetche, Subatech

Definition at line 30 of file AliMUONTrackerDataMaker.h.

Constructor & Destructor Documentation

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.

AliMUONTrackerDataMaker::~AliMUONTrackerDataMaker ( )
virtual

dtor

Definition at line 277 of file AliMUONTrackerDataMaker.cxx.

AliMUONTrackerDataMaker::AliMUONTrackerDataMaker ( const AliMUONTrackerDataMaker rhs)
private

not implemented

Member Function Documentation

Bool_t AliMUONTrackerDataMaker::Add ( const AliMUONTrackerDataMaker other)

Adds other to this

Definition at line 290 of file AliMUONTrackerDataMaker.cxx.

Referenced by Merge().

void AliMUONTrackerDataMaker::Ctor ( const AliMUONRecoParam param,
Int_t  runNumber,
const char *  calibMode,
Bool_t  histogram,
Double_t  xmin = 0.0,
Double_t  xmax = 4095.0 
)
private

"designated constructor"

Definition at line 199 of file AliMUONTrackerDataMaker.cxx.

Referenced by AliMUONTrackerDataMaker(), and SetEventRange().

AliMUONVTrackerData* AliMUONTrackerDataMaker::Data ( ) const
inlinevirtual

Get our accumulated data.

Implements AliMUONVTrackerDataMaker.

Definition at line 62 of file AliMUONTrackerDataMaker.h.

Referenced by AliMUONTrackerQADataMakerRec::TrackerDataMaker().

void AliMUONTrackerDataMaker::EnableErrorLogger ( AliMUONLogger logger)
inline

Set the error logger.

Definition at line 110 of file AliMUONTrackerDataMaker.h.

Referenced by AliMUONTrackerQADataMakerRec::TrackerDataMaker().

Bool_t AliMUONTrackerDataMaker::IsEventByEvent ( ) const
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.

Bool_t AliMUONTrackerDataMaker::IsRunnable ( ) const
inlinevirtual

We can run if we have a reader.

Implements AliMUONVTrackerDataMaker.

Definition at line 74 of file AliMUONTrackerDataMaker.h.

Bool_t AliMUONTrackerDataMaker::IsRunning ( ) const
inlinevirtual

Whether we are running or not.

Implements AliMUONVTrackerDataMaker.

Definition at line 77 of file AliMUONTrackerDataMaker.h.

Referenced by NextEvent(), and Print().

Bool_t AliMUONTrackerDataMaker::IsValid ( ) const
inlinevirtual

Whether we have a valid reader or not.

Implements AliMUONVTrackerDataMaker.

Definition at line 59 of file AliMUONTrackerDataMaker.h.

Referenced by IsRunnable().

Bool_t AliMUONTrackerDataMaker::LastEventWasEmpty ( ) const
inline

Whether last decoded event was empty.

Definition at line 113 of file AliMUONTrackerDataMaker.h.

Referenced by AliMUONTrackerQADataMakerRec::MakeRaws().

Long64_t AliMUONTrackerDataMaker::Merge ( TCollection *  list)
virtual

Merge.

Merge objects in collection

Implements AliMUONVTrackerDataMaker.

Definition at line 518 of file AliMUONTrackerDataMaker.cxx.

Referenced by NumberOfGoodPhysicsEvents().

Bool_t AliMUONTrackerDataMaker::NextEvent ( )
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().

Int_t AliMUONTrackerDataMaker::NumberOfEvents ( ) const
inlinevirtual

Number of events seen.

Implements AliMUONVTrackerDataMaker.

Definition at line 97 of file AliMUONTrackerDataMaker.h.

Referenced by Merge().

Int_t AliMUONTrackerDataMaker::NumberOfGoodPhysicsEvents ( ) const
inline

Number of good physics events seen.

Definition at line 103 of file AliMUONTrackerDataMaker.h.

Int_t AliMUONTrackerDataMaker::NumberOfPhysicsEvents ( ) const
inline

Number of physics events seen.

Definition at line 100 of file AliMUONTrackerDataMaker.h.

AliMUONTrackerDataMaker& AliMUONTrackerDataMaker::operator= ( const AliMUONTrackerDataMaker rhs)
private

not implemented

Referenced by SetEventRange().

void AliMUONTrackerDataMaker::Print ( Option_t *  opt = "") const

Printout

Definition at line 492 of file AliMUONTrackerDataMaker.cxx.

Referenced by SetRunning().

Bool_t AliMUONTrackerDataMaker::ProcessEvent ( )
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().

void AliMUONTrackerDataMaker::Rewind ( )
virtual

Rewind events (no effect if not runnable)

Rewind events

Implements AliMUONVTrackerDataMaker.

Definition at line 501 of file AliMUONTrackerDataMaker.cxx.

Referenced by SetRunning().

void AliMUONTrackerDataMaker::SetEventByEvent ( Bool_t  flag)
inlinevirtual

Set event-by-event mode.

Reimplemented from AliMUONVTrackerDataMaker.

Definition at line 71 of file AliMUONTrackerDataMaker.h.

void AliMUONTrackerDataMaker::SetEventRange ( Int_t  first,
Int_t  last 
)
inlinevirtual

Set the event range to consider.

Reimplemented from AliMUONVTrackerDataMaker.

Definition at line 119 of file AliMUONTrackerDataMaker.h.

void AliMUONTrackerDataMaker::SetOwnerOfData ( Bool_t  flag)
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().

void AliMUONTrackerDataMaker::SetRunning ( Bool_t  flag)
inlinevirtual

Set the runnning status.

Implements AliMUONVTrackerDataMaker.

Definition at line 80 of file AliMUONTrackerDataMaker.h.

Referenced by AliMUONTrackerQADataMakerRec::TrackerDataMaker().

void AliMUONTrackerDataMaker::SetSource ( const char *  source)
inlinevirtual

Set our source URI.

Implements AliMUONVTrackerDataMaker.

Definition at line 94 of file AliMUONTrackerDataMaker.h.

void AliMUONTrackerDataMaker::SetTryRecover ( Bool_t  flag)
inline

Whether or not we should try to recover corrupted raw data.

Definition at line 116 of file AliMUONTrackerDataMaker.h.

TString AliMUONTrackerDataMaker::Source ( ) const
inlinevirtual

Get our source URI.

Implements AliMUONVTrackerDataMaker.

Definition at line 91 of file AliMUONTrackerDataMaker.h.

Referenced by Print().

Member Data Documentation

AliMUONVTrackerData* AliMUONTrackerDataMaker::fAccumulatedData
private

data (owner or not)

Definition at line 136 of file AliMUONTrackerDataMaker.h.

Referenced by Add(), Ctor(), Data(), ProcessEvent(), and ~AliMUONTrackerDataMaker().

AliMUONCalibrationData* AliMUONTrackerDataMaker::fCalibrationData
private

calibration data (if calibrating)

Definition at line 140 of file AliMUONTrackerDataMaker.h.

Referenced by Ctor(), and ~AliMUONTrackerDataMaker().

AliMUONDigitCalibrator* AliMUONTrackerDataMaker::fDigitCalibrator
private

! digit calibrator (if calibrating)

Definition at line 139 of file AliMUONTrackerDataMaker.h.

Referenced by Ctor(), ProcessEvent(), and ~AliMUONTrackerDataMaker().

Int_t AliMUONTrackerDataMaker::fFirstEvent
private

first event to consider

Definition at line 154 of file AliMUONTrackerDataMaker.h.

Referenced by NextEvent(), and SetEventRange().

Int_t AliMUONTrackerDataMaker::fgkCounter
staticprivate

to count the number of instances

Definition at line 148 of file AliMUONTrackerDataMaker.h.

Referenced by Ctor().

Bool_t AliMUONTrackerDataMaker::fIsEventByEvent
private

we only keep one event's data (no accumulation)

Definition at line 147 of file AliMUONTrackerDataMaker.h.

Referenced by Add(), IsEventByEvent(), and SetEventByEvent().

Bool_t AliMUONTrackerDataMaker::fIsOwnerOfAccumulatedData
private

owner or not of fAccumulatedData

Definition at line 137 of file AliMUONTrackerDataMaker.h.

Referenced by SetOwnerOfData(), and ~AliMUONTrackerDataMaker().

Bool_t AliMUONTrackerDataMaker::fIsOwnerOfRawReader
private

whether we must delete rawReader or not

Definition at line 146 of file AliMUONTrackerDataMaker.h.

Referenced by NextEvent(), Rewind(), SetRawReader(), and ~AliMUONTrackerDataMaker().

Bool_t AliMUONTrackerDataMaker::fIsRunning
private

whether we are running or not

Definition at line 145 of file AliMUONTrackerDataMaker.h.

Referenced by IsRunning(), and SetRunning().

Int_t AliMUONTrackerDataMaker::fLastEvent
private

last event to consider

Definition at line 155 of file AliMUONTrackerDataMaker.h.

Referenced by NextEvent(), and SetEventRange().

Bool_t AliMUONTrackerDataMaker::fLastEventWasEmpty
private

whether last decoded event was empty

Definition at line 150 of file AliMUONTrackerDataMaker.h.

Referenced by LastEventWasEmpty(), and ProcessEvent().

AliMUONLogger* AliMUONTrackerDataMaker::fLogger
private

error logger (not owner)

Definition at line 149 of file AliMUONTrackerDataMaker.h.

Referenced by EnableErrorLogger(), and ProcessEvent().

Int_t AliMUONTrackerDataMaker::fNumberOfEvents
private

number of events seen

Definition at line 143 of file AliMUONTrackerDataMaker.h.

Referenced by Add(), NextEvent(), NumberOfEvents(), ProcessEvent(), and Rewind().

Int_t AliMUONTrackerDataMaker::fNumberOfGoodPhysicsEvents
private

number of errors with no (fatal) readout error

Definition at line 152 of file AliMUONTrackerDataMaker.h.

Referenced by Add(), NumberOfGoodPhysicsEvents(), ProcessEvent(), and Rewind().

Int_t AliMUONTrackerDataMaker::fNumberOfPhysicsEvents
private

number of physics events seen

Definition at line 151 of file AliMUONTrackerDataMaker.h.

Referenced by Add(), NumberOfPhysicsEvents(), ProcessEvent(), and Rewind().

TString AliMUONTrackerDataMaker::fOCDBPath
private

OCDB path (if calibrating)

Definition at line 142 of file AliMUONTrackerDataMaker.h.

Referenced by Ctor().

AliMUONVStore* AliMUONTrackerDataMaker::fOneEventData
private

data for a single event (owner)

Definition at line 138 of file AliMUONTrackerDataMaker.h.

Referenced by ProcessEvent(), and ~AliMUONTrackerDataMaker().

AliRawReader* AliMUONTrackerDataMaker::fRawReader
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().

Int_t AliMUONTrackerDataMaker::fRunNumber
private

run number of the data

Definition at line 144 of file AliMUONTrackerDataMaker.h.

Referenced by Add(), AliMUONTrackerDataMaker(), and Ctor().

TString AliMUONTrackerDataMaker::fSource
private

where the data comes from

Definition at line 141 of file AliMUONTrackerDataMaker.h.

Referenced by Add(), SetSource(), and Source().

Bool_t AliMUONTrackerDataMaker::fTryRecover
private

whether we should try to recover corrupted raw data

Definition at line 153 of file AliMUONTrackerDataMaker.h.

Referenced by ProcessEvent(), and SetTryRecover().


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