#include <BeamHaloProducer.h>
|
| BeamHaloProducer (const ParameterSet &) |
| Constructor. More...
|
|
virtual | ~BeamHaloProducer () |
| Destructor. More...
|
|
| EDProducer ()=default |
|
| EDProducerBase () |
|
ModuleDescription const & | moduleDescription () const |
|
virtual | ~EDProducerBase () |
|
| ProducerBase () |
|
void | registerProducts (ProducerBase *, ProductRegistry *, ModuleDescription const &) |
|
std::function< void(BranchDescription
const &)> | registrationCallback () const |
| used by the fwk to register list of products More...
|
|
virtual | ~ProducerBase () |
|
| EDConsumerBase () |
|
ProductHolderIndexAndSkipBit | indexFrom (EDGetToken, BranchType, TypeID const &) const |
|
void | itemsMayGet (BranchType, std::vector< ProductHolderIndexAndSkipBit > &) const |
|
void | itemsToGet (BranchType, std::vector< ProductHolderIndexAndSkipBit > &) const |
|
std::vector
< ProductHolderIndexAndSkipBit >
const & | itemsToGetFromEvent () const |
|
void | labelsForToken (EDGetToken iToken, Labels &oLabels) const |
|
bool | registeredToConsume (ProductHolderIndex, bool, BranchType) const |
|
bool | registeredToConsumeMany (TypeID const &, BranchType) const |
|
void | updateLookup (BranchType iBranchType, ProductHolderIndexHelper const &) |
|
virtual | ~EDConsumerBase () |
|
Definition at line 18 of file BeamHaloProducer.h.
BeamHaloProducer::BeamHaloProducer |
( |
const ParameterSet & |
pset | ) |
|
Constructor.
Definition at line 60 of file BeamHaloProducer.cc.
References _BeamHalo_randomEngine, call_bh_set_parameters(), call_ki_bhg_init(), gather_cfg::cout, edm::RandomNumberGenerator::getEngine(), edm::ParameterSet::getUntrackedParameter(), edm::RandomNumberGenerator::mySeed(), and AlCaHLTBitMon_QueryRunRegistry::string.
90 long seed = (long)(rng->
mySeed());
97 produces<HepMCProduct>();
98 produces<GenEventInfoProduct>();
99 produces<GenRunInfoProduct, InRun>();
101 cout <<
"BeamHaloProducer: starting event generation ... " << endl;
T getUntrackedParameter(std::string const &, T const &) const
CLHEP::HepRandomEngine * _BeamHalo_randomEngine
virtual CLHEP::HepRandomEngine & getEngine() const =0
Use this to get the random number engine, this is the only function most users should call...
bool call_bh_set_parameters(int *ival, float *fval, const std::string cval_string)
bool call_ki_bhg_init(long &seed)
virtual uint32_t mySeed() const =0
Exists for backward compatibility.
BeamHaloProducer::~BeamHaloProducer |
( |
| ) |
|
|
virtual |
bool BeamHaloProducer::call_bh_set_parameters |
( |
int * |
ival, |
|
|
float * |
fval, |
|
|
const std::string |
cval_string |
|
) |
| |
|
private |
bool BeamHaloProducer::call_ki_bhg_fill |
( |
int & |
iret, |
|
|
float & |
weight |
|
) |
| |
|
private |
bool BeamHaloProducer::call_ki_bhg_init |
( |
long & |
seed | ) |
|
|
private |
bool BeamHaloProducer::call_ki_bhg_stat |
( |
int & |
iret | ) |
|
|
private |
void BeamHaloProducer::clear |
( |
void |
| ) |
|
|
private |
void BeamHaloProducer::endRunProduce |
( |
Run & |
r, |
|
|
const EventSetup & |
es |
|
) |
| |
|
privatevirtual |
Implements edm::one::EDProducerBase.
Definition at line 109 of file BeamHaloProducer.cc.
References call_ki_bhg_fill(), edm::EventID::event(), edm::errors::EventCorruption, evt, edm::hlt::Exception, configurableAnalysis::GenParticle, edm::EventBase::id(), AlCaHLTBitMon_ParallelJobs::p, edm::Event::put(), histoStyle::weight, create_public_pileup_plots::weights, and wrapper.
125 <<
"BeamHaloProducer: function call_ki_bhg_fill returned " << iret << endl;
132 evt =
new HepMC::GenEvent();
134 for (
int theindex = 1; theindex<=
wrapper.number_entries(); theindex++) {
135 HepMC::GenVertex* Vtx =
new HepMC::GenVertex(HepMC::FourVector(
wrapper.x(theindex),
wrapper.y(theindex),
wrapper.z(theindex),
wrapper.t(theindex)));
139 Vtx->add_particle_out(Part);
140 evt->add_vertex(Vtx);
146 weights.push_back(weight);
148 std::auto_ptr<HepMCProduct> CMProduct(
new HepMCProduct());
149 if (
evt) CMProduct->addHepMCData(
evt);
EventNumber_t event() const
OrphanHandle< PROD > put(std::auto_ptr< PROD > product)
Put a new product.
bool call_ki_bhg_fill(int &iret, float &weight)
static HepMC::HEPEVT_Wrapper wrapper
float edm::BeamHaloProducer::EG_MAX_ |
|
private |
float edm::BeamHaloProducer::EG_MIN_ |
|
private |
HepMC::GenEvent* edm::BeamHaloProducer::evt |
|
private |
std::string edm::BeamHaloProducer::G3FNAME_ |
|
private |
int edm::BeamHaloProducer::GENMOD_ |
|
private |
int edm::BeamHaloProducer::IW_HAD_ |
|
private |
int edm::BeamHaloProducer::IW_MUO_ |
|
private |
int edm::BeamHaloProducer::LHC_B1_ |
|
private |
int edm::BeamHaloProducer::LHC_B2_ |
|
private |