CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
EcalTriggerPrimitiveSample.cc
Go to the documentation of this file.
2 
3 
4 
7 
8 EcalTriggerPrimitiveSample::EcalTriggerPrimitiveSample(int encodedEt, bool fineGrain, int ttFlag) {
9  theSample=((ttFlag&0x7)<<9)|(encodedEt&0xFF)|
10  ((fineGrain)?(0x100):(0));
11 }
12 
13 
14 std::ostream& operator<<(std::ostream& s, const EcalTriggerPrimitiveSample& samp) {
15  return s << "ET=" << samp.compressedEt() << ", FG=" << samp.fineGrain() << ", TTF=" << samp.ttFlag();
16 }
17 
18 
int compressedEt() const
get the encoded/compressed Et (8 bits)
std::ostream & operator<<(std::ostream &out, const ALILine &li)
Definition: ALILine.cc:187
bool fineGrain() const
get the fine-grain bit (1 bit)
int ttFlag() const
get the Trigger tower Flag (3 bits)
string s
Definition: asciidump.py:422