1 void loadLibraries(
bool fmsLibs =
true);
3 const char* inFile =
"inFiles_fms.list",
4 const char* outFile =
"fmsCalib.root"
11 gSystem->Load(
"StFmsCalibMaker");
13 gMessMgr->SetLimit(
"I", 0);
14 gMessMgr->SetLimit(
"Q", 0);
15 gMessMgr->SetLimit(
"W", 0);
24 cout <<Form(
"\nEntries in %s: %i", inFile, muDstMk->
tree()->GetEntries()) <<endl;
27 StarDb->SetAttr(
"blacklist",
"emc");
28 StarDb->SetAttr(
"blacklist",
"eemc");
29 StarDb->SetAttr(
"blacklist",
"ftpc");
30 StarDb->SetAttr(
"blacklist",
"ist");
31 StarDb->SetAttr(
"blacklist",
"mtd");
32 StarDb->SetAttr(
"blacklist",
"pmd");
33 StarDb->SetAttr(
"blacklist",
"pp2pp");
34 StarDb->SetAttr(
"blacklist",
"pxl");
35 StarDb->SetAttr(
"blacklist",
"ssd");
36 StarDb->SetAttr(
"blacklist",
"svt");
37 StarDb->SetAttr(
"blacklist",
"tof");
38 StarDb->SetAttr(
"blacklist",
"tpc");
43 fmsDb->
readGainCorrFromText(
true); cout <<
"WARNING! External gain correction factors are being used!\n" <<endl;
54 TString outName(outFile);
55 if (!strcmp(outFile,
"")) { outName = inFile; outName.ReplaceAll(
"MuDst",
"fmsCalib"); }
56 fmsCalib->SetOutName((
const char*)outName);
57 fmsCalib->ReadCellStat(
"FmsCellStat.txt");
58 fmsCalib->ReadBbcSlewing(
"/star/u/ckimstar/work/fms_calib/Oleg_bbc_slewing_run15_pp200.dat");
74 std::cout <<
"Done!" <<endl;
79 void loadLibraries(
bool fmsLibs)
82 gROOT->Macro(
"$STAR/StRoot/StMuDSTMaker/COMMON/macros/loadSharedLibraries.C");
83 loadSharedLibraries();
84 gROOT->Macro(
"loadMuDst.C");
87 gSystem->Load(
"StTpcDb");
88 gSystem->Load(
"St_db_Maker");
89 gSystem->Load(
"StDaqLib");
90 gSystem->Load(
"StDbBroker");
91 gSystem->Load(
"StDbUtilities");
92 gSystem->Load(
"StDetectorDbMaker");
93 gSystem->Load(
"StEEmcDbMaker");
94 gSystem->Load(
"StEEmcUtil");
95 gSystem->Load(
"StEmcRawMaker");
96 gSystem->Load(
"StEmcADCtoEMaker");
97 gSystem->Load(
"StEmcTriggerMaker");
98 gSystem->Load(
"StEpcMaker");
99 gSystem->Load(
"StEventMaker");
100 gSystem->Load(
"StMCAsymMaker");
101 gSystem->Load(
"StPreEclMaker");
102 gSystem->Load(
"StRandomSelector");
103 gSystem->Load(
"StSpinDbMaker");
104 gSystem->Load(
"StTriggerFilterMaker");
105 gSystem->Load(
"StTriggerUtilities");
108 gSystem->Load(
"libMinuit.so");
109 gSystem->Load(
"StFmsUtil");
110 gSystem->Load(
"StFmsDbMaker");
111 gSystem->Load(
"StFmsHitMaker");
112 gSystem->Load(
"StFmsPointMaker");
113 gSystem->Load(
"StFmsFpsMaker");
TTree * tree()
Returns pointer to the current TTree, the top level io structure that holds the event, track, v0, etc. information in branches of that tree.
void readGainCorrFromText(int v=1)
force gain to be read from FmsGain.txt
void setDebug(Int_t debug)
debug mode, 0 for minimal message, >0 for more debug messages