StRoot  1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
StGammaTower.cxx
1 #include "StGammaTower.h"
2 
3 ClassImp(StGammaTower);
4 
5 
6 // Mapping between endcap index and sector, subsector, etabin is defined
7 // in StEEmcA2EMaker::index(...)
8 
10 // Calculate sector, subsector, etabin, and //
11 // phibin for EEMC towers. The mapping is //
12 // defined in StEEmcA2EMaker::index() //
14 
15 Int_t StGammaTower::sector()
16 {
17  // Require an endcap tower
18  if( ((Int_t)layer) < 4) return phibin() / 5;
19  else return -1;
20 }
21 
23 {
25  if( ((Int_t)layer) < 4) return phibin() % 5;
26  else return -1;
27 }
28 
29 Int_t StGammaTower::etabin()
30 {
31  // Require an endcap tower
32  if( ((Int_t)layer) < 4) return id % 12;
33  else return -1;
34 }
35 
36 Int_t StGammaTower::phibin()
37 {
38  // Require an endcap tower
39  if( ((Int_t)layer) < 4) return id / 12;
40  else return -1;
41 }
42 
43 
44 
45 
46 
Int_t subsector()