10#include "TClonesArray.h"
13#include "hphysicsconstants.h"
27 Int_t sizeAdd = addon->GetEntries();
28 cout<<
"UserAnalysis : nparticle ="<<size<<
" ninput ="<<sizeAdd<<endl;
29 for(Int_t i = 0; i < size; i ++){
33 cout<<i<<
" "<<
p->ID()<<
" "<<
p1->ID()<<endl;
37 Int_t parentIndex =
p->GetParentIndex() ;
38 cout<<
"daughter "<<i<<
" id "<<HPhysicsConstants::pid(
p->ID())<<flush;
39 while(parentIndex!=-1){
41 if(parentIndex < sizeAdd ){
47 cout<<
" -> "<<parentIndex<<
" id "<<HPhysicsConstants::pid(
p1->ID())<<flush;
48 parentIndex =
p1->GetParentIndex();
49 }
else cout<<
"p1=0, should not happen"<<endl;
57void urqmd_f15_input(TString infile =
"/hera/hades/dstsim/apr12/urqmd/bmax9/f15/Au_Au_1230MeV_1000evts_1.f15",
58 TString outfile =
"out-dilep_pluto",
72 Int_t writeNonLeptons = 2;
73 Bool_t runUrmdShining = kFALSE;
74 Bool_t writeFreezeOutLeptonsOnly = kFALSE;
75 Bool_t doPlutoDecay = kFALSE;
76 TString outputUrmdDilepton =
"test_dilep.dat";
78 if(doPlutoDecay && runUrmdShining){
79 cout<<
"WRONG CONFIG: RUNNING UrQMD SHINING and PLUTO DECAY AT THE SAME TIME MAKES NO SENSE! PLUTO SELECTED! "<<endl;
80 runUrmdShining = kFALSE;
89 input->Input (infile);
90 input->Output (outputUrmdDilepton);
91 input->SetOutputNonDileptons (writeNonLeptons);
92 input->SetOutputLeptons (runUrmdShining );
93 input->SetOutputFreezeoutDileptons(writeFreezeOutLeptonsOnly);
94 input->SetMaxNumParticles(maxnum);
127 pl->SetRecursiveMode(1);
128 pl->SetTauMax(0.001);
140 cout <<
my_reaction.Loop(nEvents) <<
" events converted" << endl;
PStaticData * makeStaticData()
static TClonesArray * getAddon()
static TClonesArray * getEvent()
int AddDecay(int didx, const char *name, const char *parent, const char *daughters, double br)
void SetEnhanceChannelBR(const int id, const double factor)
Double_t * GetBatchValue(const char *name, Int_t make_val=1)
void DisableAllChannelBR(const char *parent)
PParticle p1("p", beam_energy)
PReaction my_reaction("3.5","p","7Li","p (n) phi [K+ K-] (6Li)","delme")