CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
EcalTBTDCSample.cc
Go to the documentation of this file.
2 
3 
4 EcalTBTDCSample::EcalTBTDCSample(unsigned int tdcChan, unsigned int tdcVal) {
5  theSample=(tdcVal&0xFFFFFF) | ((tdcChan&0xFF)<<24);
6 }
7 
8 std::ostream& operator<<(std::ostream& s, const EcalTBTDCSample& samp) {
9  s << "TDC Channel=" << samp.tdcChannel() << ", Value=" << samp.tdcValue();
10  return s;
11 }
unsigned int tdcChannel() const
get the gainId (8 bits)
std::ostream & operator<<(std::ostream &out, const ALILine &li)
Definition: ALILine.cc:187
unsigned int tdcValue() const
get the ADC sample (24 bits)
string s
Definition: asciidump.py:422