StRoot  1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
EEmcHit.cxx
1 /*
2  * Created by S. Gliske, May 2012
3  *
4  * Description: see header.
5  *
6  */
7 
8 #include <Rtypes.h>
9 #include <TObject.h>
10 
11 #include "StRoot/StEEmcPool/./EEmcTreeContainers/EEmcHit.h"
12 
13 EEmcHit_t::EEmcHit_t() : uClusIdx(-1), vClusIdx(-1), x(0), y(0), eta(0), phi(0), eTow(0), ePost(0), ePre1(0), ePre2(0),
14  centralTowerIdx(-1), numUsedTowers(0) {
15 
16  for( Int_t i=0; i<kMaxNumTowers; ++i ){
17  usedTowerIdx[i] = -1;
18  usedTowerWeight[i] = 0;
19  };
20 };
21 
22 void EEmcHit_t::Clear( const Option_t* ){
23  uClusIdx = -1;
24  vClusIdx = -1;
25  x = y = eta = phi = 0;
26  eTow = ePre1 = ePre2 = ePost = 0;
27 
28  centralTowerIdx = -1;
29  numUsedTowers = 0;
30 
31  for( Int_t i=0; i<kMaxNumTowers; ++i ){
32  usedTowerIdx[i] = -1;
33  usedTowerWeight[i] = 0;
34  };
35 };
36 
37 ClassImp( EEmcHit_t );
38 
39 /*
40  * $Id: EEmcHit.cxx,v 1.1 2012/11/26 19:04:30 sgliske Exp $
41  * $Log: EEmcHit.cxx,v $
42  * Revision 1.1 2012/11/26 19:04:30 sgliske
43  * moved from offline/users/sgliske/StRoot/StEEmcPool/EEmcTreeContainers to StRoot/StEEmcPool/EEmcTreeContainers
44  *
45  *
46  */