CMS 3D CMS Logo

HcalTriggerPrimitiveSample.h
Go to the documentation of this file.
1 #ifndef HCALTRIGGERPRIMITIVESAMPLE_H
2 #define HCALTRIGGERPRIMITIVESAMPLE_H 1
3 
4 #include <ostream>
5 #include <cstdint>
6 
12 public:
15  HcalTriggerPrimitiveSample(int encodedEt, bool finegrain, int slb, int slbchan);
16  HcalTriggerPrimitiveSample(int encodedEt, int finegrainExtended);
17 
19  uint16_t raw() const { return theSample; }
21  int compressedEt() const { return theSample & 0xFF; }
23  bool fineGrain(int i = 0) const { return (((theSample) >> (i + 8)) & 0x1) != 0; }
24 
25 private:
26  uint16_t theSample;
27 };
28 
29 std::ostream& operator<<(std::ostream& s, const HcalTriggerPrimitiveSample& samp);
30 
31 #endif
mps_fire.i
i
Definition: mps_fire.py:428
HcalTriggerPrimitiveSample
Definition: HcalTriggerPrimitiveSample.h:11
HcalTriggerPrimitiveSample::HcalTriggerPrimitiveSample
HcalTriggerPrimitiveSample()
Definition: HcalTriggerPrimitiveSample.cc:3
operator<<
std::ostream & operator<<(std::ostream &s, const HcalTriggerPrimitiveSample &samp)
Definition: HcalTriggerPrimitiveSample.cc:14
slb
static int slb(const HcalTriggerPrimitiveSample &theSample)
Definition: CastorUnpacker.cc:71
HcalTriggerPrimitiveSample::raw
uint16_t raw() const
get the raw word
Definition: HcalTriggerPrimitiveSample.h:19
testProducerWithPsetDescEmpty_cfi.x1
x1
Definition: testProducerWithPsetDescEmpty_cfi.py:33
HcalTriggerPrimitiveSample::compressedEt
int compressedEt() const
get the encoded/compressed Et
Definition: HcalTriggerPrimitiveSample.h:21
alignCSCRings.s
s
Definition: alignCSCRings.py:92
HcalTriggerPrimitiveSample::theSample
uint16_t theSample
Definition: HcalTriggerPrimitiveSample.h:26
data
char data[epos_bytes_allocation]
Definition: EPOS_Wrapper.h:79
HcalTriggerPrimitiveSample::fineGrain
bool fineGrain(int i=0) const
get fine-grain bit (traditional)
Definition: HcalTriggerPrimitiveSample.h:23