Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2021-02-14 13:26:21

0001 #ifndef TFHeaderDescription_h
0002 #define TFHeaderDescription_h
0003 
0004 #define FEDPMC_TYPE 0xDEF00001
0005 #define FEDEMU_TYPE 0xDEF00003
0006 #define FED9U_TYPE 0xDEF00002
0007 #define FEDTRG_TYPE 0xDEF0DEF0
0008 #include <cstdio>
0009 
0010 class TFHeaderDescription {
0011 private:
0012   unsigned long bunchCrossing_;
0013   unsigned long numberOfChannels_;
0014   unsigned long numberOfSamples_;
0015   unsigned long fedType_;
0016   unsigned long fedId_;
0017   unsigned long fedEventNumber_;
0018 
0019 public:
0020   void setBunchCrossing(unsigned long t) { bunchCrossing_ = t; }
0021   void setNumberOfChannels(unsigned long t) { numberOfChannels_ = t; }
0022   void setNumberOfSamples(unsigned long t) { numberOfSamples_ = t; }
0023   void setFedType(unsigned long t) { fedType_ = t; }
0024   void setFedId(unsigned long t) { fedId_ = t; }
0025   void setFedEventNumber(unsigned long t) { fedEventNumber_ = t; }
0026   unsigned long getBunchCrossing() const { return bunchCrossing_; }
0027   unsigned long getNumberOfChannels() const { return numberOfChannels_; }
0028   unsigned long getNumberOfSamples() const { return numberOfSamples_; }
0029   unsigned long getFedType() const { return fedType_; }
0030   unsigned long getFedId() const { return fedId_; }
0031   unsigned long getFedEventNumber() const { return fedEventNumber_; }
0032   void Print() const {
0033     printf(
0034         "Bunch crossing %lx \n Number Of Channels %ld \n Number of Samples %ld \n Fed Type %lx \n Fed Id %lx \n Fed "
0035         "Event Number %ld \n",
0036         bunchCrossing_,
0037         numberOfChannels_,
0038         numberOfSamples_,
0039         fedType_,
0040         fedId_,
0041         fedEventNumber_);
0042   }
0043 };
0044 
0045 #endif