1 void DoHiPt(
const char* inDir =
"links/P02gc.productionCentral.FullField.2001.313.mdst",
2 const char* outFile =
"HiPt.Test.hist.root",
4 const char* analysis =
"StHiJennsAnalysis",
5 const char* extra=
"hello",
12 gSystem->Load(
"StHiMicroEvent");
13 gSystem->Load(
"StHiMicroAnalysis");
18 cout <<
"inDir : " << inDir << endl;
19 cout <<
"outFile : " << outFile << endl;
21 cout <<
"*********** Using cut type : " << cut << endl;
23 cout <<
"*********** Analysis type : " << analysis << endl;
29 if(strcmp(analysis,
"StHiJennsAnalysis")==0){
30 hi =
new StHiJennsAnalysis(inDir,outFile);
32 else if(strcmp(analysis,
"StHiSpectra")==0){
35 Cut::mDoSpectraCent=1;
43 else if(strcmp(analysis,
"StDcaAnalysis")==0){
63 if(hitAvoid || Cut::mHitAvoid){
64 cout <<
"Using hit half : " << half << endl;
65 Cut::SetHitHalf(half);
68 cout <<
"Using half : " << half << endl;
73 cout <<
"Using geom half : " << geomHalf << endl;
74 Cut::SetGeomHalf(geomHalf);
78 cout <<
"Skipping vertex region " << vertexZSkip << endl;
79 Cut::SetVertexZSkip(vertexZSkip);
82 cout <<
"Avoiding hits " << hitAvoid << endl;
83 Cut::SetHitAvoid(hitAvoid);
86 hi->setNEvent(nevent);
90 Int_t stat = hi->Init();
92 cout <<
"Trouble with Init()" << endl;