AliRoot Core  edcc906 (edcc906)
AliFMDPedestalDA Class Reference

#include <AliFMDPedestalDA.h>

Inheritance diagram for AliFMDPedestalDA:

Public Types

typedef AliFMDBaseDA::Array Array
 
- Public Types inherited from AliFMDBaseDA
typedef TObjArray Array
 

Public Member Functions

 AliFMDPedestalDA ()
 
 AliFMDPedestalDA (const AliFMDPedestalDA &pedDA)
 
AliFMDPedestalDAoperator= (const AliFMDPedestalDA &)
 
virtual ~AliFMDPedestalDA ()
 
Bool_t OpenFiles (Bool_t appendRun=false)
 
void CloseFiles ()
 
void Init ()
 
- Public Member Functions inherited from AliFMDBaseDA
 AliFMDBaseDA ()
 
 AliFMDBaseDA (const AliFMDBaseDA &baseDA)
 
 ~AliFMDBaseDA ()
 
AliFMDBaseDAoperator= (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 ArrayGetSummaries () const
 
Bool_t HasSeenDetector (UShort_t d) const
 

Protected Types

enum  { kPedestalOffset = 1, kNoiseOffset = 2 }
 

Protected Member Functions

void AddChannelContainer (Array *sectorArray, UShort_t det, Char_t ring, UShort_t sec, UShort_t strip)
 
virtual void AddSectorSummary (Array *secArray, UShort_t det, Char_t ring, UShort_t sector, UShort_t nStrip)
 
void FillChannels (AliFMDDigit *digit)
 
void Analyse (UShort_t det, Char_t ring, UShort_t sec, UShort_t strip)
 
void WriteHeaderToFile ()
 
void FinishEvent ()
 
void Terminate (TFile *)
 
- Protected Member Functions inherited from AliFMDBaseDA
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
 
ArrayGetDetectorArray (UShort_t det)
 
ArrayGetRingArray (UShort_t det, Char_t ring)
 
ArrayGetSectorArray (UShort_t det, Char_t ring, UShort_t sector)
 
ArrayGetStripArray (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 Bool_t HaveEnough (Int_t nEvent) const
 
virtual UShort_t GetProgress (Int_t nEvent) const
 

Private Member Functions

TH1S * GetChannel (UShort_t det, Char_t ring, UShort_t sec, UShort_t strip, UInt_t sample)
 
TH1F * GetSectorSummary (UShort_t det, Char_t ring, UShort_t sec, Bool_t pedNotNoise)
 
Int_t HWIndex (UShort_t ddl, UShort_t board, UShort_t altro, UShort_t chan) const
 
void InstallFile (Int_t d)
 
void MakeSummary (UShort_t det, Char_t ring)
 

Private Attributes

Int_t fCurrentChannel
 
TH1F fPedSummary
 
TH1F fNoiseSummary
 
std::ofstream fZSfileFMD1
 
std::ofstream fZSfileFMD2
 
std::ofstream fZSfileFMD3
 
TArrayS fMinTimebin
 
TArrayS fMaxTimebin
 
TH2 * fSummaryFMD1i
 
TH2 * fSummaryFMD2i
 
TH2 * fSummaryFMD2o
 
TH2 * fSummaryFMD3i
 
TH2 * fSummaryFMD3o
 

Additional Inherited Members

- Protected Attributes inherited from AliFMDBaseDA
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 inherited from AliFMDBaseDA
static const UInt_t fgkBaseDDL = 3072
 

Detailed Description

Definition at line 20 of file AliFMDPedestalDA.h.

Member Typedef Documentation

Member Enumeration Documentation

anonymous enum
protected
Enumerator
kPedestalOffset 
kNoiseOffset 

Definition at line 86 of file AliFMDPedestalDA.h.

Constructor & Destructor Documentation

AliFMDPedestalDA::AliFMDPedestalDA ( )

Constructor.

Definition at line 52 of file AliFMDPedestalDA.cxx.

AliFMDPedestalDA::AliFMDPedestalDA ( const AliFMDPedestalDA pedDA)

Copy constructor

Parameters
pedDAObject to copy from

Definition at line 73 of file AliFMDPedestalDA.cxx.

AliFMDPedestalDA::~AliFMDPedestalDA ( )
virtual

Destructor

Definition at line 93 of file AliFMDPedestalDA.cxx.

Referenced by operator=().

Member Function Documentation

void AliFMDPedestalDA::AddChannelContainer ( Array sectorArray,
UShort_t  det,
Char_t  ring,
UShort_t  sec,
UShort_t  strip 
)
protectedvirtual

Add a channel to the containers.

Parameters
sectorArrayArray of sectors
detDetector
ringRing
secSector
stripStrip

Reimplemented from AliFMDBaseDA.

Definition at line 155 of file AliFMDPedestalDA.cxx.

void AliFMDPedestalDA::AddSectorSummary ( Array secArray,
UShort_t  det,
Char_t  ring,
UShort_t  sector,
UShort_t  nStrip 
)
protectedvirtual

Add summary(s) for sectors

Parameters
secArray
det
ring
sector
nStrip

Reimplemented from AliFMDBaseDA.

Definition at line 183 of file AliFMDPedestalDA.cxx.

void AliFMDPedestalDA::Analyse ( UShort_t  det,
Char_t  ring,
UShort_t  sec,
UShort_t  strip 
)
protectedvirtual

Analyse a strip. That is, compute the mean and spread of the ADC spectra for all strips. Also output on files the values.

Parameters
detDetector
ringRing
secSector
stripStrip.
hSummary histogram with bins for sector and strip

Reimplemented from AliFMDBaseDA.

Definition at line 265 of file AliFMDPedestalDA.cxx.

void AliFMDPedestalDA::CloseFiles ( )
virtual

Close output files

Reimplemented from AliFMDBaseDA.

Definition at line 138 of file AliFMDPedestalDA.cxx.

Referenced by operator=().

void AliFMDPedestalDA::FillChannels ( AliFMDDigit digit)
protectedvirtual

Fill ADC values from a digit into the corresponding histogram.

Parameters
digitDigit to fill ADC values for.

Reimplemented from AliFMDBaseDA.

Definition at line 209 of file AliFMDPedestalDA.cxx.

void AliFMDPedestalDA::FinishEvent ( )
inlineprotectedvirtual

Called at the end of an event.

Reimplemented from AliFMDBaseDA.

Definition at line 139 of file AliFMDPedestalDA.h.

TH1S * AliFMDPedestalDA::GetChannel ( UShort_t  det,
Char_t  ring,
UShort_t  sec,
UShort_t  strip,
UInt_t  sample 
)
private

Get the histogram corresponding to a strip sample.

Parameters
detDetector
ringRing
secSector
stripStrip
sampleSample
Returns
ADC spectra of a strip.

Definition at line 449 of file AliFMDPedestalDA.cxx.

Referenced by Analyse(), FillChannels(), and FinishEvent().

TH1F * AliFMDPedestalDA::GetSectorSummary ( UShort_t  det,
Char_t  ring,
UShort_t  sec,
Bool_t  pedNotNoise 
)
private

Get the summary for a sector

Parameters
detDetector
ringRing
secSector
pedNotNoiseOption
Returns
histogram

Definition at line 484 of file AliFMDPedestalDA.cxx.

Referenced by Analyse(), and FinishEvent().

Int_t AliFMDPedestalDA::HWIndex ( UShort_t  ddl,
UShort_t  board,
UShort_t  altro,
UShort_t  chan 
) const
inlineprivate

Calculate the hardware index

Parameters
ddlDDL number
boardBoard number
altroALTRO number
chanChannel number
Returns
Index into hardware cache.

Definition at line 217 of file AliFMDPedestalDA.h.

Referenced by Analyse(), and FinishEvent().

void AliFMDPedestalDA::Init ( void  )
virtual

Initialiser

Reimplemented from AliFMDBaseDA.

Definition at line 146 of file AliFMDPedestalDA.cxx.

Referenced by operator=().

void AliFMDPedestalDA::InstallFile ( Int_t  d)
private

Move ddl files into place

Definition at line 118 of file AliFMDPedestalDA.cxx.

Referenced by CloseFiles(), and FinishEvent().

void AliFMDPedestalDA::MakeSummary ( UShort_t  ,
Char_t   
)
privatevirtual

Make a summary

Reimplemented from AliFMDBaseDA.

Definition at line 232 of file AliFMDPedestalDA.cxx.

Bool_t AliFMDPedestalDA::OpenFiles ( Bool_t  appendRun = false)
virtual

Open our output files

The output files are named

peds.csv conditions.csv ddl3072.csv ddl3073.csv ddl3074.csv

and existing files are rotated, or

peds_XXXXXXXXX.csv conditions_XXXXXXXXX.csv ddl3072.csv ddl3073.csv ddl3074.csv

in case the run number is to be appended.

Parameters
appendRunif true, append run number (9 digits, zero padded) to the output file name(s).
Returns
true on success

Reimplemented from AliFMDBaseDA.

Definition at line 100 of file AliFMDPedestalDA.cxx.

Referenced by operator=().

AliFMDPedestalDA& AliFMDPedestalDA::operator= ( const AliFMDPedestalDA )
inline

Assignment operator

Parameters
pedDAObject to assign from

Definition at line 41 of file AliFMDPedestalDA.h.

void AliFMDPedestalDA::Terminate ( TFile *  diagFile)
protectedvirtual

Called at the end of a job. Fills in missing time-bins and closes output files

Reimplemented from AliFMDBaseDA.

Definition at line 397 of file AliFMDPedestalDA.cxx.

Referenced by FinishEvent().

void AliFMDPedestalDA::WriteHeaderToFile ( )
protectedvirtual

Write headers to files.

Reimplemented from AliFMDBaseDA.

Definition at line 410 of file AliFMDPedestalDA.cxx.

Member Data Documentation

Int_t AliFMDPedestalDA::fCurrentChannel
private

Current strip

Definition at line 189 of file AliFMDPedestalDA.h.

Referenced by Analyse().

TArrayS AliFMDPedestalDA::fMaxTimebin
private

The maximum timebin seen for all channels

Definition at line 203 of file AliFMDPedestalDA.h.

Referenced by Analyse(), and Init().

TArrayS AliFMDPedestalDA::fMinTimebin
private

The minimum timebin seen for all channels

Definition at line 201 of file AliFMDPedestalDA.h.

Referenced by Analyse(), and Init().

TH1F AliFMDPedestalDA::fNoiseSummary
private

Noise summary

Definition at line 193 of file AliFMDPedestalDA.h.

Referenced by Analyse(), and Terminate().

TH1F AliFMDPedestalDA::fPedSummary
private

Pedestal summary

Definition at line 191 of file AliFMDPedestalDA.h.

Referenced by Analyse(), and Terminate().

TH2* AliFMDPedestalDA::fSummaryFMD1i
private

Definition at line 207 of file AliFMDPedestalDA.h.

Referenced by Analyse(), and MakeSummary().

TH2* AliFMDPedestalDA::fSummaryFMD2i
private

Definition at line 208 of file AliFMDPedestalDA.h.

Referenced by Analyse(), and MakeSummary().

TH2* AliFMDPedestalDA::fSummaryFMD2o
private

Definition at line 209 of file AliFMDPedestalDA.h.

Referenced by Analyse(), and MakeSummary().

TH2* AliFMDPedestalDA::fSummaryFMD3i
private

Definition at line 210 of file AliFMDPedestalDA.h.

Referenced by Analyse(), and MakeSummary().

TH2* AliFMDPedestalDA::fSummaryFMD3o
private

Definition at line 211 of file AliFMDPedestalDA.h.

Referenced by Analyse(), and MakeSummary().

std::ofstream AliFMDPedestalDA::fZSfileFMD1
private

Output file for zero-suppression for FMD1

Definition at line 195 of file AliFMDPedestalDA.h.

Referenced by Analyse(), InstallFile(), and WriteHeaderToFile().

std::ofstream AliFMDPedestalDA::fZSfileFMD2
private

Output file for zero-suppression for FMD2

Definition at line 197 of file AliFMDPedestalDA.h.

Referenced by Analyse(), InstallFile(), and WriteHeaderToFile().

std::ofstream AliFMDPedestalDA::fZSfileFMD3
private

Output file for zero-suppression for FMD3

Definition at line 199 of file AliFMDPedestalDA.h.

Referenced by Analyse(), InstallFile(), and WriteHeaderToFile().


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