StRoot  1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
StMuEmcPoint.cxx
1 //###########################################################
2 // EMC Micro Event
3 // Author: Alexandre A. P. Suaide
4 // initial version 08/2001
5 //
6 // See README for details
7 //###########################################################
8 #include "StMuEmcPoint.h"
9 #include "TString.h"
10 ClassImp(StMuEmcPoint)
11 
13  : TObject()
14 {
15 mEta=mPhi=mRadius=mDeltaEta=mDeltaPhi=mEnergy=mChiSquare=0;
16 memset(mEmc,0,sizeof(mEmc));
17 }
18 StMuEmcPoint::StMuEmcPoint(StMuEmcPoint *point)
19  : TObject(*point)
20 {
21  mEta=point->getEta();
22  mPhi=point->getPhi();
23  mRadius=point->getRadius();
24  mDeltaEta=point->getDeltaEta();
25  mDeltaPhi=point->getDeltaPhi();
26  mEnergy=point->getEnergy();
27  mChiSquare=point->getChiSquare();
28  for(Int_t d=0;d<8;d++)
29  {
30  Int_t EmcDet=d+1;
31  setCluster(point->getCluster(EmcDet),EmcDet);
32  }
33 }
34 StMuEmcPoint::~StMuEmcPoint()
35 {
36  for (int i=0;i<8;i++) {
37 //VP delete mEmc[i]; //VP Unclear who is the owner
38  mEmc[i] = 0;
39  }
40 }
float getChiSquare() const
Return ChiSquare of the point.
Definition: StMuEmcPoint.h:32
float getEnergy() const
Return Energy of the point.
Definition: StMuEmcPoint.h:31
float getDeltaPhi() const
Return DeltaPhi of the point.
Definition: StMuEmcPoint.h:30
StMuEmcCluster * getCluster(Int_t EmcDet)
Return one cluster of the point.
Definition: StMuEmcPoint.h:34
float getDeltaEta() const
Return DeltaEta of the point.
Definition: StMuEmcPoint.h:29
float getPhi() const
Return Phi of the point.
Definition: StMuEmcPoint.h:27
float getRadius() const
return radius of the point
Definition: StMuEmcPoint.h:28
float getEta() const
Return Eta of the point.
Definition: StMuEmcPoint.h:26