33 int agvEffs(
const Char_t *filenameIn =
"/star/data03/daq/2012/174/13174038p_rf/st_physics_13174038_raw_1010001.daq",
34 Int_t nevents = 100, Int_t effDisk=20,
35 Bool_t cutShortEvents = 1 ){
37 cout <<
"number of events: " << nevents <<endl;
40 cout <<
"Constructing the chain" << endl;
41 analysisChain =
new StChain(
"fgtEffAnalysisChain");
43 std::string fgtDbMkrName =
"";
45 cout <<
"Loading St_db_Maker" << endl;
46 gSystem->Load(
"libStDb_Tables.so");
47 gSystem->Load(
"StDbLib.so");
48 gSystem->Load(
"St_db_Maker");
49 gSystem->Load(
"StDbBroker");
52 TString dir0 =
"MySQL:StarDb";
53 TString dir1 =
"$STAR/StarDb";
76 cout <<
"Constructing StFgtDbMaker" << endl;
79 fgtDbMkrName = fgtDbMkr->
GetName();
84 cout <<
"Constructing the daq reader" << endl;
86 daqRdr->setIsCosmic(
false );
88 daqRdr->setNoneZSdataOnly();
89 daqRdr->cutShortEvents( cutShortEvents );
90 gSystem->Load(
"libStFgtA2CMaker");
92 a2cMkr->
setFgtDb(fgtDbMkr->getDbTables());
93 a2cMkr ->setAbsThres( -5000 );
100 a2cMkr->setClusterThreshold(0.8);
106 Char_t *myMaker =
"StFgtClusterMaker";
107 if (gClassTable->GetID(myMaker) < 0) {
108 gSystem->Load(myMaker);
110 if (gClassTable->GetID(
"StFgtPointMaker") < 0) {
111 gSystem->Load(
"StFgtPointMaker");
118 seededClusAlgo->setJumpSingleStrip(
true);
127 fgtGenBase->fillFromEvent();
130 fgtStraightTracker->setMinNumFitPoints(3);
131 fgtStraightTracker->SetEffDisk(effDisk);
134 fgtStraightPlotter->setDcaCut(2);
144 cout <<
"Initializing" << endl;
145 ierr = analysisChain->Init();
148 cout <<
"Error initializing" << endl;
155 cout <<
"max nevents = " << nevents << endl;
156 for(
int i=0; i<nevents && !ierr; ++i ){
158 cout <<
"\ton event number **************" << i << endl;
160 analysisChain->
Clear();
162 ierr = analysisChain->
Make();
170 cout <<
"finish" << endl;
190 cout <<
"converting ps to pdf" << endl;
191 gSystem->Exec(( std::string(
"ps2pdf -dAutoRotatePages=/None ") + pdfFile ).
data());
194 cerr <<
"\tall done" << endl;
202 gROOT->Macro(
"loadMuDst.C");
203 gSystem->Load(
"libPhysics");
204 gSystem->Load(
"St_base");
205 gSystem->Load(
"StChain");
207 gSystem->Load(
"StUtilities");
208 gSystem->Load(
"StEvent");
209 cout <<
"loaded StEvent library" << endl;
211 gSystem->Load(
"RTS");
212 gSystem->Load(
"StFgtUtil");
213 gSystem->Load(
"StFgtDbMaker");
214 gSystem->Load(
"StFgtClusterTools");
218 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