X-Git-Url: http://git.uio.no/git/?p=u%2Fmrichter%2FAliRoot.git;a=blobdiff_plain;f=RAW%2FAliAltroRawStream.h;h=ab0271f7b36e8bf475d92049b7202b2770427ac8;hp=84abd12a2ddc164b320435bc9a361281a8100e81;hb=7e18047e1d6af15f1ae102e5a733fcc91080c937;hpb=aa93c798e8af438ee81450096239eb42c28169bb diff --git a/RAW/AliAltroRawStream.h b/RAW/AliAltroRawStream.h index 84abd12a2dd..ab0271f7b36 100644 --- a/RAW/AliAltroRawStream.h +++ b/RAW/AliAltroRawStream.h @@ -8,6 +8,8 @@ /////////////////////////////////////////////////////////////////////////////// /// /// This is a base class for reading raw data digits in Altro format +/// The class is able to read both old and new RCU trailer formats +/// One can switch between formats using fIsOldRCUFormat flag /// /////////////////////////////////////////////////////////////////////////////// @@ -43,6 +45,9 @@ class AliAltroRawStream: public TObject { void SelectRawData(Int_t detId); // Select raw data for specific detector id + void SetNoAltroMapping(Bool_t flag) { fNoAltroMapping = flag; } // Specify whenever to use or not the altro mapping + void SetOldRCUFormat(Bool_t flag) { fIsOldRCUFormat = flag; } // Specify whenever to use or not the old RCU trailer format + protected: AliAltroRawStream(const AliAltroRawStream& stream); AliAltroRawStream& operator = (const AliAltroRawStream& stream); @@ -50,6 +55,8 @@ class AliAltroRawStream: public TObject { Bool_t fNoAltroMapping; // temporary flag in case of no altro mapping is provided Short_t fSegmentation[3]; // temporary container for the dummy trailer, to be removed + Bool_t fIsOldRCUFormat; // flag used to select between old and new RCU trailer format + private : UShort_t GetNextWord();