StRoot  1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
StEmcMicroPoint.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 "StEmcMicroPoint.h"
9 #include "TString.h"
10 ClassImp(StEmcMicroPoint)
11 
13 {
14  for(Int_t i=0;i<4;i++) mEmc[i] = new TObjArray();
15 }
16 StEmcMicroPoint::StEmcMicroPoint(StEmcMicroPoint *point)
17 {
18  mEta=point->getEta();
19  mPhi=point->getPhi();
20  mDeltaEta=point->getDeltaEta();
21  mDeltaPhi=point->getDeltaPhi();
22  mEnergy=point->getEnergy();
23  mChiSquare=point->getChiSquare();
24  for(Int_t d=0;d<4;d++)
25  {
26  Int_t EmcDet=d+1;
27  Int_t nc=point->getNClusters(EmcDet);
28  for(Int_t cl=0;cl<nc;cl++)
29  {
30  StEmcMicroCluster *cluster=new StEmcMicroCluster(point->getCluster(EmcDet,cl));
31  addCluster(EmcDet,cluster);
32  }
33  }
34 }
35 StEmcMicroPoint::~StEmcMicroPoint()
36 {
37  for(Int_t i=0;i<4;i++) delete mEmc[i];
38 }
StEmcMicroCluster * getCluster(Int_t EmcDet, Int_t ClId)
Return one cluster of the point.
Float_t getEnergy()
Return Energy of the point.
Int_t getNClusters(Int_t EmcDet)
Return number of cluster of the point for one sub detector.
Float_t getPhi()
Return Phi of the point.
Float_t getEta()
Return Eta of the point.
Float_t getChiSquare()
Return ChiSquare of the point.
Float_t getDeltaPhi()
Return DeltaPhi of the point.
Float_t getDeltaEta()
Return DeltaEta of the point.