StRoot  1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
testFms_stfms.C
1 
2 void testFms_stfms(Int_t ibegin = 1, Int_t iend = 100,
3  const char* file = "file.lis",
4  const char* qafile = "stfmsQAhisto.root",
5  Bool_t qa = true,
6  Bool_t trigger = true) {
7  gROOT->Macro("load.C"); // Load all required libraries
8  StChain* chain = new StChain("StChain");
9  chain->SetDEBUG(0);
10  StMuDstMaker* muDstMaker = new StMuDstMaker(0, 0, "", file,
11  ".", 1000, "MuDst");
12  if (trigger) {
13  // Trigger filter
14  StTriggerFilterMaker* filterMaker = new StTriggerFilterMaker;
15  filterMaker->addTrigger(320220); // FMSJP1
16  filterMaker->addTrigger(320231); // FMSJP2
17  filterMaker->addTrigger(320227); // FMSLgBS2
18  filterMaker->addTrigger(320226); // FMSLgBS1
19  filterMaker->addTrigger(320222); // FMSSmBS1
20  filterMaker->addTrigger(320223); // FMSSmBS2
21  // Add 2013 FMS triggers, 430601 to 430612 inc.
22  for (Int_t id(1); id < 13; ++id) {
23  filterMaker->addTrigger(430600 + id);
24  } // for
25  } // if
26  // Database makers: basic, FMS and endcap
27  St_db_Maker* dbMk = new St_db_Maker("db","MySQL:StarDb","$STAR/StarDb");
28  dbMk->SetDEBUG(0);
29  dbMk->SetDateTime(20130222, 0);
30 // dbMk->SetDateTime(20110601, 0);
31  StFmsDbMaker* fmsdb = new StFmsDbMaker("fmsDb");
32  fmsdb->setDebug(1);
33  StEEmcDbMaker* eemcDb = new StEEmcDbMaker;
34  // Barrel ADC to energy maker
36  adc->saveAllStEvent(true);
37  // FMS makers
38  StFmsHitMaker* fmshitMk = new StFmsHitMaker();
39  StFmsPointMaker* fmsptMk = new StFmsPointMaker("StFmsPointMaker");
40  if (qa) { // Activate QA figures
41  StFmsQAHistoMaker* fmsQa = new StFmsQAHistoMaker();
42  fmsQa->SetOutputFile(qafile);
43  } // if
44  chain->Init();
45  chain->EventLoop(ibegin,iend);
46  chain->Finish();
47  delete chain;
48 }
void setDebug(Int_t debug)
debug mode, 0 for minimal message, &gt;0 for more debug messages
virtual Int_t Finish()
Definition: StChain.cxx:85
StFmsHitMaker.
Definition: StFmsHitMaker.h:27
void saveAllStEvent(Bool_t a)
Set to kTRUE if all hits are to be saved on StEvent.