Skip to content

Commit

Permalink
Merge pull request #26226 from wouf/from-CMSSW_10_6_0_pre2
Browse files Browse the repository at this point in the history
Interface for external Pyquen #4790
  • Loading branch information
cmsbuild committed Apr 2, 2019
2 parents 7f386d4 + 8874a40 commit 1152681
Show file tree
Hide file tree
Showing 10 changed files with 31 additions and 1,536 deletions.
1 change: 1 addition & 0 deletions GeneratorInterface/PyquenInterface/BuildFile.xml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
<use name="f77compiler"/>
<use name="GeneratorInterface/Pythia6Interface"/>
<use name="GeneratorInterface/ExternalDecays"/>
<use name="pyquen"/>
<export>
<lib name="1"/>
</export>
5 changes: 5 additions & 0 deletions GeneratorInterface/PyquenInterface/interface/PyquenWrapper.h
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,11 @@ extern "C" {
}
#define PYQUEN pyquen_

extern "C" {
void pyqver_(int& ,int& ,int& ,int&);
}
#define PYQVER pyqver_

extern "C" {
extern struct{
double bgen;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,9 @@
'MSTJ(22)=2'
),

ppJets = cms.vstring('MSEL=1 ! QCD hight pT processes'),
ppJets = cms.vstring('MSEL=1 ! QCD hight pT processes',
'MSTP(122)=0' # ! no printout of Pythia initialization information hereinafter
),
pythiaJets = cms.vstring('MSUB(11)=1', # q+q->q+q
'MSUB(12)=1', # q+qbar->q+qbar
'MSUB(13)=1', # q+qbar->g+g
Expand Down
10 changes: 0 additions & 10 deletions GeneratorInterface/PyquenInterface/src/HepEvt.F

This file was deleted.

8 changes: 7 additions & 1 deletion GeneratorInterface/PyquenInterface/src/PyquenHadronizer.cc
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,9 @@ filterType_(pset.getUntrackedParameter<string>("filterType","None"))
}
selector_ = HiGenEvtSelectorFactory::get(filterType_,pset);

int cm=1, va, vb, vc;
PYQVER(cm,va,vb,vc);

}


Expand Down Expand Up @@ -183,7 +186,10 @@ bool PyquenHadronizer::generatePartonsAndHadronize()

if(embedding_) rotateEvtPlane(evt,evtPlane_);
add_heavy_ion_rec(evt);


HepMC::HEPEVT_Wrapper::check_hepevt_consistency();
//std::cout<<"Entries number: "<<HepMC::HEPEVT_Wrapper::number_entries() <<" Max. entries "<<HepMC::HEPEVT_Wrapper::max_number_entries()<<std::endl;

event().reset(evt);

return true;
Expand Down
6 changes: 0 additions & 6 deletions GeneratorInterface/PyquenInterface/src/hepevt.inc

This file was deleted.

0 comments on commit 1152681

Please sign in to comment.