AliRoot Core  3dc7879 (3dc7879)
AliFMDRawWriter Class Reference

Class to write ALTRO formated raw data from an array of AliFMDDigit objects. More...

#include <AliFMDRawWriter.h>

Inheritance diagram for AliFMDRawWriter:

Public Member Functions

 AliFMDRawWriter (AliFMD *fmd)
 
virtual ~AliFMDRawWriter ()
 
virtual void Exec (Option_t *option="")
 
virtual Long_t WriteDigits (TClonesArray *digits)
 
void ZeroSuppress (Int_t *&data, Int_t nWords, const Float_t *peds, const Float_t *noise, UShort_t threshold) const
 

Protected Member Functions

 AliFMDRawWriter (const AliFMDRawWriter &o)
 
AliFMDRawWriteroperator= (const AliFMDRawWriter &)
 
void WriteRCUTrailer (AliAltroBufferV3 *altro, UInt_t ddl, Bool_t zs, UShort_t factor, UShort_t rate) const
 

Protected Attributes

AliFMDfFMD
 
UShort_t fSampleRate
 Pointer to detector description. More...
 
UShort_t fChannelsPerAltro
 
UShort_t fThreshold
 

Detailed Description

Class to write ALTRO formated raw data from an array of AliFMDDigit objects.

AliFMDRawWriter* fmdWriter = new AliFMDRawWriter(0);
TClonesArray* array = fmd->DigitArray();
fmdWriter->WriteDigits(array);

Definition at line 45 of file AliFMDRawWriter.h.

Constructor & Destructor Documentation

AliFMDRawWriter::AliFMDRawWriter ( AliFMD fmd)

Constructor

Parameters
fmdPointer to detector object.

Definition at line 64 of file AliFMDRawWriter.cxx.

virtual AliFMDRawWriter::~AliFMDRawWriter ( )
inlinevirtual

Destructor

Definition at line 52 of file AliFMDRawWriter.h.

AliFMDRawWriter::AliFMDRawWriter ( const AliFMDRawWriter o)
inlineprotected

Definition at line 71 of file AliFMDRawWriter.h.

Member Function Documentation

void AliFMDRawWriter::Exec ( Option_t *  option = "")
virtual

Write the output from AliFMD object.

Parameters
optionNot used

Definition at line 79 of file AliFMDRawWriter.cxx.

Referenced by Convert2Raw(), AliFMD::Digits2Raw(), and ~AliFMDRawWriter().

AliFMDRawWriter& AliFMDRawWriter::operator= ( const AliFMDRawWriter )
inlineprotected

Definition at line 78 of file AliFMDRawWriter.h.

Long_t AliFMDRawWriter::WriteDigits ( TClonesArray *  digits)
virtual

Write an array of AliFMDDigit objects as raw ALTRO data.

Parameters
digitsArray of AliFMDDigit objects to convert to raw ALTRO data.

Definition at line 170 of file AliFMDRawWriter.cxx.

Referenced by Exec(), TestRawIO(), ZeroSuppress(), and ~AliFMDRawWriter().

void AliFMDRawWriter::WriteRCUTrailer ( AliAltroBufferV3 *  altro,
UInt_t  ddl,
Bool_t  zs,
UShort_t  factor,
UShort_t  rate 
) const
protected

Definition at line 320 of file AliFMDRawWriter.cxx.

Referenced by operator=(), and WriteDigits().

void AliFMDRawWriter::ZeroSuppress ( Int_t *&  data,
Int_t  nWords,
const Float_t *  peds,
const Float_t *  noise,
UShort_t  threshold 
) const

Do zero-suppression of channel data.

Parameters
dataContain nWords of valid data. On input, it contains the full channel data. On output it will contain the zero-suppresed data.
pedsContain nWords pedestals
noiseContain nWords pedestal widths
thresholdZero suppression threshold.

Definition at line 354 of file AliFMDRawWriter.cxx.

Referenced by runTest(), WriteDigits(), and ~AliFMDRawWriter().

Member Data Documentation

UShort_t AliFMDRawWriter::fChannelsPerAltro
protected

Definition at line 86 of file AliFMDRawWriter.h.

AliFMD* AliFMDRawWriter::fFMD
protected

Definition at line 84 of file AliFMDRawWriter.h.

Referenced by Exec(), and WriteDigits().

UShort_t AliFMDRawWriter::fSampleRate
protected

Pointer to detector description.

Definition at line 85 of file AliFMDRawWriter.h.

UShort_t AliFMDRawWriter::fThreshold
protected

Definition at line 87 of file AliFMDRawWriter.h.


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