25 void runFgtLHTracking_DaqRdr(
const Char_t *filenameIn,
26 Int_t date = 20120125,
28 Int_t neventsIn = 10 ){
31 std::cout <<
"***** Loading libraries *****" << endl;
34 std::cout <<
"***** Done loading libraries *****" << endl;
35 std::cout <<
"***** Instanciating all the classes *****" << endl;
40 analysisChain =
new StChain(
"fgtTrackingChain");
45 TString dir0 =
"MySQL:StarDb";
46 TString dir1 =
"$STAR/StarDb";
49 dbMkr->SetDateTime(date,time);
51 cout <<
"Loading StFgtDbMaker" << endl;
52 gSystem->Load(
"StFgtDbMaker");
54 cout <<
"Constructing StFgtDbMaker" << endl;
60 cout <<
"Constructing the daq reader" << endl;
62 daqRdr->setIsCosmic( 0 );
63 daqRdr->cutShortEvents( 1 );
68 cout <<
"Constructing the A2CMaker" << endl;
70 a2cMkr->
setFgtDb( fgtDbMkr->getDbTables() );
71 a2cMkr ->setAbsThres( -5000 );
74 a2cMkr->doRemoveNonPulse(1);
80 cout <<
"Constructing the cluster maker" << endl;
89 fgtTrkMkr->setFitThres( 1 );
90 fgtTrkMkr->setIncludeThres( 1 );
91 fgtTrkMkr->setNumPoints( 3 );
92 fgtTrkMkr->setNumAgreeThres( 3 );
96 std::cout <<
"***** Done instanciating all the classes *****" << endl;
102 std::cout <<
"***** Initializing all makers in the analysis chain *****" << std::endl;
104 analysisChain->Init();
106 std::cout <<
"***** Initialization done *****" << std::endl;
119 for( ; nevents < neventsIn && !ierr; ++nevents ){
121 analysisChain->
Clear();
124 ierr = analysisChain->
Make();
148 gROOT->Macro(
"loadMuDst.C");
152 gSystem->Load(
"libStDb_Tables.so");
153 gSystem->Load(
"StDbLib");
154 gSystem->Load(
"StDbBroker");
155 gSystem->Load(
"St_db_Maker");
156 gSystem->Load(
"StStarLogger");
157 gSystem->Load(
"StFgtDbMaker");
159 gSystem->Load(
"RTS");
161 gSystem->Load(
"StFgtUtil");
162 gSystem->Load(
"StFgtRawDaqReader");
163 gSystem->Load(
"StFgtA2CMaker");
164 gSystem->Load(
"StFgtClusterMaker");
165 gSystem->Load(
"StFgtTracking");
void setRelThres(Float_t thres)
set to below -kFgtMaxAdc (-4096) to skip cut
virtual void Delete(Option_t *opt="")
virtual void Clear(Option_t *option="")
User defined functions.
virtual void ls(Option_t *option="") const
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