ROOT logo
AliRoot » RAW » AliAltroBufferV3

class AliAltroBufferV3: public AliAltroBuffer

Function Members (Methods)

public:
AliAltroBufferV3(const char* fileName, AliAltroMapping* mapping = NULL)
virtual~AliAltroBufferV3()
voidTObject::AbstractMethod(const char* method) const
virtual voidTObject::AppendPad(Option_t* option = "")
virtual voidTObject::Browse(TBrowser* b)
static TClass*Class()
virtual const char*TObject::ClassName() const
virtual voidTObject::Clear(Option_t* = "")
virtual TObject*TObject::Clone(const char* newname = "") const
virtual Int_tTObject::Compare(const TObject* obj) const
virtual voidTObject::Copy(TObject& object) const
virtual voidTObject::Delete(Option_t* option = "")MENU
virtual Int_tTObject::DistancetoPrimitive(Int_t px, Int_t py)
virtual voidTObject::Draw(Option_t* option = "")
virtual voidTObject::DrawClass() constMENU
virtual TObject*TObject::DrawClone(Option_t* option = "") constMENU
virtual voidTObject::Dump() constMENU
virtual voidTObject::Error(const char* method, const char* msgfmt) const
virtual voidTObject::Execute(const char* method, const char* params, Int_t* error = 0)
virtual voidTObject::Execute(TMethod* method, TObjArray* params, Int_t* error = 0)
virtual voidTObject::ExecuteEvent(Int_t event, Int_t px, Int_t py)
virtual voidTObject::Fatal(const char* method, const char* msgfmt) const
virtual voidFillBuffer(Int_t val)
virtual TObject*TObject::FindObject(const char* name) const
virtual TObject*TObject::FindObject(const TObject* obj) const
voidAliAltroBuffer::Flush()
virtual Option_t*TObject::GetDrawOption() const
static Long_tTObject::GetDtorOnly()
virtual const char*TObject::GetIconName() const
virtual const char*TObject::GetName() const
virtual char*TObject::GetObjectInfo(Int_t px, Int_t py) const
static Bool_tTObject::GetObjectStat()
virtual Option_t*TObject::GetOption() const
virtual const char*TObject::GetTitle() const
virtual UInt_tTObject::GetUniqueID() const
virtual Bool_tTObject::HandleTimer(TTimer* timer)
virtual ULong_tTObject::Hash() const
virtual voidTObject::Info(const char* method, const char* msgfmt) const
virtual Bool_tTObject::InheritsFrom(const char* classname) const
virtual Bool_tTObject::InheritsFrom(const TClass* cl) const
virtual voidTObject::Inspect() constMENU
voidTObject::InvertBit(UInt_t f)
virtual TClass*IsA() const
virtual Bool_tTObject::IsEqual(const TObject* obj) const
virtual Bool_tTObject::IsFolder() const
Bool_tTObject::IsOnHeap() const
virtual Bool_tTObject::IsSortable() const
Bool_tTObject::IsZombie() const
virtual voidTObject::ls(Option_t* option = "") const
voidTObject::MayNotUse(const char* method) const
virtual Bool_tTObject::Notify()
voidTObject::Obsolete(const char* method, const char* asOfVers, const char* removedFromVers) const
static voidTObject::operator delete(void* ptr)
static voidTObject::operator delete(void* ptr, void* vp)
static voidTObject::operator delete[](void* ptr)
static voidTObject::operator delete[](void* ptr, void* vp)
void*TObject::operator new(size_t sz)
void*TObject::operator new(size_t sz, void* vp)
void*TObject::operator new[](size_t sz)
void*TObject::operator new[](size_t sz, void* vp)
virtual voidTObject::Paint(Option_t* option = "")
virtual voidTObject::Pop()
virtual voidTObject::Print(Option_t* option = "") const
virtual Int_tTObject::Read(const char* name)
virtual voidTObject::RecursiveRemove(TObject* obj)
voidTObject::ResetBit(UInt_t f)
virtual voidTObject::SaveAs(const char* filename = "", Option_t* option = "") constMENU
virtual voidTObject::SavePrimitive(basic_ostream<char,char_traits<char> >& out, Option_t* option = "")
voidSetActiveFECsA(UShort_t m)
voidSetActiveFECsB(UShort_t m)
voidSetALTROCFG1(UInt_t cfg1)
voidSetALTROCFG2(UInt_t cfg2)
voidSetBaselineCorr(UChar_t v)
voidTObject::SetBit(UInt_t f)
voidTObject::SetBit(UInt_t f, Bool_t set)
virtual voidTObject::SetDrawOption(Option_t* option = "")MENU
static voidTObject::SetDtorOnly(void* obj)
voidSetERRREG2(UInt_t v)
voidSetERRREG3(UInt_t v)
voidSetFECERRA(UInt_t v)
voidSetFECERRB(UInt_t v)
voidSetGlitchFilter(UChar_t v)
voidSetL1Phase(Double_t v)
voidAliAltroBuffer::SetMapping(AliAltroMapping* mapping)
voidSetNAltroBuffers(Bool_t v)
voidSetNChAddrMismatch(UShort_t v)
voidSetNChLengthMismatch(UShort_t v)
voidSetNNonZSPostsamples(UChar_t v)
voidSetNNonZSPresamples(UChar_t v)
voidSetNPostsamples(UChar_t v)
voidSetNPresamples(UChar_t v)
voidSetNPretriggerSamples(UChar_t v)
voidSetNSamplesPerCh(UShort_t v)
static voidTObject::SetObjectStat(Bool_t stat)
voidSetPolarity(Bool_t v)
voidSetSecondBaselineCorr(Bool_t v)
voidSetSparseRO(Bool_t v)
voidSetTSample(Double_t v)
virtual voidTObject::SetUniqueID(UInt_t uid)
voidAliAltroBuffer::SetVerbose(Int_t val)
voidSetZeroSupp(Bool_t v)
virtual voidShowMembers(TMemberInspector&)
virtual voidStreamer(TBuffer&)
voidStreamerNVirtual(TBuffer& ClassDef_StreamerNVirtual_b)
virtual voidTObject::SysError(const char* method, const char* msgfmt) const
Bool_tTObject::TestBit(UInt_t f) const
Int_tTObject::TestBits(UInt_t f) const
virtual voidTObject::UseCurrentStyle()
virtual voidTObject::Warning(const char* method, const char* msgfmt) const
virtual Int_tTObject::Write(const char* name = 0, Int_t option = 0, Int_t bufsize = 0)
virtual Int_tTObject::Write(const char* name = 0, Int_t option = 0, Int_t bufsize = 0) const
Int_tAliAltroBuffer::WriteBunch(Int_t nTimeBins, const Int_t* adcValues, Int_t threshold = 0)
voidAliAltroBuffer::WriteChannel(Short_t hwAddress, Int_t nTimeBins, const Int_t* adcValues, Int_t threshold = 0)
voidAliAltroBuffer::WriteChannel(Int_t padNumber, Int_t rowNumber, Int_t secNumber, Int_t nTimeBins, const Int_t* adcValues, Int_t threshold = 0)
voidAliAltroBuffer::WriteDataHeader(Bool_t dummy, Bool_t compressed)
virtual UChar_tWriteRCUTrailer(Int_t rcuId)
virtual voidWriteTrailer(Int_t wordsNumber, Short_t hwAddress)
protected:
AliAltroBufferV3(const AliAltroBufferV3& source)
virtual voidTObject::DoError(int level, const char* location, const char* fmt, va_list va) const
voidTObject::MakeZombie()
AliAltroBufferV3&operator=(const AliAltroBufferV3& source)
voidReverseAndWrite()
UInt_tSetField(UInt_t& input, UShort_t start, UInt_t mask, UInt_t val) const

Data Members

protected:
UInt_tfALTROCFG1ALTROCFG1
UInt_tfALTROCFG2ALTROCFG2
UShort_tfActiveFECsAActiveFECsA
UShort_tfActiveFECsBActiveFECsB
UShort_tfArray[1024]Temporary array needed in reverting data order
UInt_tAliAltroBuffer::fBuffer[5]Buffer dimension is 32*5=160 bits and it contains 16 values
Int_tAliAltroBuffer::fCurrentCellThis variable contains the cell number of the cell currently used
UInt_tAliAltroBuffer::fDataHeaderPosData header position
UInt_tfERRREG2ERRREG2
UInt_tfERRREG3ERRREG3
UInt_tfFECERRAFECERRA
UInt_tfFECERRBFECERRB
AliFstream*AliAltroBuffer::fFilelogical name of the I/O file
Int_tAliAltroBuffer::fFreeCellBuffernumber of free cells of the buffer
Double_tfL1PhaseL1Phase
AliAltroMapping*AliAltroBuffer::fMappingPointer to the mapping handler
Int_tfNSize of the temporary array
Int_tAliAltroBuffer::fShiftThis variable contains the number of free bits in the current cell of
Double_tfTSampleTSample
Int_tAliAltroBuffer::fVerboseverbose level

Class Charts

Inheritance Chart:
TObject
AliAltroBuffer
AliAltroBufferV3

Function documentation

AliAltroBufferV3(const char* fileName, AliAltroMapping* mapping = NULL)
 Constructor
~AliAltroBufferV3()
 destructor
AliAltroBufferV3(const AliAltroBufferV3& source)
 Copy Constructor
void FillBuffer(Int_t val)
Fills the Buffer with 16 ten bits words and write into a file
void WriteTrailer(Int_t wordsNumber, Short_t hwAddress)
Writes a trailer (header) of 32 bits using
a given hardware adress
UInt_t SetField(UInt_t& input, UShort_t start, UInt_t mask, UInt_t val) const
void ReverseAndWrite()
 Reverse the altro data order and
 write the buffer to the file
UChar_t WriteRCUTrailer(Int_t rcuId)
 Writes the RCU trailer
 rcuId the is serial number of the corresponding
 RCU. The basic format of the trailer can be
 found in the RCU manual.
 This method should be called at the end of
 raw data writing.
void SetFECERRA(UInt_t v)
this method is used to write the RCU trailer
{ fFECERRA = v; }
void SetFECERRB(UInt_t v)
{ fFECERRB = v; }
void SetERRREG2(UInt_t v)
{ fERRREG2 = v; }
void SetERRREG3(UInt_t v)
{ fERRREG3 = v; }
void SetActiveFECsA(UShort_t m)
{ fActiveFECsA = m; }
void SetActiveFECsB(UShort_t m)
{ fActiveFECsB = m; }
void SetALTROCFG1(UInt_t cfg1)
{ fALTROCFG1 = cfg1; }
void SetALTROCFG2(UInt_t cfg2)
{ fALTROCFG2 = cfg2; }
void SetTSample(Double_t v)
{ fTSample = v; }
void SetL1Phase(Double_t v)
{ fL1Phase = v; }
void SetNChAddrMismatch(UShort_t v)
{ SetField(fERRREG3, 0, 0xFFF, v); }
void SetNChLengthMismatch(UShort_t v)
{ SetField(fERRREG3, 12, 0x1FFF, v); }
void SetBaselineCorr(UChar_t v)
{ SetField(fALTROCFG1, 0, 0xF, v); }
void SetPolarity(Bool_t v)
{ SetField(fALTROCFG1, 4, 0x1, v); }
void SetNPresamples(UChar_t v)
{ SetField(fALTROCFG1, 5, 0x3, v); }
void SetNPostsamples(UChar_t v)
{ SetField(fALTROCFG1, 7, 0xF, v); }
void SetSecondBaselineCorr(Bool_t v)
{ SetField(fALTROCFG1, 11, 0x1, v); }
void SetGlitchFilter(UChar_t v)
{ SetField(fALTROCFG1, 12, 0x3, v); }
void SetNNonZSPostsamples(UChar_t v)
{ SetField(fALTROCFG1, 14, 0x7, v); }
void SetNNonZSPresamples(UChar_t v)
{ SetField(fALTROCFG1, 17, 0x3, v); }
void SetZeroSupp(Bool_t v)
{ SetField(fALTROCFG1, 19, 0x1, v); }
void SetNAltroBuffers(Bool_t v)
{ SetField(fALTROCFG2, 24, 0x1, v); }
void SetNPretriggerSamples(UChar_t v)
{ SetField(fALTROCFG2, 20, 0xF, v); }
void SetNSamplesPerCh(UShort_t v)
{ SetField(fALTROCFG2, 10, 0x3FF, v); }
void SetSparseRO(Bool_t v)
{ SetField(fALTROCFG2, 9, 0x1, v); }