00001
00002
00003 #ifndef XAODTRIGL1CALO_VERSIONS_JEMTOBROI_V1_H
00004 #define XAODTRIGL1CALO_VERSIONS_JEMTOBROI_V1_H
00005
00006
00007 #include "AthLinks/ElementLink.h"
00008 #include "AthContainers/AuxElement.h"
00009
00010 namespace xAOD{
00011
00018
00019 class JEMTobRoI_v1 : public SG::AuxElement {
00020 public:
00022 JEMTobRoI_v1();
00024 virtual ~JEMTobRoI_v1(){}
00025
00027 uint32_t roiWord() const;
00029 void setRoiWord(uint32_t);
00030
00032 int crate() const;
00034 int jem() const;
00036 int frame() const;
00038 int location() const;
00040 int energyLarge() const;
00042 int energySmall() const;
00043
00044 virtual void initialize(const int crate, const int jem, const int frame,
00045 const int location, const int energyLarge, const int energySmall );
00046
00047 private:
00048
00050 static const int s_wordIdVal = 0;
00051
00052 static const int s_wordIdBit = 29;
00053 static const int s_crateBit = 28;
00054 static const int s_jemBit = 24;
00055 static const int s_frameBit = 21;
00056 static const int s_locationBit = 19;
00057 static const int s_energySmallBit = 10;
00058 static const int s_energyLargeBit = 0;
00059
00060 static const int s_wordIdMask = 0x7;
00061 static const int s_crateMask = 0x1;
00062 static const int s_jemMask = 0xf;
00063 static const int s_frameMask = 0x7;
00064 static const int s_locationMask = 0x3;
00065 static const int s_energySmallMask = 0x1ff;
00066 static const int s_energyLargeMask = 0x3ff;
00067
00068 };
00069 }
00070 #endif
00071