![]() |
AliRoot Core
3dc7879 (3dc7879)
|
#include <AliFMDBaseDA.h>
Classes | |
struct | Runner |
Public Types | |
typedef TObjArray | Array |
Public Member Functions | |
AliFMDBaseDA () | |
AliFMDBaseDA (const AliFMDBaseDA &baseDA) | |
~AliFMDBaseDA () | |
AliFMDBaseDA & | operator= (const AliFMDBaseDA &) |
Bool_t | Run (AliRawReader *fmdReader, Bool_t appendRun, Bool_t isBase=false) |
void | SetSaveDiagnostics (Bool_t save) |
void | SetDiagnosticsFilename (const TString &f) |
void | SetMakeSummaries (Bool_t save) |
void | SetRequiredEvents (Int_t nEvents) |
void | SetTryAll (Bool_t all=true) |
Int_t | GetRequiredEvents () const |
const Array & | GetSummaries () const |
Bool_t | HasSeenDetector (UShort_t d) const |
Protected Member Functions | |
virtual Bool_t | OpenFiles (Bool_t appendRun=false) |
virtual void | CloseFiles () |
virtual void | Init () |
virtual void | FillChannels (AliFMDDigit *) |
virtual void | Analyse (UShort_t, Char_t, UShort_t, UShort_t) |
virtual void | WriteHeaderToFile () |
virtual void | AddChannelContainer (Array *, UShort_t, Char_t, UShort_t, UShort_t) |
virtual void | AddSectorSummary (Array *, UShort_t, Char_t, UShort_t, UShort_t) |
virtual void | FinishEvent () |
virtual void | Terminate (TFile *) |
Int_t | GetCurrentEvent () const |
void | Rotate (const char *base, int max) const |
Int_t | GetHalfringIndex (UShort_t, Char_t, UShort_t) const |
Int_t | GetPulseSize (UShort_t det, Char_t ring, UShort_t board) |
Int_t | GetPulseLength (UShort_t det, Char_t ring, UShort_t board) |
TString | GetDetectorPath (UShort_t det, Bool_t full=kTRUE) const |
TString | GetRingPath (UShort_t det, Char_t ring, Bool_t full=kTRUE) const |
TString | GetSectorPath (UShort_t det, Char_t ring, UShort_t sec, Bool_t full=kTRUE) const |
TString | GetStripPath (UShort_t det, Char_t ring, UShort_t sec, UShort_t str, Bool_t full=kTRUE) const |
Array * | GetDetectorArray (UShort_t det) |
Array * | GetRingArray (UShort_t det, Char_t ring) |
Array * | GetSectorArray (UShort_t det, Char_t ring, UShort_t sector) |
Array * | GetStripArray (UShort_t det, Char_t ring, UShort_t sector, UShort_t strip) |
void | WriteConditionsData (AliFMDRawReader *fmdReader) |
void | SetCurrentEvent (Int_t currentEvent) |
virtual void | InitContainer (TDirectory *dir) |
TH2 * | MakeSummaryHistogram (const char *prefix, const char *title, UShort_t det, Char_t ring) |
virtual void | MakeSummary (UShort_t, Char_t) |
virtual Bool_t | HaveEnough (Int_t nEvent) const |
virtual UShort_t | GetProgress (Int_t nEvent) const |
Protected Attributes | |
TString | fDiagnosticsFilename |
std::ofstream | fOutputFile |
std::ofstream | fConditionsFile |
Bool_t | fSaveHistograms |
Bool_t | fMakeSummaries |
Array | fDetectorArray |
TArrayS | fPulseSize |
TArrayS | fPulseLength |
Bool_t | fSeenDetectors [3] |
UInt_t | fNEventsPerDetector [3] |
Int_t | fRequiredEvents |
Int_t | fCurrentEvent |
UInt_t | fRunno |
Array | fSummaries |
Bool_t | fAll |
Static Protected Attributes | |
static const UInt_t | fgkBaseDDL = 3072 |
Definition at line 39 of file AliFMDBaseDA.h.
typedef TObjArray AliFMDBaseDA::Array |
Definition at line 62 of file AliFMDBaseDA.h.
AliFMDBaseDA::AliFMDBaseDA | ( | ) |
Constructor
Definition at line 144 of file AliFMDBaseDA.cxx.
AliFMDBaseDA::AliFMDBaseDA | ( | const AliFMDBaseDA & | baseDA | ) |
AliFMDBaseDA::~AliFMDBaseDA | ( | ) |
Destructor
Definition at line 200 of file AliFMDBaseDA.cxx.
|
inlineprotectedvirtual |
Add a strip container
Reimplemented in AliFMDPedestalDA, and AliFMDGainDA.
Definition at line 219 of file AliFMDBaseDA.h.
Referenced by InitContainer().
|
inlineprotectedvirtual |
Add summary(s) for sectors
Reimplemented in AliFMDPedestalDA, and AliFMDGainDA.
Definition at line 225 of file AliFMDBaseDA.h.
Referenced by InitContainer().
|
inlineprotectedvirtual |
Analyse a single strip result
Reimplemented in AliFMDPedestalDA, and AliFMDGainDA.
Definition at line 211 of file AliFMDBaseDA.h.
Referenced by Run().
|
protectedvirtual |
Close output files
Reimplemented in AliFMDPedestalDA.
Definition at line 232 of file AliFMDBaseDA.cxx.
Referenced by AliFMDPedestalDA::CloseFiles(), and Run().
|
inlineprotectedvirtual |
Fill channels
Reimplemented in AliFMDPedestalDA, and AliFMDGainDA.
Definition at line 207 of file AliFMDBaseDA.h.
Referenced by Run().
|
inlineprotectedvirtual |
End of event
Reimplemented in AliFMDGainDA, and AliFMDPedestalDA.
Definition at line 230 of file AliFMDBaseDA.h.
Referenced by Run().
|
inlineprotected |
Current event number
Definition at line 241 of file AliFMDBaseDA.h.
Referenced by AliFMDGainDA::FinishEvent(), Run(), and AliFMDGainDA::UpdatePulseAndADC().
|
protected |
Definition at line 664 of file AliFMDBaseDA.cxx.
Referenced by AliFMDPedestalDA::GetChannel(), GetPulseLength(), and GetRingArray().
|
protected |
Get the detector path in diagnositcs file
det | Detector number |
full | If true, return full path |
Definition at line 124 of file AliFMDBaseDA.cxx.
Referenced by GetPulseLength(), GetRingPath(), and InitContainer().
|
protected |
Ge the half-ring index
UShort_t | |
Char_t | |
UShort_t |
Definition at line 576 of file AliFMDBaseDA.cxx.
Referenced by AliFMDGainDA::AddChannelContainer(), AliFMDGainDA::FinishEvent(), GetCurrentEvent(), GetPulseLength(), GetPulseSize(), AliFMDGainDA::UpdatePulseAndADC(), and WriteConditionsData().
|
protectedvirtual |
Definition at line 255 of file AliFMDBaseDA.cxx.
Referenced by MakeSummary(), and Run().
|
inlineprotected |
Get number of events per pulse size
det | Detector number |
ring | Rin identifier |
board | Board number |
Definition at line 287 of file AliFMDBaseDA.h.
|
inlineprotected |
Get the pulse size
det | Detector number |
ring | Rin identifier |
board | Board number |
Definition at line 272 of file AliFMDBaseDA.h.
|
inline |
Get the number of required events
Definition at line 127 of file AliFMDBaseDA.h.
Referenced by GetProgress(), HaveEnough(), and Run().
|
protected |
Definition at line 674 of file AliFMDBaseDA.cxx.
Referenced by AliFMDPedestalDA::GetChannel(), GetPulseLength(), and GetSectorArray().
|
protected |
Get the ring path in diagnositcs file
Definition at line 103 of file AliFMDBaseDA.cxx.
Referenced by GetPulseLength(), GetSectorPath(), and InitContainer().
|
protected |
Definition at line 685 of file AliFMDBaseDA.cxx.
Referenced by AliFMDPedestalDA::GetChannel(), AliFMDGainDA::GetChannelHistogram(), GetPulseLength(), AliFMDPedestalDA::GetSectorSummary(), AliFMDGainDA::GetSectorSummary(), GetStripArray(), and AliFMDGainDA::InitContainer().
|
protected |
Get the sector path in diagnositcs file
Definition at line 81 of file AliFMDBaseDA.cxx.
Referenced by GetPulseLength(), GetStripPath(), and InitContainer().
|
protected |
Definition at line 695 of file AliFMDBaseDA.cxx.
Referenced by AliFMDPedestalDA::GetChannel(), AliFMDGainDA::GetChannel(), GetPulseLength(), and AliFMDGainDA::UpdatePulseAndADC().
|
protected |
Get the strip path in diagnositcs file
det | Detector number |
ring | Ring identifier |
sec | Sector number |
str | Strip number |
full | If true, return full path |
Definition at line 58 of file AliFMDBaseDA.cxx.
Referenced by GetPulseLength(), and InitContainer().
|
inline |
Get list of summary histograms
Definition at line 133 of file AliFMDBaseDA.h.
Referenced by PostSummaries().
|
inline |
Check if we saw data for detector
det | Detector number to check |
Definition at line 403 of file AliFMDBaseDA.h.
Referenced by GetSummaries(), and PostSummaries().
|
protectedvirtual |
Definition at line 242 of file AliFMDBaseDA.cxx.
Referenced by MakeSummary(), and Run().
|
inlineprotectedvirtual |
Initialize
Reimplemented in AliFMDPedestalDA, and AliFMDGainDA.
Definition at line 203 of file AliFMDBaseDA.h.
Referenced by AliFMDBaseDA::Runner::operator=(), and Run().
|
protectedvirtual |
Initialize container
dir | Directory to make containers in |
Reimplemented in AliFMDGainDA.
Definition at line 427 of file AliFMDBaseDA.cxx.
Referenced by AliFMDGainDA::InitContainer(), Run(), and SetCurrentEvent().
|
inlineprotectedvirtual |
Make a summary
Reimplemented in AliFMDGainDA, and AliFMDPedestalDA.
Definition at line 375 of file AliFMDBaseDA.h.
Referenced by Run().
|
protected |
Utility function for defining summary histograms
Definition at line 636 of file AliFMDBaseDA.cxx.
Referenced by AliFMDPedestalDA::MakeSummary(), AliFMDGainDA::MakeSummary(), and SetCurrentEvent().
|
protectedvirtual |
Open our output file
The output file is named
conditions.csv
and existing files are rotated, or
conditions_XXXXXXXXX.csv
in case the run number is to be appended.
appendRun | if true, append run number (9 digits, zero padded) to the output file name(s). |
Reimplemented in AliFMDPedestalDA, and AliFMDGainDA.
Definition at line 212 of file AliFMDBaseDA.cxx.
Referenced by AliFMDGainDA::OpenFiles(), AliFMDPedestalDA::OpenFiles(), and Run().
|
inline |
Definition at line 82 of file AliFMDBaseDA.h.
|
protected |
Rotate a set of files. base is the basic name of the files. If the file base.max exists it is removed. If the file base.n exists (where n < max) it is renamed to base.(n-1). If the file base exists, it is renamed to base.1
base | Base name of the files |
max | Maximum number to keep (minus one for the current). |
Definition at line 596 of file AliFMDBaseDA.cxx.
Referenced by GetCurrentEvent(), AliFMDPedestalDA::InstallFile(), AliFMDGainDA::OpenFiles(), AliFMDPedestalDA::OpenFiles(), and OpenFiles().
Bool_t AliFMDBaseDA::Run | ( | AliRawReader * | fmdReader, |
Bool_t | appendRun, | ||
Bool_t | isBase = false |
||
) |
Run this DA
fmdReader | Raw input reader |
appendRun | Append run number to files |
isBase | Terminate after reading SOD |
Definition at line 274 of file AliFMDBaseDA.cxx.
Referenced by AliFMDBaseDA::Runner::Exec(), main(), operator=(), TestGainDA(), and TestPedestalDA().
|
inlineprotected |
Set the current event
currentEvent |
Definition at line 354 of file AliFMDBaseDA.h.
Referenced by Run().
|
inline |
Set the diagnostics file name
f | Diagnostics file name |
Definition at line 102 of file AliFMDBaseDA.h.
Referenced by AliFMDBaseDA::Runner::Exec().
|
inline |
Set whether to make summary histograms to be published to AMORE
save | If true, will generate summary QA histograms |
Definition at line 108 of file AliFMDBaseDA.h.
Referenced by main().
|
inline |
Set the number of requried events
nEvents | Number of event we need |
Definition at line 114 of file AliFMDBaseDA.h.
Referenced by AliFMDGainDA::Init(), and AliFMDPedestalDA::Init().
|
inline |
Set whether to save diagnostics
save | If true, will output diagnostics file |
Definition at line 96 of file AliFMDBaseDA.h.
Referenced by AliFMDBaseDA::Runner::Exec(), TestGainDA(), and TestPedestalDA().
|
inline |
Set whether we should try to get all detectors
all | If true, try to get all detectors |
Definition at line 120 of file AliFMDBaseDA.h.
Referenced by AliFMDBaseDA::Runner::Exec().
|
inlineprotectedvirtual |
End of run
Reimplemented in AliFMDGainDA, and AliFMDPedestalDA.
Definition at line 234 of file AliFMDBaseDA.h.
Referenced by Run().
|
protected |
Write conditions file
fmdReader | Raw input |
Definition at line 498 of file AliFMDBaseDA.cxx.
Referenced by GetPulseLength(), and Run().
|
inlineprotectedvirtual |
Write header to output file
Reimplemented in AliFMDPedestalDA, and AliFMDGainDA.
Definition at line 215 of file AliFMDBaseDA.h.
Referenced by Run().
|
protected |
Definition at line 396 of file AliFMDBaseDA.h.
Referenced by SetTryAll().
|
protected |
Definition at line 384 of file AliFMDBaseDA.h.
Referenced by OpenFiles(), and WriteConditionsData().
|
protected |
Definition at line 393 of file AliFMDBaseDA.h.
Referenced by GetCurrentEvent(), and SetCurrentEvent().
|
protected |
Definition at line 387 of file AliFMDBaseDA.h.
Referenced by AliFMDBaseDA(), GetDetectorArray(), InitContainer(), OpenFiles(), and Run().
|
protected |
Definition at line 382 of file AliFMDBaseDA.h.
Referenced by AliFMDGainDA::AliFMDGainDA(), GetDetectorPath(), Run(), and SetDiagnosticsFilename().
|
staticprotected |
Definition at line 380 of file AliFMDBaseDA.h.
|
protected |
Definition at line 386 of file AliFMDBaseDA.h.
Referenced by Run(), and SetMakeSummaries().
|
protected |
Definition at line 391 of file AliFMDBaseDA.h.
Referenced by AliFMDBaseDA(), GetProgress(), HaveEnough(), and Run().
|
protected |
Definition at line 383 of file AliFMDBaseDA.h.
Referenced by AliFMDGainDA::Analyse(), AliFMDPedestalDA::Analyse(), CloseFiles(), AliFMDGainDA::OpenFiles(), AliFMDPedestalDA::OpenFiles(), AliFMDGainDA::WriteHeaderToFile(), and AliFMDPedestalDA::WriteHeaderToFile().
|
protected |
Definition at line 389 of file AliFMDBaseDA.h.
Referenced by AliFMDGainDA::FinishEvent(), GetPulseLength(), AliFMDGainDA::Init(), AliFMDGainDA::UpdatePulseAndADC(), and WriteConditionsData().
|
protected |
Definition at line 388 of file AliFMDBaseDA.h.
Referenced by AliFMDGainDA::AddChannelContainer(), GetPulseSize(), AliFMDGainDA::Init(), AliFMDGainDA::UpdatePulseAndADC(), and WriteConditionsData().
|
protected |
Definition at line 392 of file AliFMDBaseDA.h.
Referenced by GetRequiredEvents(), and SetRequiredEvents().
|
protected |
Definition at line 394 of file AliFMDBaseDA.h.
Referenced by AliFMDGainDA::OpenFiles(), AliFMDPedestalDA::OpenFiles(), OpenFiles(), Run(), WriteConditionsData(), AliFMDGainDA::WriteHeaderToFile(), and AliFMDPedestalDA::WriteHeaderToFile().
|
protected |
Definition at line 385 of file AliFMDBaseDA.h.
Referenced by AliFMDGainDA::Analyse(), AliFMDPedestalDA::Analyse(), Run(), SetSaveDiagnostics(), AliFMDPedestalDA::Terminate(), and AliFMDGainDA::UpdatePulseAndADC().
|
protected |
Definition at line 390 of file AliFMDBaseDA.h.
Referenced by AliFMDBaseDA(), GetProgress(), HasSeenDetector(), HaveEnough(), AliFMDPedestalDA::InstallFile(), Run(), and WriteConditionsData().
|
protected |
Definition at line 395 of file AliFMDBaseDA.h.
Referenced by AliFMDBaseDA(), GetSummaries(), MakeSummaryHistogram(), and Run().