Definition at line 26 of file SherpaHadronizer.cc.
Definition at line 68 of file SherpaHadronizer.cc.
References dirstructure::argv, gather_cfg::cout, edm::ParameterSet::exists(), edm::ParameterSet::getParameter(), i, maxEventsToPrint, SherpaDefaultWeight, SherpaParameterSet, SherpaPath, SherpaPathPiece, SherpaProcess, SherpaResultDir, and AlCaHLTBitMon_QueryRunRegistry::string.
87 int retval=Fetcher.Fetch();
89 std::cout <<
"SherpaHadronizer: Preparation of Sherpack failed ... " << std::endl;
90 std::cout <<
"SherpaHadronizer: Error code: " << retval << std::endl;
98 for (
unsigned i=0;
i<setNames.size(); ++
i ) {
101 std::cout <<
"Write Sherpa parameter set " << setNames[
i] <<
" to "<<setNames[
i]<<
".dat "<<std::endl;
103 std::ofstream os(datfile.c_str());
105 for(std::vector<std::string>::const_iterator itPar = pars.begin(); itPar != pars.end(); ++itPar ) {
106 os<<(*itPar)<<std::endl;
124 argv[0]=(
char*)shRun.c_str();
125 argv[1]=(
char*)shPath.c_str();
126 argv[2]=(
char*)shPathPiece.c_str();
127 argv[3]=(
char*)shRes.c_str();
128 argv[4]=(
char*)shRng.c_str();
T getParameter(std::string const &) const
BaseHadronizer(edm::ParameterSet const &ps)
bool exists(std::string const ¶meterName) const
checks if a parameter exists
std::string SherpaPathPiece
unsigned int maxEventsToPrint
edm::ParameterSet SherpaParameterSet
double SherpaDefaultWeight
std::string SherpaProcess
std::string SherpaResultDir
SherpaHadronizer::~SherpaHadronizer |
( |
| ) |
|
const char* SherpaHadronizer::classname |
( |
| ) |
const |
|
inline |
bool SherpaHadronizer::decay |
( |
| ) |
|
bool SherpaHadronizer::declareSpecialSettings |
( |
const std::vector< std::string > & |
| ) |
|
|
inline |
bool SherpaHadronizer::declareStableParticles |
( |
const std::vector< int > & |
pdgIds | ) |
|
Definition at line 156 of file SherpaHadronizer.cc.
159 for(std::vector<int>::const_iterator iter = pdgIds.begin();
160 iter != pdgIds.end(); ++iter)
161 if (!markStable(*iter))
void SherpaHadronizer::finalizeEvent |
( |
| ) |
|
bool SherpaHadronizer::generatePartonsAndHadronize |
( |
| ) |
|
Definition at line 187 of file SherpaHadronizer.cc.
References relval_steps::gen(), gen::BaseHadronizer::resetEvent(), SherpaDefaultWeight, and histoStyle::weight.
192 SHERPA::Input_Output_Handler* ioh =
Generator.GetIOHandler();
193 SHERPA::HepMC2_Interface* hm2i = ioh->GetHepMC2Interface();
195 ATOOLS::Blob_List* blobs =
Generator.GetEventHandler()-> GetBlobs();
196 ATOOLS::Blob* sp(blobs->FindFirst(ATOOLS::btp::Signal_Process));
197 double weight((*sp)[
"Weight"]->Get<double>());
198 double ef((*sp)[
"Enhance"]->Get<double>());
202 if ( ATOOLS::ToType<int>( ATOOLS::rpa->
gen.Variable(
"EVENT_GENERATION_MODE") ) == 1 ) {
210 HepMC::GenEvent* evt =
new HepMC::GenEvent();
211 hm2i->Sherpa2HepMC(blobs, *evt,
weight);
double SherpaDefaultWeight
void resetEvent(HepMC::GenEvent *event)
bool SherpaHadronizer::initializeForInternalPartons |
( |
| ) |
|
bool SherpaHadronizer::readSettings |
( |
int |
| ) |
|
|
inline |
bool SherpaHadronizer::residualDecay |
( |
| ) |
|
void SherpaHadronizer::statistics |
( |
| ) |
|
SHERPA::Sherpa SherpaHadronizer::Generator |
|
private |
unsigned int SherpaHadronizer::maxEventsToPrint |
|
private |
CLHEP::HepRandomEngine* SherpaHadronizer::randomEngine |
|
private |
std::string SherpaHadronizer::SherpaChecksum |
|
private |
double SherpaHadronizer::SherpaDefaultWeight |
|
private |
std::string SherpaHadronizer::SherpaPath |
|
private |
std::string SherpaHadronizer::SherpaPathPiece |
|
private |
std::string SherpaHadronizer::SherpaProcess |
|
private |
std::string SherpaHadronizer::SherpaResultDir |
|
private |