/** @file CbmRawMessage.h ** @author Florian Uhlig ** @date 15.08.2014 **/ #ifndef CBMRAWMESSAGE_H #define CBMRAWMESSAGE_H 1 #include "TObject.h" /** @class CbmDigi ** @brief Base class for representation of raw information which comes from the FLIB ind CbmNet messages. ** @author Florian Uhlig ** @version 1.0 ** ** CbmRawMessage is a base class for the ROOT representation of ** the smallest information unit delivered by the detector front-ends. ** This data is packed into CbmNet messages in the FLIB and either read ** from file or directly from memory. ** The CbmRawMessage contains the complete information from a single hit of *a single electronics channel and should be context free. ** The absolute time and the unique channel number has to be ** calculated in another data level, probably the Digi. ** The information content is the FLIB link, the feb id within this link, the channel ID within this feb, ** the corresponding epoch marker (0 if there was no previous one), and the ** time stamp from the last epoch marker. ** **/ class CbmRawMessage : public TObject { public: /** Default constructor **/ CbmRawMessage(); /** Constructor **/ CbmRawMessage(Int_t EquipmentID, Int_t SourceAdress, Int_t ChannelId, Int_t EpochMarker, Int_t Time); /** Copy constructor **/ // CbmRawMessage(const CbmRawMessage&); /** Destructor **/ virtual ~CbmRawMessage() { }; /** Assignment operator **/ // CbmRawMessage& operator=(const CbmRawMessage&); Int_t GetEquipmentID() { return fEquipmentID; } Int_t GetSourceAddress() { return fSourceAddress; } Int_t GetChannelID() { return fChannelID; } Int_t GetEpochMarker() { return fEpochMarker; } Int_t GetTime() { return fTime; } ULong_t GetFullTime() { return 0L;} protected: Int_t fEquipmentID; Int_t fSourceAddress; Int_t fChannelID; Int_t fEpochMarker; Int_t fTime; ClassDef(CbmRawMessage,2); }; #endif