31 class StEventDisplayMaker; StEventDisplayMaker *dsMk = 0;
36 gSystem->Load(
"St_base");
37 gSystem->Load(
"StChain");
38 gSystem->Load(
"StUtilities");
39 gSystem->Load(
"StBFChain");
41 gSystem->Load(
"StarClassLibrary");
42 gSystem->Load(
"StAnalysisUtilities");
44 gSystem->Load(
"StV0AccMaker.so");
46 if (chain)
delete chain;
49 void bfcMixer_v5(
const Int_t Nevents=10,
50 const Char_t *file1=
"/star/institutions/uky/rfatemi/AuAu62/st_physics_5086073_raw_3020008.daq",
51 const Char_t *file2=
"/star/institutions/uky/gorbunov/evgen.1.nt"
53 const Char_t *file2=
"/star/institutions/uky/rfatemi/AuAu62/simulation_62/starlightrpii_1.fz",
54 const Char_t *file3=
"/home/starofl/embedding/GSTAR/st_physics_2270008_raw_0030.vertices.dat",
55 const Float_t zvertex_low=-175.0,
56 const Float_t zvertex_high=175.0,
57 const Char_t *mode=
"strange",
58 const Char_t *acc_mode=
"off"
63 if (gClassTable->GetID(
"StBFChain") < 0) Load();
66 chain =
new StChain(
"Embedding");
72 saveMk = chain1->cd();
76 chain1->
SetFlags(
"in Physics DbV20050515 NoDefault");
77 chain1->Set_IO_Files(file1);
85 saveMk = chain2->cd();
86 chain2->
SetFlags(
"ntin DbV20050515 gen_T geomT sim_T ftpcT tpc trs fss -tcl -tpt -PreVtx -tpc_daq");
87 chain2->Set_IO_Files(file2);
91 if (geantMk) geantMk->SetMode(1);
93 if (chain2->GetOption(
"TRS")){
95 trsMk->setNormalFactor(1.22);
99 if (!strcmp(mode,
"strange")){
100 if (!strcmp(acc_mode,
"on")){
102 Char_t *extraMaker =
"StV0AccMaker";
103 if (gClassTable->GetID(extraMaker) < 0) gSystem->Load(extraMaker);
105 if(extraMk)
delete extraMk;
106 extraMk = chain->New(extraMaker,
"before");
108 Char_t *before =
"Trs";
109 StMaker *trsmk = chain1->GetMaker(before);
110 if (trsmk) chain1->AddBefore(before,extraMk);
111 StV0AccCuts *cuts = ((StV0AccMaker *)extraMk)->GetCutsPtr();
113 cuts->SetV0MinDecayLen(0.);
114 cuts->SetV0DaughterMinImpact(0);
115 cuts->SetV0DaughterMinHit(10.);
116 cuts->SetXiV0MaxImpact(5);
117 cuts->SetXiMinDecayLen(2.);
118 cuts->SetXiV0PiMinImpact(0.);
119 cuts->SetXiDaughterMinHit(10.);
120 cuts->SetKinkMinDecayRad(128.);
121 cuts->SetKinkMaxDecayRad(184.);
128 gSystem->Load(
"StFtpcMixerMaker");
130 ftpcmixer->SetInput(
"Input1",
"StDAQReader");
131 ftpcmixer->SetInput(
"Input2",
"Event");
135 saveMk = chain3->cd();
143 chain3->
SetFlags(
"STpcMixer imu NoDefault NoInput onlraw -onlcl DbV20050515 ry2005d tpc_daq tpc ftpc event cdst Kalman Tree evout useCDV Xi2 V02 Kink2 CMuDst analysis MiniMcMk");
153 TString OutputFileName(gSystem->BaseName(file1));
154 OutputFileName.ReplaceAll(
"*",
"");
155 OutputFileName.ReplaceAll(
".daq",
"");
156 OutputFileName.Append(
".root");
157 chain3->Set_IO_Files(0,OutputFileName.Data());
168 printf (
"QAInfo:Run is started at Date/Time%i/%i\n",t.GetDate(),t.GetTime());
170 printf (
"QAInfo:Run on %s in %s\n",
172 gSystem->WorkingDirectory());
173 printf (
"QAInfo: with %s\n", chain->GetCVS());
177 Int_t iInit = chain->Init();
181 geantMk->
Do(
"VSIG 0. 26.");
183 geantMk->
Do(
"VXYZ -0.13 0.08 0.0");
186 treeMk = chain->GetMaker(
"tree");
188 Int_t iMake = 0, i = 1, iBad = 0;
197 Int_t ncols, eventnumber, mult, skip=0, oldskip = 0, skiptest=0;
198 printf(
"zvertex_low = %f zvertex_high = %f\n",zvertex_low, zvertex_high);
203 chain->SetAttr(
".Privilege",0,
"*" );
204 chain->SetAttr(
".Privilege",1,
"StIOInterFace::*" );
205 chain->SetAttr(
".Privilege",1,
"St_geant_Maker::*");
209 while(iMake ==
kStOk) {
212 int iretDaq = inpMk->
Make();
217 iretDaq = inpMk->
Make();
220 iMake = chain->
Make();
224 gMessMgr->QAInfo() <<
"Run completed " << endm;
225 gSystem->Exec(
"date");
virtual Int_t Instantiate()
Maker-instantiation handler.
virtual void Clear(Option_t *opt)
User defined functions.
virtual void Clear(Option_t *option="")
User defined functions.
void SetFlags(const Char_t *Chain="gstar tfs")
Scan all flags, check if they are correct, manipulate the comment if necessary.
FTPC Mixer Maker, main part of FTPC embedding Framework.
virtual void Do(const Char_t *option="dcut cave x 0.1 10 10 0.03 0.03")
Executes a KUIP command.
virtual Int_t Load()
Routine handling library loading depending on chain options.
virtual void SetActive(Bool_t k=kTRUE)
Setters for flags and switches.