7 void exampleEmc(
const char* list) {
8 if (gClassTable->GetID(
"TTable") < 0) {
9 gSystem->Load(
"libTable");
10 gSystem->Load(
"libPhysics");
12 gSystem->Load(
"St_base");
13 gSystem->Load(
"StChain");
14 gSystem->Load(
"St_Tables");
15 gSystem->Load(
"StMagF");
16 gSystem->Load(
"StUtilities");
17 gSystem->Load(
"StTreeMaker");
18 gSystem->Load(
"StIOMaker");
19 gSystem->Load(
"StarClassLibrary");
20 gSystem->Load(
"StTpcDb");
21 gSystem->Load(
"StDbUtilities");
22 gSystem->Load(
"StEvent");
23 gSystem->Load(
"StEventUtilities");
24 gSystem->Load(
"StMcEvent");
25 gSystem->Load(
"StMcEventMaker");
26 gSystem->Load(
"StAssociationMaker");
27 gSystem->Load(
"StMcAnalysisMaker");
28 gSystem->Load(
"StStrangeMuDstMaker");
29 gSystem->Load(
"StEmcUtil");
30 gSystem->Load(
"StMuDSTMaker");
32 cout <<
" loading done " << endl;
43 while ( !maker->
Make() ) {
44 cout <<
" event# " << eventCounter++ << endl;
58 for (
int n=1; n<=4; n++) {
59 int nClusters = emc->getNClusters(n);
60 cout <<
"Clusters: " << nClusters << endl;
61 for (
int i=0; i<nClusters; i++) {
63 printf(
"Cluster(%02i,%02i): energy=%f phi=%f eta=%f nHits=%d \n",n,i,c->getEnergy(), c->
getPhi(), c->
getEta(), c->
getNHits() );
66 int nPoints = emc->getNPoints();
67 for (
int i=0; i<nPoints; i++) {
float getEnergy() const
Return Energy of the point.
StMuDstMaker(const char *name="MuDst")
Default constructor.
int getNHits() const
Return Number of hits of the cluster.
static void setLevel(unsigned int level)
sets the debug level
float getPhi() const
Return Phi of the cluster.
static StMuEvent * event()
returns pointer to current StMuEvent (class holding the event wise information, e.g. event number, run number)
float getPhi() const
Return Phi of the point.
static StEmcCollection * emcCollection()
returns pointer to current StEmcCollection
float getEta() const
Return Eta of the cluster.
float getEta() const
Return Eta of the point.