28 #include "EEmcTower.h"
30 #if !defined(ST_NO_NAMESPACES)
37 static const int kMaxLabelLen = 16;
47 if( ! ParseLabel(label) )
return;
55 EEmcTower::ParseLabel(
const char *label)
57 if(label==NULL)
return false;
58 char const *p = label;
63 while( *p != 0x00 && !islower(*p) && !isupper(*p) && !isdigit(*p) ) p++;
64 int r=sscanf(p,
"%02d%1c%1c%02d",&s,&t,&ss,&e);
65 if(toupper(t)!=
'T')
return false;
66 if(r!=4)
return false;
79 static char labelBuffer[kMaxLabelLen];
91 out <<
" ADC=\"" << mADC <<
"\"";
92 out <<
" EDEP=\"" << mEdep <<
"\"";
99 ostream& operator<<(ostream &out,
const EEmcTower &t ) {
EEmcTower()
the default constructor
const char * TowerLabel() const
returns tower label, e.g. "05TB09"
int SubSecLabel() const
gets tower subsector label, human offset [A..E]
ostream & Out(ostream &out) const
print tower hit info in xml-like style
int SecLabel() const
gets tower sector label, human offset [1..12]
int EtaLabel() const
gets tower eta label, human offset [1..12]
EEmcTower holds information about an EEMC tower 'hit'.