Class to read ALTRO formated raw data from an AliRawReader object.
More...
#include <AliFMDRawReader.h>
|
| AliFMDRawReader (AliRawReader *reader, TTree *array) |
|
virtual | ~AliFMDRawReader () |
|
void | SetVerbose (Bool_t verb=kTRUE) |
|
virtual void | Exec (Option_t *option="") |
|
virtual Bool_t | ReadAdcs (TClonesArray *array) |
|
virtual Bool_t | ReadAdcs (AliFMDUShortMap &map) |
|
virtual Bool_t | ReadSODevent (AliFMDCalibSampleRate *samplerate, AliFMDCalibStripRange *striprange, TArrayS &pulseSize, TArrayS &pulseLength, Bool_t *detectors=0) |
|
Bool_t | IsZeroSuppressed (UShort_t ddl) const |
|
UShort_t | NoiseFactor (UShort_t ddl) const |
|
Int_t | NextSample (UShort_t &det, Char_t &rng, UShort_t &sec, UShort_t &str, UShort_t &sam, UShort_t &rat, Short_t &adc, Bool_t &zs, UShort_t &fac) |
|
Int_t | NextSignal (UShort_t &det, Char_t &rng, UShort_t &sec, UShort_t &str, Short_t &adc, Bool_t &zs, UShort_t &fac) |
|
UShort_t | GetNErrors (UShort_t ddl) const |
|
UShort_t | GetL1Phase (UShort_t ddl) const |
|
|
| AliFMDRawReader (const AliFMDRawReader &o) |
|
AliFMDRawReader & | operator= (const AliFMDRawReader &) |
|
Int_t | NewDDL (AliAltroRawStreamV3 &input, UShort_t &det) |
|
Int_t | NewChannel (const AliAltroRawStreamV3 &input, UShort_t det, Char_t &ring, UShort_t &sec, Short_t &strbase) |
|
Bool_t | NewBunch (const AliAltroRawStreamV3 &input, UShort_t &start, UShort_t &length) |
|
Int_t | NewSample (const AliAltroRawStreamV3 &input, Int_t i, UShort_t t, UShort_t sec, UShort_t strbase, Short_t &str, UShort_t &samp) |
|
ULong_t | GetNwords () const |
|
UInt_t | Get32bitWord (Int_t idx) |
|
Int_t | GetHalfringIndex (UShort_t det, Char_t ring, UShort_t board) const |
|
void | AddError (Int_t ddl, Int_t hwaddr) |
|
void | ReadbackError (const AliAltroRawStreamV3 &input, const char *format,...) |
|
Class to read ALTRO formated raw data from an AliRawReader object.
AliRawReader* reader = new AliRawReaderFile(0);
TClonesArray*
array =
new TClonesArray(
"AliFMDDigit");
Definition at line 48 of file AliFMDRawReader.h.
AliFMDRawReader::AliFMDRawReader |
( |
AliRawReader * |
reader, |
|
|
TTree * |
array |
|
) |
| |
virtual AliFMDRawReader::~AliFMDRawReader |
( |
| ) |
|
|
inlinevirtual |
Copy constructor
- Parameters
-
o | Object to construct from |
Definition at line 204 of file AliFMDRawReader.h.
void AliFMDRawReader::AddError |
( |
Int_t |
ddl, |
|
|
Int_t |
hwaddr |
|
) |
| |
|
protected |
void AliFMDRawReader::Exec |
( |
Option_t * |
option = "" | ) |
|
|
virtual |
UInt_t AliFMDRawReader::Get32bitWord |
( |
Int_t |
idx | ) |
|
|
protected |
Int_t AliFMDRawReader::GetHalfringIndex |
( |
UShort_t |
det, |
|
|
Char_t |
ring, |
|
|
UShort_t |
board |
|
) |
| const |
|
protected |
UShort_t AliFMDRawReader::GetL1Phase |
( |
UShort_t |
ddl | ) |
const |
|
inline |
Get the phase of the L1 signal
- Parameters
-
ddl | DDL number ([0,kNDDL-1]) |
- Returns
- Phase of the L1 signal in steps of 25ns.
Definition at line 188 of file AliFMDRawReader.h.
UShort_t AliFMDRawReader::GetNErrors |
( |
UShort_t |
ddl | ) |
const |
|
inline |
ULong_t AliFMDRawReader::GetNwords |
( |
| ) |
const |
|
inlineprotected |
Get the number of words
- Returns
- Number of 32bit words
Definition at line 284 of file AliFMDRawReader.h.
Bool_t AliFMDRawReader::IsZeroSuppressed |
( |
UShort_t |
ddl | ) |
const |
|
inline |
Bool_t AliFMDRawReader::NewBunch |
( |
const AliAltroRawStreamV3 & |
input, |
|
|
UShort_t & |
start, |
|
|
UShort_t & |
length |
|
) |
| |
|
protected |
Process a new bunch.
- Parameters
-
input | Input stream |
start | On input, the old start time. On return, the start time |
length | On return, the bunch length |
- Returns
- true on success, false otherwise
Definition at line 348 of file AliFMDRawReader.cxx.
Referenced by NextSample(), operator=(), and ReadAdcs().
Int_t AliFMDRawReader::NewChannel |
( |
const AliAltroRawStreamV3 & |
input, |
|
|
UShort_t |
det, |
|
|
Char_t & |
ring, |
|
|
UShort_t & |
sec, |
|
|
Short_t & |
strbase |
|
) |
| |
|
protected |
Processs a new channel. Sets the internal data members fMinStrip, fMaxStrip, and fPreSamp.
- Parameters
-
input | Input stream |
det | Detector number |
ring | On return, the ring identifier |
sec | On return, the sector number |
strbase | On return, the strip base |
- Returns
- negative value in case of problems, hardware address otherwise
Definition at line 295 of file AliFMDRawReader.cxx.
Referenced by NextSample(), operator=(), and ReadAdcs().
Int_t AliFMDRawReader::NewDDL |
( |
AliAltroRawStreamV3 & |
input, |
|
|
UShort_t & |
det |
|
) |
| |
|
protected |
Process a new DDL. Sets the internal data members fZeroSuppress, fSampleRate, and fNoiseFactor based on information in the RCU trailer.
- Parameters
-
input | Input stream |
det | On return, the detector number |
- Returns
- negative value in case of problems, the DDL number otherwise
Definition at line 162 of file AliFMDRawReader.cxx.
Referenced by NextSample(), operator=(), and ReadAdcs().
Int_t AliFMDRawReader::NewSample |
( |
const AliAltroRawStreamV3 & |
input, |
|
|
Int_t |
i, |
|
|
UShort_t |
t, |
|
|
UShort_t |
sec, |
|
|
UShort_t |
strbase, |
|
|
Short_t & |
str, |
|
|
UShort_t & |
samp |
|
) |
| |
|
protected |
Process a new timebin
- Parameters
-
input | Input stream |
i | Index into bunch data |
t | Time |
sec | Sector number |
strbase | Base of strip numbers for this channel |
str | On return, the strip number |
samp | On return, the sample number |
- Returns
- negative value in case of problems, ADC value otherwise
Definition at line 387 of file AliFMDRawReader.cxx.
Referenced by NextSample(), operator=(), and ReadAdcs().
Int_t AliFMDRawReader::NextSample |
( |
UShort_t & |
det, |
|
|
Char_t & |
rng, |
|
|
UShort_t & |
sec, |
|
|
UShort_t & |
str, |
|
|
UShort_t & |
sam, |
|
|
UShort_t & |
rat, |
|
|
Short_t & |
adc, |
|
|
Bool_t & |
zs, |
|
|
UShort_t & |
fac |
|
) |
| |
Get the next signal
- Parameters
-
det | On return, the detector |
rng | On return, the ring |
sec | On return, the sector |
str | On return, the strip |
sam | On return, the sample |
rat | On return, the sample rate |
adc | On return, the ADC value |
zs | On return, whether zero-supp. is enabled |
fac | On return, the usd noise factor |
- Returns
- 0 if there's no more data. -1 if the read sample corresponds to a bad bunch in the channel. Positive return values represent a bit mask of
- 0x1 New DDL
- 0x2 New Channel
- 0x4 New Bunch
- 0x8 New Sample
Definition at line 446 of file AliFMDRawReader.cxx.
Referenced by AliFMDReconstructor::Digitize(), NextSignal(), and NoiseFactor().
Int_t AliFMDRawReader::NextSignal |
( |
UShort_t & |
det, |
|
|
Char_t & |
rng, |
|
|
UShort_t & |
sec, |
|
|
UShort_t & |
str, |
|
|
Short_t & |
adc, |
|
|
Bool_t & |
zs, |
|
|
UShort_t & |
fac |
|
) |
| |
Get the next signal
- Parameters
-
det | On return, the detector |
rng | On return, the ring |
sec | On return, the sector |
str | On return, the strip |
adc | On return, the ADC value |
zs | On return, whether zero-supp. is enabled |
fac | On return, the usd noise factor |
- Returns
- 0 if there's no more data. -1 if the read sample corresponds to a bad bunch in the channel. Positive return values represent a bit mask of
- 0x1 New DDL
- 0x2 New Channel
- 0x4 New Bunch
- 0x8 New Sample
Definition at line 596 of file AliFMDRawReader.cxx.
Referenced by NoiseFactor(), AliFMDReconstructor::Reconstruct(), and TestRawReader().
UShort_t AliFMDRawReader::NoiseFactor |
( |
UShort_t |
ddl | ) |
const |
|
inline |
Assignment operator
- Returns
- Reference to this object
Definition at line 224 of file AliFMDRawReader.h.
Bool_t AliFMDRawReader::ReadAdcs |
( |
TClonesArray * |
array | ) |
|
|
virtual |
Read ADCs into a unsigned short map.
- Parameters
-
- Returns
- true on success
Definition at line 784 of file AliFMDRawReader.cxx.
void AliFMDRawReader::ReadbackError |
( |
const AliAltroRawStreamV3 & |
input, |
|
|
const char * |
format, |
|
|
|
... |
|
) |
| |
|
protected |
Read SOD event into passed objects.
- Parameters
-
samplerate | The sample rate object to fill |
striprange | The strip range object to fill |
pulseSize | The pulse size object to fill |
pulseLength | The pulse length (in events) object to fill |
- Returns
true
on success
Definition at line 865 of file AliFMDRawReader.cxx.
Referenced by SetVerbose(), and AliFMDBaseDA::WriteConditionsData().
Bool_t AliFMDRawReader::SelectSample |
( |
UShort_t |
samp, |
|
|
UShort_t |
rate |
|
) |
| |
|
static |
void AliFMDRawReader::SetVerbose |
( |
Bool_t |
verb = kTRUE | ) |
|
|
inline |
UChar_t* AliFMDRawReader::fData |
|
protected |
TClonesArray AliFMDRawReader::fErrors |
|
protected |
UShort_t AliFMDRawReader::fL1Phase[kNDDL] |
|
protected |
UShort_t AliFMDRawReader::fMaxStrip |
|
protected |
UShort_t AliFMDRawReader::fMinStrip |
|
protected |
ULong_t AliFMDRawReader::fNbytes |
|
protected |
UShort_t AliFMDRawReader::fNErrAddress |
|
protected |
UShort_t AliFMDRawReader::fNErrChanLen |
|
protected |
UShort_t AliFMDRawReader::fNErrors[kNDDL] |
|
protected |
UShort_t AliFMDRawReader::fNoiseFactor[kNDDL] |
|
protected |
UShort_t AliFMDRawReader::fPreSamp |
|
protected |
AliRawReader* AliFMDRawReader::fReader |
|
protected |
UShort_t AliFMDRawReader::fSampleRate[kNDDL] |
|
protected |
TTree* AliFMDRawReader::fTree |
|
protected |
Bool_t AliFMDRawReader::fVerbose |
|
protected |
Bool_t AliFMDRawReader::fZeroSuppress[kNDDL] |
|
protected |
The documentation for this class was generated from the following files: