43 #include "StPmdUtil/StPmdGeom.h"
44 #include "StPmdUtil/StPmdDetector.h"
45 #include "StPmdDiscriminatorMaker.h"
46 #include "StPmdDiscriminator.h"
47 #include "StPmdUtil/StPmdClusterCollection.h"
48 #include "StPmdUtil/StPmdCluster.h"
62 StPmdDiscriminator::~StPmdDiscriminator()
75 for(Int_t i=0; i<nclust ; i++)
79 Float_t edep=spmcl1->CluEdep();
80 if(edep>=mEdepcut)ClusterPID=1;
81 if(edep<mEdepcut)ClusterPID=8;
83 spmcl1->setCluEdepPID(ClusterPID);
87 void StPmdDiscriminator::Discriminate()
97 for(Int_t i=0; i<nclustd ; i++)
100 Float_t edepd=spmcl1d->CluEdep();
106 if(edepd<mEdepcut)ClusterPID=8;
107 spmcl1d->setCluEdepPID(ClusterPID);
114 void StPmdDiscriminator::Print()
117 cout<<
"*************** DISCRIMINATE **************"<<endl;
118 cout<<
"photonlike "<<m_photonlike<<
"for Cut "<<mEdepcut<<endl;
Int_t Nclusters() const
destructor
void getClusterPID()
returns the ClusterId
TObjArray * Clusters()
no. of clusters