CMS 3D CMS Logo

EcalPseudoStripInputSample.h
Go to the documentation of this file.
1 #ifndef ECALPSEUDOSTRIPINPUTSAMPLE_H
2 #define ECALPSEUDOSTRIPINPUTSAMPLE_H
3 
4 #include <ostream>
5 #include <cstdint>
6 
13 public:
16  EcalPseudoStripInputSample(int pseudoStripInput, bool finegrain);
17 
19  void setValue(uint16_t data) { theSample = data; }
21  uint16_t raw() const { return theSample; }
23  int pseudoStripInput() const { return theSample & 0xFFF; }
25  bool fineGrain() const { return (theSample & 0x1000) != 0; }
26 
28  uint16_t operator()() { return theSample; }
29 
30 private:
31  uint16_t theSample;
32 };
33 
34 std::ostream& operator<<(std::ostream& s, const EcalPseudoStripInputSample& samp);
35 
36 #endif
uint16_t operator()()
for streaming
bool fineGrain() const
get the fine-grain bit (1 bit, the 13-th)
int pseudoStripInput() const
get the pseudoStrip Input amplitude (12 bits)
uint16_t raw() const
get the raw word
std::ostream & operator<<(std::ostream &s, const EcalPseudoStripInputSample &samp)
void setValue(uint16_t data)
Set data.
char data[epos_bytes_allocation]
Definition: EPOS_Wrapper.h:79