28 #include "StPmdDetector.h"
30 #include "StPmdModule.h"
31 #include "StPmdClusterCollection.h"
41 memset(mModules_NHit,0,
sizeof(mModules_NHit));
42 memset(mModules ,0,
sizeof(mModules ));
46 StPmdDetector::StPmdDetector(Int_t
id,
unsigned int n)
51 memset(mModules_NHit,0,
sizeof(mModules_NHit));
52 memset(mModules ,0,
sizeof(mModules ));
53 for(
int i=0; i<12;i++)
63 for(
int i=0; i<12;i++)
delete mModules[i];
64 delete mClusters; mClusters=0;
74 mModules[m-1]->Hits()->Add(hit);
84 if (i > 0 && i <= 12) {
85 return mModules_NHit[i-1]; }
96 for(Int_t i=0;i<12;i++){
98 sum=sum+mModules_NHit[i];
106 if (i > 0 && i <= 12)
return (mModules[i-1]);
115 if (IdMod >= 0 && IdMod < static_cast<int>(mNumberOfModules))
117 mModules_NHit[IdMod]=0;
118 delete mModules[IdMod];
119 mModules[IdMod] = val;
125 StPmdDetector::cluster() {
return mClusters;}
void setModule(StPmdModule *, int)
number of hits in the module
bool addHit(StPmdHit *)
no of modules
Int_t module_hit(Int_t)
module number
unsigned int numberOfHits() const
for adding hits to detector
void setCluster(StPmdClusterCollection *)
number of clusters
unsigned int numberOfModules() const
destructor
Int_t module()
function for supermodule no.
~StPmdDetector()
constructor
StPmdModule * module(unsigned int)
number of hits