93 cout<<endl<<
"Usage: "<<argv[0]<<
" <pythia_conf> <pythia_mode> <no_events> [ <special_mode> ]"<<endl;
94 cout<<endl<<
" eg. "<<argv[0]<<
" pythia_W.conf 0 10000 4 0"<<endl;
99 HepMC::I_Pythia8 ToHepMC;
103 Event&
event = pythia.event;
105 pythia.readString(
"HadronLevel:Hadronize = off");
106 pythia.readString(
"SpaceShower:QEDshower = off");
107 pythia.readString(
"SpaceShower:QEDshowerByL = off");
108 pythia.readString(
"SpaceShower:QEDshowerByQ = off");
109 pythia.readString(
"PartonLevel:ISR = off");
110 pythia.readString(
"PartonLevel:FSR = off");
134 if(argc>1) pythia.readFile(argv[1]);
137 if(atoi(argv[2])==0) pythia.init( 11, -11, 200.);
138 else if(atoi(argv[2])==1) pythia.init( 11, -11, 91.187);
139 else pythia.init( -2212, -2212, 14000.0);
146 Photos::setInfraredCutOff(1.e-6);
147 Photos::maxWtInterference(3.0);
149 bool topDecays =
false;
155 if(atoi(argv[4])==1) topDecays=
true;
157 else if(atoi(argv[4])==2)
159 Photos::setMeCorrectionWtForW(
true);
160 Photos::setMeCorrectionWtForZ(
true);
166 if(argc>5 && atoi(argv[5])==1)
168 Photos::setDoubleBrem(
false);
169 Photos::setExponentiation(
false);
170 Photos::setInfraredCutOff(0.001);
171 Photos::maxWtInterference(2.0);
180 Log::SummaryAtExit();
181 cout.setf(ios::fixed);
186 if(iEvent%1000==0) Log::Info()<<
"Event: "<<iEvent<<
"\t("<<iEvent*(100./
NumberOfEvents)<<
"%)"<<endl;
187 if (!pythia.next())
continue;
189 HepMC::GenEvent * HepMCEvt =
new HepMC::GenEvent();
190 ToHepMC.fill_next_event(event, HepMCEvt);
195 cout<<
"Momentum conservation chceck BEFORE/AFTER Photos"<<endl;
212 HepMCEvent temp_event(*HepMCEvt,
false);
213 MC_Analyze(&temp_event);
void fixForMctester(HepMC::GenEvent *evt)
void checkMomentumConservationInEvent(PhotosHEPEVTEvent *evt)