StRoot  1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
EEmcEnergy.cxx
1 /*
2  * Created by S. Gliske, May 2012
3  *
4  * Description: see header.
5  *
6  */
7 
8 #include "StRoot/StEEmcPool/./EEmcTreeContainers/EEmcEnergy.h"
9 
10 //
11 // TOWERS
12 //
13 
14 EEmcElement_t::EEmcElement_t() : fail( 0 ), energy( 0 ) { /* */ };
15 
16 ClassImp( EEmcElement_t );
17 
18 void ETowEnergy_t::Clear(){
19  for( EEmcElement_t *p=element; p != &element[720]; ++p )
20  p->Clear();
21 };
22 
23 ClassImp( ETowEnergy_t );
24 
25 
26 
27 //
28 // STRIPS
29 //
30 
31 ClassImp( ESmdLayer_t);
32 ClassImp( ESmdSector_t );
33 ClassImp( ESmdEnergy_t );
34 
35 void ESmdLayer_t::Clear(){
36  for( EEmcElement_t *p=strip; p != &strip[288]; ++p )
37  p->Clear();
38 };
39 
40 void ESmdSector_t::Clear(){
41  layer[0].Clear();
42  layer[1].Clear();
43 };
44 
45 void ESmdEnergy_t::Clear(){
46  for( ESmdSector_t *p=sec; p != &sec[12]; ++p )
47  p->Clear();
48 };
49 
50 //
51 // TOTAL EEMC
52 //
53 
54 ClassImp( EEmcEnergy_t );
55 
56 void EEmcEnergy_t::Clear(const Option_t* ){
57  eTow.Clear();
58  ePre1.Clear();
59  ePre2.Clear();
60  ePost.Clear();
61  eSmd.Clear();
62 
63  nTowers = nStrips = 0;
64 };
65 
66 /*
67  * $Id: EEmcEnergy.cxx,v 1.1 2012/11/26 19:04:30 sgliske Exp $
68  * $Log: EEmcEnergy.cxx,v $
69  * Revision 1.1 2012/11/26 19:04:30 sgliske
70  * moved from offline/users/sgliske/StRoot/StEEmcPool/EEmcTreeContainers to StRoot/StEEmcPool/EEmcTreeContainers
71  *
72  *
73  */