|
| BeamMomentumGunProducer (const ParameterSet &) |
|
void | produce (Event &e, const EventSetup &es) override |
|
| ~BeamMomentumGunProducer () override |
|
void | beginRun (const edm::Run &, const edm::EventSetup &) override |
|
void | endRun (const edm::Run &r, const edm::EventSetup &) override |
|
void | endRunProduce (edm::Run &r, const edm::EventSetup &) override |
|
| FlatBaseThetaGunProducer (const ParameterSet &) |
|
| ~FlatBaseThetaGunProducer () override |
|
| EDProducer ()=default |
|
SerialTaskQueue * | globalLuminosityBlocksQueue () final |
|
SerialTaskQueue * | globalRunsQueue () final |
|
bool | hasAbilityToProduceInBeginLumis () const final |
|
bool | hasAbilityToProduceInBeginRuns () const final |
|
bool | hasAbilityToProduceInEndLumis () const final |
|
bool | hasAbilityToProduceInEndRuns () const final |
|
bool | wantsGlobalLuminosityBlocks () const final |
|
bool | wantsGlobalRuns () const final |
|
| EDProducerBase () |
|
ModuleDescription const & | moduleDescription () const |
|
bool | wantsStreamLuminosityBlocks () const |
|
bool | wantsStreamRuns () const |
|
| ~EDProducerBase () override |
|
void | callWhenNewProductsRegistered (std::function< void(BranchDescription const &)> const &func) |
|
std::vector< edm::ProductResolverIndex > const & | indiciesForPutProducts (BranchType iBranchType) const |
|
| ProducerBase () |
|
std::vector< edm::ProductResolverIndex > const & | putTokenIndexToProductResolverIndex () const |
|
std::vector< bool > const & | recordProvenanceList () const |
|
void | registerProducts (ProducerBase *, ProductRegistry *, ModuleDescription const &) |
|
std::function< void(BranchDescription const &)> | registrationCallback () const |
| used by the fwk to register list of products More...
|
|
void | resolvePutIndicies (BranchType iBranchType, ModuleToResolverIndicies const &iIndicies, std::string const &moduleLabel) |
|
TypeLabelList const & | typeLabelList () const |
| used by the fwk to register the list of products of this module More...
|
|
| ~ProducerBase () noexcept(false) override |
|
std::vector< ConsumesInfo > | consumesInfo () const |
|
void | convertCurrentProcessAlias (std::string const &processName) |
| Convert "@currentProcess" in InputTag process names to the actual current process name. More...
|
|
| EDConsumerBase () |
|
| EDConsumerBase (EDConsumerBase &&)=default |
|
| EDConsumerBase (EDConsumerBase const &)=delete |
|
ESProxyIndex const * | esGetTokenIndices (edm::Transition iTrans) const |
|
ProductResolverIndexAndSkipBit | indexFrom (EDGetToken, BranchType, TypeID const &) const |
|
void | itemsMayGet (BranchType, std::vector< ProductResolverIndexAndSkipBit > &) const |
|
void | itemsToGet (BranchType, std::vector< ProductResolverIndexAndSkipBit > &) const |
|
std::vector< ProductResolverIndexAndSkipBit > const & | itemsToGetFrom (BranchType iType) const |
|
void | labelsForToken (EDGetToken iToken, Labels &oLabels) const |
|
void | modulesWhoseProductsAreConsumed (std::vector< ModuleDescription const * > &modules, ProductRegistry const &preg, std::map< std::string, ModuleDescription const * > const &labelsToDesc, std::string const &processName) const |
|
EDConsumerBase & | operator= (EDConsumerBase &&)=default |
|
EDConsumerBase const & | operator= (EDConsumerBase const &)=delete |
|
bool | registeredToConsume (ProductResolverIndex, bool, BranchType) const |
|
bool | registeredToConsumeMany (TypeID const &, BranchType) const |
|
ProductResolverIndexAndSkipBit | uncheckedIndexFrom (EDGetToken) const |
|
void | updateLookup (BranchType iBranchType, ProductResolverIndexHelper const &, bool iPrefetchMayGet) |
|
void | updateLookup (eventsetup::ESRecordsToProxyIndices const &) |
|
virtual | ~EDConsumerBase () noexcept(false) |
|
|
typedef EDProducerBase | ModuleType |
|
using | ModuleToResolverIndicies = std::unordered_multimap< std::string, std::tuple< edm::TypeID const *, const char *, edm::ProductResolverIndex > > |
|
typedef ProductRegistryHelper::TypeLabelList | TypeLabelList |
|
typedef ProductLabels | Labels |
|
static const std::string & | baseType () |
|
static void | fillDescriptions (ConfigurationDescriptions &descriptions) |
|
static void | prevalidate (ConfigurationDescriptions &descriptions) |
|
template<class ProductType > |
BranchAliasSetterT< ProductType > | produces () |
| declare what type of product will make and with which optional label More...
|
|
template<typename ProductType , BranchType B> |
BranchAliasSetterT< ProductType > | produces () |
|
template<typename ProductType , Transition B> |
BranchAliasSetterT< ProductType > | produces () |
|
BranchAliasSetter | produces (const TypeID &id, std::string instanceName=std::string(), bool recordProvenance=true) |
|
template<BranchType B> |
BranchAliasSetter | produces (const TypeID &id, std::string instanceName=std::string(), bool recordProvenance=true) |
|
template<Transition B> |
BranchAliasSetter | produces (const TypeID &id, std::string instanceName=std::string(), bool recordProvenance=true) |
|
template<typename ProductType , Transition B> |
BranchAliasSetterT< ProductType > | produces (std::string instanceName) |
|
template<class ProductType > |
BranchAliasSetterT< ProductType > | produces (std::string instanceName) |
|
template<typename ProductType , BranchType B> |
BranchAliasSetterT< ProductType > | produces (std::string instanceName) |
|
ProducesCollector | producesCollector () |
|
EDGetToken | consumes (const TypeToGet &id, edm::InputTag const &tag) |
|
template<typename ProductType , BranchType B = InEvent> |
EDGetTokenT< ProductType > | consumes (edm::InputTag const &tag) |
|
template<BranchType B> |
EDGetToken | consumes (TypeToGet const &id, edm::InputTag const &tag) |
|
ConsumesCollector | consumesCollector () |
| Use a ConsumesCollector to gather consumes information from helper functions. More...
|
|
template<typename ProductType , BranchType B = InEvent> |
void | consumesMany () |
|
void | consumesMany (const TypeToGet &id) |
|
template<BranchType B> |
void | consumesMany (const TypeToGet &id) |
|
template<typename ESProduct , typename ESRecord , Transition Tr = Transition::Event> |
auto | esConsumes () |
|
template<typename ESProduct , typename ESRecord , Transition Tr = Transition::Event> |
auto | esConsumes (ESInputTag const &tag) |
|
EDGetToken | mayConsume (const TypeToGet &id, edm::InputTag const &tag) |
|
template<BranchType B> |
EDGetToken | mayConsume (const TypeToGet &id, edm::InputTag const &tag) |
|
template<typename ProductType , BranchType B = InEvent> |
EDGetTokenT< ProductType > | mayConsume (edm::InputTag const &tag) |
|
bool | fAddAntiParticle |
|
HepMC::GenEvent * | fEvt |
|
double | fMaxPhi |
|
double | fMaxTheta |
|
double | fMinPhi |
|
double | fMinTheta |
|
std::vector< int > | fPartIDs |
|
ESHandle< HepPDT::ParticleDataTable > | fPDGTable |
|
int | fVerbosity |
|
Definition at line 15 of file BeamMomentumGunProducer.h.
edm::BeamMomentumGunProducer::BeamMomentumGunProducer |
( |
const ParameterSet & |
pset | ) |
|
Definition at line 21 of file BeamMomentumGunProducer.cc.
47 <<
"Beam vertex offset (cm) " <<
xoff_ <<
":" <<
yoff_ <<
" and z position " <<
zpos_;
68 if ((
npart != 0) || (
event != 0) || (
pdgid != 0) || (parxx != 0) || (paryy != 0) || (parzz != 0) || (parpx != 0) ||
69 (parpy != 0) || (parpz != 0))
70 throw cms::Exception(
"GenException") <<
"Branch address wrong in i/p file\n";
72 produces<HepMCProduct>(
"unsmeared");
73 produces<GenEventInfoProduct>();
References b_eventId_, b_npar_, b_parPDGId_, b_parPx_, b_parPy_, b_parPz_, b_parX_, b_parY_, b_parZ_, eventId_, Exception, fFile_, personalPlayback::fp, fTree_, edm::FlatBaseThetaGunProducer::fVerbosity, edm::ParameterSet::getParameter(), validateGeometry_cfg::infileName, nentries_, npar_, npart, parPDGId_, parPx_, parPy_, parPz_, parX_, parY_, parZ_, EgammaValidation_cff::pdgid, muonDTDigis_cfi::pset, AlCaHLTBitMon_QueryRunRegistry::string, xoff_, yoff_, and zpos_.
Implements edm::one::EDProducerBase.
Definition at line 79 of file BeamMomentumGunProducer.cc.
81 edm::LogVerbatim(
"BeamMomentumGun") <<
"BeamMomentumGunProducer : Begin New Event Generation";
84 CLHEP::HepRandomEngine* engine = &rng->
getEngine(
e.streamID());
93 long int rjentry = static_cast<long int>(CLHEP::RandFlat::shoot(engine, 0,
nentries_ - 1));
100 for (
unsigned int ip = 0; ip <
parPDGId_->size(); ip++) {
103 double mass = pData->mass().value();
109 HepMC::GenVertex* Vtx =
new HepMC::GenVertex(HepMC::FourVector(xp, yp, zp));
132 part->suggest_barcode(barcode);
134 Vtx->add_particle_out(
part);
138 int apartID = (partID == 22 || partID == 23) ? partID : -partID;
140 apart->suggest_barcode(barcode);
143 <<
"Add anti-particle " << apartID <<
":" << -
px <<
":" << -
py <<
":" << -pz;
145 Vtx->add_particle_out(apart);
148 fEvt->add_vertex(Vtx);
151 fEvt->set_event_number(
e.id().event());
152 fEvt->set_signal_process_id(20);
157 std::unique_ptr<HepMCProduct> BProduct(
new HepMCProduct());
158 BProduct->addHepMCData(
fEvt);
165 edm::LogVerbatim(
"BeamMomentumGun") <<
"BeamMomentumGunProducer : Event Generation Done";
References funct::abs(), cm2mm_, funct::cos(), MillePedeFileConverter_cfg::e, HCALHighEnergyHPDFilter_cfi::energy, eventId_, edm::FlatBaseThetaGunProducer::fAddAntiParticle, edm::FlatBaseThetaGunProducer::fEvt, edm::FlatBaseThetaGunProducer::fMaxPhi, edm::FlatBaseThetaGunProducer::fMaxTheta, edm::FlatBaseThetaGunProducer::fMinPhi, edm::FlatBaseThetaGunProducer::fMinTheta, edm::FlatBaseThetaGunProducer::fPDGTable, fTree_, edm::FlatBaseThetaGunProducer::fVerbosity, genParticles2HepMC_cfi::genEventInfo, GenParticle::GenParticle, edm::RandomNumberGenerator::getEngine(), ZgammaFilter_cfi::HepMCProduct, EgHLTOffHistBins_cfi::mass, MeV2GeV_, eostools::move(), nentries_, npar_, AlCaHLTBitMon_ParallelJobs::p, parPDGId_, parPx_, parPy_, parPz_, LHEGenericFilter_cfi::ParticleID, parX_, parY_, multPhiCorr_741_25nsDY_cfi::px, multPhiCorr_741_25nsDY_cfi::py, funct::sin(), mathSSE::sqrt(), theta(), xoff_, yoff_, and zpos_.