22 void geometry( TString tag,
bool agml=
true )
24 TString cmd =
"DETP GEOM "; cmd += tag;
25 if ( !geant_maker ) geant_maker = (
St_geant_Maker *)chain->GetMaker(
"geant");
26 geant_maker -> LoadGeometry(cmd);
31 void command( TString cmd )
33 if ( !geant_maker ) geant_maker = (
St_geant_Maker *)chain->GetMaker(
"geant");
34 geant_maker -> Do( cmd );
37 bool accept( TString table ) {
38 if ( table.Contains(
"_hit") )
return true;
39 if ( table.Contains(
"g2t_track") )
return true;
40 if ( table.Contains(
"g2t_vertex") )
return true;
52 for (
int i=0; i<n+1; i++ ) {
59 int np = himain1.nwounded_yell;
60 int nt = himain1.nwounded_blue;
64 kine->
Kine( npart/10,
"mu-,mu+", 1.0, 20.0, -0.625, 0.625 );
66 TDataSet* gData = chain->GetDataSet(
"geant");
if (0==gData)
continue;
71 TString name = table->GetName();
74 TH1F* h = hists.FindObject(Form(
"num_%s",name.Data()));
76 h =
new TH1F(Form(
"num_%s",name.Data()),Form(
"Size of table [%s] / n_participants ",name.Data()),100,0.,100.);
77 h->SetBit(TH1::kCanRebin);
81 h->Fill( table->
GetNRows() / npart );
89 const TObjArray* p = &hists;
90 TObjArrayIter Iter( p );
92 TH1F* nhits = (TH1F*)Iter();
95 std::cout <<
"STARSIM NIGHTLY QA: " << nhits->GetTitle() <<
" nhits = " << nhits->GetMean() <<
" rms = " << nhits->GetRMS() << std::endl;
110 gSystem->Load(
"libKinematics.so");
118 hijing->SetTitle(
"Hijing 1.383");
129 _primary -> AddGenerator(hijing);
132 _primary -> SetCuts( 1.0E-6 , -1., -4.25, +4.25 );
137 void starsim_nightly_test(
const char* tag=
"y2012a",
int nevents=5 )
140 gROOT->ProcessLine(
".L bfc.C");
142 TString simple = Form(
"%s geant gstar usexgeom agml ",tag);
146 gSystem->Load(
"libVMC.so");
148 gSystem->Load(
"StarGeneratorUtil.so" );
149 gSystem->Load(
"StarGeneratorEvent.so" );
150 gSystem->Load(
"StarGeneratorBase.so" );
151 gSystem->Load(
"libMathMore.so" );
152 gSystem->Load(
"libHijing1_383.so");
153 gSystem->Load(
"xgeometry.so" );
165 _primary -> SetFileName(
"hijing.starsim.root");
166 chain -> AddBefore(
"geant", _primary );
184 hiparnt.
ihpr2(4) = 0;
185 hiparnt.
ihpr2(3) = 0;
187 hiparnt.
ihpr2(8) = 10;
188 hiparnt.
ihpr2(11) = 1;
189 hiparnt.
ihpr2(12) = 1;
190 hiparnt.
ihpr2(18) = 0;
191 hiparnt.
hipr1(7) = 5.35;
200 command(
"gkine -4 0");
HIJING /HIPARNT/ common block/.
void SetFrame(const Char_t *frame, const Double_t val)
Star Simple Kinematics Generator.
void SetImpact(Double_t bmin, Double_t bmax)
Set the minimum and maximum impact parameters for the collision (HI generators)
virtual void Clear(Option_t *option="")
User defined functions.
void AddGenerator(StarGenerator *gener)
void SetBlue(const Char_t *b)
Sets the particle species for the blue beam.
Int_t Init()
Initialize generator.
virtual Long_t GetNRows() const
Returns the number of the used rows for the wrapped table.
HiParnt_t & hiparnt()
Returns a reference to the hijing parameters.
HiMain1_t & himain1()
Returns a reference to the hijing main1 block.
virtual TDataSet * Next() const
Interface to the HIJING event generator.
static void seed(UInt_t s)
Base class for event records.
Main steering class for event generation.
void SetYell(const Char_t *y)
Sets the particle species for the yellow beam.
static void capture()
Capture gRandom random number generator.
void Kine(Int_t ntrack, const Char_t *type="pi+,pi-,K+,K-,proton,antiproton", Double_t ptlow=0.0, Double_t pthigh=500.0, Double_t ylow=-10.0, Double_t yhigh=+10.0, Double_t philow=0.0, Double_t phihigh=TMath::TwoPi())