CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
EcalPseudoStripInputSample.h
Go to the documentation of this file.
1 #ifndef ECALPSEUDOSTRIPINPUTSAMPLE_H
2 #define ECALPSEUDOSTRIPINPUTSAMPLE_H
3 
4 #include <boost/cstdint.hpp>
5 #include <ostream>
6 
7 
8 
16  public:
19  EcalPseudoStripInputSample(int pseudoStripInput, bool finegrain);
20 
22  void setValue(uint16_t data){ theSample = data;}
24  uint16_t raw() const { return theSample; }
26  int pseudoStripInput() const { return theSample&0xFFF; }
28  bool fineGrain() const { return (theSample&0x1000)!=0; }
29 
31  uint16_t operator()() { return theSample; }
32 
33  private:
34  uint16_t theSample;
35 };
36 
37 std::ostream& operator<<(std::ostream& s, const EcalPseudoStripInputSample& samp);
38 
39 #endif
uint16_t operator()()
for streaming
std::ostream & operator<<(std::ostream &out, const ALILine &li)
Definition: ALILine.cc:187
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
void setValue(uint16_t data)
Set data.
char data[epos_bytes_allocation]
Definition: EPOS_Wrapper.h:82