CMS 3D CMS Logo

EcalPseudoStripInputSample.cc
Go to the documentation of this file.
2 
5 
6 EcalPseudoStripInputSample::EcalPseudoStripInputSample(int pseudoStripInput, bool fineGrain) {
7  theSample = (pseudoStripInput & 0xFFF) | ((fineGrain) ? (0x1000) : (0));
8 }
9 
10 std::ostream& operator<<(std::ostream& s, const EcalPseudoStripInputSample& samp) {
11  return s << "PSInput=" << samp.pseudoStripInput() << ", FG=" << samp.fineGrain();
12 }
int pseudoStripInput() const
get the pseudoStrip Input amplitude (12 bits)
char data[epos_bytes_allocation]
Definition: EPOS_Wrapper.h:80
std::ostream & operator<<(std::ostream &s, const EcalPseudoStripInputSample &samp)
bool fineGrain() const
get the fine-grain bit (1 bit, the 13-th)