|
| 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 |
|
| EDProducer (const EDProducer &)=delete |
|
SerialTaskQueue * | globalLuminosityBlocksQueue () final |
|
SerialTaskQueue * | globalRunsQueue () final |
|
bool | hasAbilityToProduceInBeginLumis () const final |
|
bool | hasAbilityToProduceInBeginProcessBlocks () const final |
|
bool | hasAbilityToProduceInBeginRuns () const final |
|
bool | hasAbilityToProduceInEndLumis () const final |
|
bool | hasAbilityToProduceInEndProcessBlocks () const final |
|
bool | hasAbilityToProduceInEndRuns () const final |
|
const EDProducer & | operator= (const EDProducer &)=delete |
|
bool | wantsGlobalLuminosityBlocks () const final |
|
bool | wantsGlobalRuns () const final |
|
bool | wantsInputProcessBlocks () const final |
|
bool | wantsProcessBlocks () 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 const &)=delete |
|
| EDConsumerBase (EDConsumerBase &&)=default |
|
ESResolverIndex const * | esGetTokenIndices (edm::Transition iTrans) const |
|
std::vector< ESResolverIndex > const & | esGetTokenIndicesVector (edm::Transition iTrans) const |
|
std::vector< ESRecordIndex > const & | esGetTokenRecordIndicesVector (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::array< std::vector< ModuleDescription const *> *, NumBranchTypes > &modulesAll, std::vector< ModuleProcessName > &modulesInPreviousProcesses, ProductRegistry const &preg, std::map< std::string, ModuleDescription const *> const &labelsToDesc, std::string const &processName) const |
|
EDConsumerBase const & | operator= (EDConsumerBase const &)=delete |
|
EDConsumerBase & | operator= (EDConsumerBase &&)=default |
|
bool | registeredToConsume (ProductResolverIndex, bool, BranchType) const |
|
void | selectInputProcessBlocks (ProductRegistry const &productRegistry, ProcessBlockHelperBase const &processBlockHelperBase) |
|
ProductResolverIndexAndSkipBit | uncheckedIndexFrom (EDGetToken) const |
|
void | updateLookup (BranchType iBranchType, ProductResolverIndexHelper const &, bool iPrefetchMayGet) |
|
void | updateLookup (eventsetup::ESRecordsToProductResolverIndices const &) |
|
virtual | ~EDConsumerBase () noexcept(false) |
|
|
typedef EDProducerBase | ModuleType |
|
template<typename T > |
using | BranchAliasSetterT = ProductRegistryHelper::BranchAliasSetterT< T > |
|
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<Transition Tr = Transition::Event> |
auto | produces (std::string instanceName) noexcept |
| declare what type of product will make and with which optional label More...
|
|
template<Transition B> |
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) |
|
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 () |
|
template<typename ProductType , BranchType B> |
BranchAliasSetterT< ProductType > | produces (std::string instanceName) |
|
template<typename ProductType , BranchType B> |
BranchAliasSetterT< ProductType > | produces () |
|
template<class ProductType > |
BranchAliasSetterT< ProductType > | produces (std::string instanceName) |
|
template<typename ProductType , Transition B> |
BranchAliasSetterT< ProductType > | produces () |
|
template<Transition Tr = Transition::Event> |
auto | produces () noexcept |
|
ProducesCollector | producesCollector () |
|
template<typename ProductType , BranchType B = InEvent> |
EDGetTokenT< ProductType > | consumes (edm::InputTag const &tag) |
|
template<BranchType B = InEvent> |
EDConsumerBaseAdaptor< B > | consumes (edm::InputTag tag) noexcept |
|
EDGetToken | consumes (const TypeToGet &id, 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 ESProduct , typename ESRecord , Transition Tr = Transition::Event> |
auto | esConsumes () |
|
template<typename ESProduct , typename ESRecord , Transition Tr = Transition::Event> |
auto | esConsumes (ESInputTag const &tag) |
|
template<Transition Tr = Transition::Event> |
constexpr auto | esConsumes () |
|
template<Transition Tr = Transition::Event> |
auto | esConsumes (ESInputTag tag) |
|
template<Transition Tr = Transition::Event> |
ESGetTokenGeneric | esConsumes (eventsetup::EventSetupRecordKey const &iRecord, eventsetup::DataKey const &iKey) |
| Used with EventSetupRecord::doGet. More...
|
|
template<typename ProductType , BranchType B = InEvent> |
EDGetTokenT< ProductType > | mayConsume (edm::InputTag const &tag) |
|
EDGetToken | mayConsume (const TypeToGet &id, edm::InputTag const &tag) |
|
template<BranchType B> |
EDGetToken | mayConsume (const TypeToGet &id, edm::InputTag const &tag) |
|
void | resetItemsToGetFrom (BranchType iType) |
|
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.
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_.
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>();
Log< level::Info, true > LogVerbatim
T getParameter(std::string const &) const
std::vector< float > * parPz_
std::vector< float > * parZ_
std::vector< float > * parX_
std::vector< float > * parPy_
std::vector< float > * parY_
std::vector< int > * parPDGId_
FlatBaseThetaGunProducer(const ParameterSet &)
std::vector< float > * parPx_
Implements edm::one::EDProducerBase.
Definition at line 79 of file BeamMomentumGunProducer.cc.
References funct::abs(), cm2mm_, funct::cos(), MillePedeFileConverter_cfg::e, hcalRecHitTable_cff::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_.
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";
Log< level::Info, true > LogVerbatim
static constexpr double MeV2GeV_
static constexpr double cm2mm_
std::vector< float > * parPz_
Sin< T >::type sin(const T &t)
ESHandle< HepPDT::ParticleDataTable > fPDGTable
virtual CLHEP::HepRandomEngine & getEngine(StreamID const &)=0
Use this engine in event methods.
Cos< T >::type cos(const T &t)
Abs< T >::type abs(const T &t)
HepPDT::ParticleData ParticleData
std::vector< float > * parX_
std::vector< float > * parPy_
std::vector< float > * parY_
std::vector< int > * parPDGId_
Geom::Theta< T > theta() const
std::vector< float > * parPx_