00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023 #include "StPmdCluster.h"
00024
00025
00026 ClassImp(StPmdCluster)
00027
00028
00029
00030 StPmdCluster::StPmdCluster(TArrayI *cluster) : StObject()
00031 {
00032 }
00033
00034
00035 StPmdCluster::StPmdCluster() : StObject()
00036 {
00037 mCluEdep = 0.0; mCluEta = 0.0; mCluPhi = 0.0;
00038 mNumofMems = 0.0 ; mModule = 0;
00039 mCluSigmaS = 0.0; mCluSigmaL = 0.0;
00040 mCluPID=0; mCluEdepPID=0; mMcCluPID=0;
00041 mCluX = 0.0; mCluY = 0.0;
00042
00043 }
00044
00045
00046 void
00047 StPmdCluster::print(ostream *os)
00048 {
00050 *os << " Module " << Module();
00051 *os << " Members " << NumofMems();
00052 *os << " Edep " << CluEdep();
00053 *os << " eta " << CluEta();
00054 *os <<" phi " << CluPhi()<< endl;
00055 }
00056
00057 ostream &operator<<(ostream &os, StPmdCluster &cl)
00058 {
00059 cl.print(&os); return os;
00060 }
00061
00062
00063 void
00064 StPmdCluster::Browse(TBrowser *b)
00065 {
00066 cout << (*this) << endl;
00067 StObject::Browse(b);
00068 }
00069
00070 void StPmdCluster::addHitCollection(StPmdHit* hits)
00071 {
00072 mHitCollection.Add(hits);
00073 }
00074
00075
00076