1 #include "StRoot/StMuDSTMaker/COMMON/StMuArrays.h"
9 char *file=
"QCDprodMBa.MuDst.root";
12 gROOT->LoadMacro(
"$STAR/StRoot/StMuDSTMaker/COMMON/macros/loadSharedLibraries.C");
13 loadSharedLibraries();
15 cout <<
" loading done " << endl;
19 muMk =
new StMuDstMaker(0,0,inDir,file,
"MuDst.root",nFiles);
20 TChain* tree=muMk->
chain(); assert(tree);
21 int nEntries=(int) tree->GetEntries();
22 printf(
"total eve in muDst chain =%d\n",nEntries);
23 if(nEntries<0)
return;
29 int stat = chain->
Make();
30 printf(
"EEEE stat=%d\n",stat);
36 printf(
"JJJJJ check 1 for FGT\n");
37 TClonesArray *fgtStrips = muMk->
muDst()->
fgtArray( muFgtStrips );
40 Int_t nStrips = fgtStrips->GetEntriesFast();
41 printf(
"JJJJJ check 2 for FGT nStrips=%d\n",nStrips);
42 for( Int_t i = 0; i < nStrips; ++i ){
44 if(strip==0)
continue;
45 Int_t geoId = strip->getGeoId();
46 Short_t seedType=strip->getClusterSeedType();
47 printf(
"i=%d geoId=%d charge=%.1f +/-%.1f seedType=%d\n",i,geoId, strip->getCharge(), strip->getChargeUncert(),seedType);
51 TClonesArray * fgtClusters = muMk->
muDst()->
fgtArray( muFgtClusters );
52 assert( fgtClusters );
53 Int_t nClusters = fgtClusters->GetEntriesFast();
54 printf(
"JJJJJ check 3 for FGT nClusters=%d\n",nClusters);
55 for( Int_t i = 0; i < nClusters; ++i ){
58 Int_t geoId = clus->getCentralStripGeoId();
59 printf(
"i=%d cntrGeoId=%d charge=%.1f R=%.1f+/-%.1f phi=%.3f+/-%.3f nStrip=%d\n",i,geoId , clus->getCharge(), clus->getR(),clus->getErrR(), clus->getPhi(), clus->getErrPhi(), clus->getNumStrips());
62 TClonesArray * fgtInfo = muMk->
muDst()->
fgtArray( muFgtInfo );
64 Int_t nInfo = fgtInfo->GetEntriesFast();
65 printf(
"JJJJJ check 4 for FGT nInfo=%d\n",nInfo);
66 for( Int_t i = 0; i < nInfo; ++i ){
67 StMuFgtInfo* info =
static_cast< StMuFgtInfo*
>( (*fgtInfo)[i] );
72 printf(
"JJJJJ check 9 for FGT done\n\n");
75 #include "StRoot/StMuDSTMaker/COMMON/StMuFgtStrip.h"
76 #include "StRoot/StMuDSTMaker/COMMON/StMuFgtCluster.h"
77 StRoot/StMuDSTMaker/COMMON/StMuFgtInfo.h
virtual void Clear(Option_t *option="")
User defined functions.
static StMuEvent * event()
returns pointer to current StMuEvent (class holding the event wise information, e.g. event number, run number)
TChain * chain()
In read mode, returns pointer to the chain of .MuDst.root files that where selected.
static TClonesArray * fgtArray(int type)
returns pointer to the n-th TClonesArray from the fgt arrays