43 int agvEffsPoints(
const Char_t *filenameIn =
"/star/data03/daq/2012/174/13174002p_rf/st_physics_13174002_raw_1010001.daq",
44 Int_t runnumber = 13074038,
45 Int_t nevents = 500, Int_t effDisk=2,
46 Bool_t cutShortEvents = 1 ){
51 cout <<
"Constructing the chain" << endl;
52 analysisChain =
new StChain(
"fgtEffAnalysisChain");
54 std::string fgtDbMkrName =
"";
56 cout <<
"Loading St_db_Maker" << endl;
57 gSystem->Load(
"libStDb_Tables.so");
58 gSystem->Load(
"StDbLib.so");
59 gSystem->Load(
"St_db_Maker");
60 gSystem->Load(
"StDbBroker");
63 TString dir0 =
"MySQL:StarDb";
64 TString dir1 =
"$STAR/StarDb";
77 dbMkr->SetDateTime(20130301,043459);
84 cout <<
"Constructing StFgtDbMaker" << endl;
87 fgtDbMkrName = fgtDbMkr->
GetName();
92 cout <<
"Constructing the daq reader" << endl;
94 daqRdr->setIsCosmic(
false );
95 daqRdr->cutShortEvents( cutShortEvents );
96 daqRdr->setIsCosmic(
false );
97 daqRdr->setZSdataOnly();
98 gSystem->Load(
"libStFgtA2CMaker");
100 a2cMkr->
setFgtDb(fgtDbMkr->getDbTables());
101 a2cMkr ->setAbsThres( -5000 );
108 a2cMkr->setClusterThreshold(0.8);
114 Char_t *myMaker =
"StFgtClusterMaker";
115 if (gClassTable->GetID(myMaker) < 0) {
116 gSystem->Load(myMaker);
118 if (gClassTable->GetID(
"StFgtPointMaker") < 0) {
119 gSystem->Load(
"StFgtPointMaker");
125 seededClusAlgo->setJumpSingleStrip(
true);
136 fgtPointMkr->setPointAlgo(fgtSimplePointAlgo);
151 cout <<
"Initializing" << endl;
152 ierr = analysisChain->Init();
155 cout <<
"Error initializing" << endl;
162 cout <<
"max nevents = " << nevents << endl;
163 for(
int i=0; i<nevents && !ierr; ++i ){
165 cout <<
"\ton event number **************" << i << endl;
166 cout <<
"clear (agv)" << endl;
167 analysisChain->
Clear();
168 cout <<
"make" << endl;
169 ierr = analysisChain->
Make();
170 cout <<
" done " <<endl;
177 cout <<
"finish" << endl;
197 cout <<
"converting ps to pdf" << endl;
198 gSystem->Exec(( std::string(
"ps2pdf -dAutoRotatePages=/None ") + pdfFile ).
data());
201 cerr <<
"\tall done" << endl;
209 gROOT->Macro(
"loadMuDst.C");
210 gSystem->Load(
"libPhysics");
211 gSystem->Load(
"St_base");
212 gSystem->Load(
"StChain");
214 gSystem->Load(
"StUtilities");
215 gSystem->Load(
"StEvent");
216 cout <<
"loaded StEvent library" << endl;
218 gSystem->Load(
"RTS");
219 gSystem->Load(
"StFgtUtil");
220 gSystem->Load(
"StFgtDbMaker");
221 gSystem->Load(
"StFgtClusterTools");
225 gSystem->Load(
"StFgtRawDaqReader");
void acceptLongPulses(Bool_t accept)
set status mask to some other value
void setRelThres(Float_t thres)
set to below -kFgtMaxAdc (-4096) to skip cut
virtual void Clear(Option_t *option="")
User defined functions.
Int_t setClusterAlgo(StFgtIClusterAlgo *)
clear function is empty at the moment
void doCutBadStatus()
set pointer to StFgtDb
void setFgtDb(StFgtDb *fgtDb)
set to zero to skip cut
virtual const char * GetName() const
special overload