StRoot  1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
StEEmcStrip.cxx
1 #include "StEEmcStrip.h"
2 
3 ClassImp(StEEmcStrip);
4 
5 // ----------------------------------------------------------------------------
7 {
8  mIndex=-1;
9  mPlane=-1;
10  mSector=-1;
11 }
12 
13 // ----------------------------------------------------------------------------
14 void StEEmcStrip::print()
15 {
16 
17 }
18 
19 // ----------------------------------------------------------------------------
20 void StEEmcStrip::index(Int_t i)
21 {
22  mIndex=i;
23  mName="";
24 
25  const Char_t *secs[]={"01","02","03","04","05","06","07","08","09","10","11","12"};
26  const Char_t *plns[]={"U","V"};
27 
28  mName="";
29  mName += secs[mSector];
30  mName += plns[mPlane];
31 
32  if ( mIndex+1<100 ) mName += "0";
33  if ( mIndex+1<10 ) mName += "0";
34  mName+=mIndex+1;
35 
36 }
Int_t index() const
Returns the index containing this strip.
Definition: StEEmcStrip.h:28
StEEmcStrip()
Constructor.
Definition: StEEmcStrip.cxx:17
void print() const
Prints information about strip.
Definition: StEEmcStrip.cxx:26
Base class for describing an endcap SMD strip.
Definition: StEEmcStrip.h:8