22 class StEventDisplayMaker; StEventDisplayMaker *dsMk = 0;
27 gSystem->Load(
"St_base");
28 gSystem->Load(
"StChain");
29 gSystem->Load(
"StUtilities");
30 gSystem->Load(
"StBFChain");
32 gSystem->Load(
"StarClassLibrary");
33 gSystem->Load(
"StAnalysisUtilities");
35 gSystem->Load(
"StV0AccMaker.so");
37 if (chain)
delete chain;
40 void bfcMixer_FullPythia(
const Int_t Nevents=10,
41 const Char_t *file1=
"/star/institutions/uky/rfatemi/AuAu62/st_physics_5086073_raw_3020008.daq",
42 const Char_t *file2=
"/star/institutions/bnl/fisyak/bug1970/evgen.1.nt"
44 const Char_t *file2=
"/star/institutions/uky/rfatemi/AuAu62/simulation_62/starlightrpii_1.fz",
45 const Char_t *file3=
"/home/starofl/embedding/GSTAR/st_physics_2270008_raw_0030.vertices.dat",
46 const Float_t zvertex_low=-175.0,
47 const Float_t zvertex_high=175.0,
48 const Char_t *mode=
"strange",
49 const Char_t *acc_mode=
"off"
54 if (gClassTable->GetID(
"StBFChain") < 0) Load();
57 chain =
new StChain(
"Embedding");
63 saveMk = chain1->cd();
67 chain1->
SetFlags(
"in Physics DbV20050515 NoDefault");
68 chain1->Set_IO_Files(file1);
76 saveMk = chain2->cd();
77 chain2->
SetFlags(
"ntin DbV20050515 gen_T geomT sim_T tpc trs -tcl -tpt -PreVtx -tpc_daq");
78 chain2->Set_IO_Files(file2);
82 if (geantMk) geantMk->SetMode(1);
84 if (chain2->GetOption(
"TRS")){
86 trsMk->setNormalFactor(1.22);
90 if (!strcmp(mode,
"strange")){
91 if (!strcmp(acc_mode,
"on")){
93 Char_t *extraMaker =
"StV0AccMaker";
94 if (gClassTable->GetID(extraMaker) < 0) gSystem->Load(extraMaker);
96 if(extraMk)
delete extraMk;
97 extraMk = chain->New(extraMaker,
"before");
99 Char_t *before =
"Trs";
100 StMaker *trsmk = chain1->GetMaker(before);
101 if (trsmk) chain1->AddBefore(before,extraMk);
102 StV0AccCuts *cuts = ((StV0AccMaker *)extraMk)->GetCutsPtr();
104 cuts->SetV0MinDecayLen(0.);
105 cuts->SetV0DaughterMinImpact(0);
106 cuts->SetV0DaughterMinHit(10.);
107 cuts->SetXiV0MaxImpact(5);
108 cuts->SetXiMinDecayLen(2.);
109 cuts->SetXiV0PiMinImpact(0.);
110 cuts->SetXiDaughterMinHit(10.);
111 cuts->SetKinkMinDecayRad(128.);
112 cuts->SetKinkMaxDecayRad(184.);
124 saveMk = chain3->cd();
132 chain3->
SetFlags(
"TpcMixer Simu NoDefault NoInput onlraw -onlcl DbV20050515 ry2005d tpc_daq tpc event cdst Kalman Tree evout useCDV Xi2 V02 Kink2 CMuDst analysis MiniMcMk");
142 TString OutputFileName(gSystem->BaseName(file1));
143 OutputFileName.ReplaceAll(
"*",
"");
144 OutputFileName.ReplaceAll(
".daq",
"");
145 OutputFileName.Append(
".root");
146 chain3->Set_IO_Files(0,OutputFileName.Data());
157 printf (
"QAInfo:Run is started at Date/Time%i/%i\n",t.GetDate(),t.GetTime());
159 printf (
"QAInfo:Run on %s in %s\n",
161 gSystem->WorkingDirectory());
162 printf (
"QAInfo: with %s\n", chain->GetCVS());
166 Int_t iInit = chain->Init();
168 geantMk->
Do(
"GSPREAD 0.1 0.1 30.");
170 treeMk = chain->GetMaker(
"tree");
172 Int_t iMake = 0, i = 1, iBad = 0;
181 Int_t ncols, eventnumber, mult, skip=0, oldskip = 0, skiptest=0;
182 printf(
"zvertex_low = %f zvertex_high = %f\n",zvertex_low, zvertex_high);
187 chain->SetAttr(
".Privilege",0,
"*" );
188 chain->SetAttr(
".Privilege",1,
"StIOInterFace::*" );
189 chain->SetAttr(
".Privilege",1,
"St_geant_Maker::*");
193 while(iMake ==
kStOk) {
196 int iretDaq = inpMk->
Make();
201 iretDaq = inpMk->
Make();
204 iMake = chain->
Make();
208 gMessMgr->QAInfo() <<
"Run completed " << endm;
209 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.
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.