#include <BeamMomentumGunProducer.h>
Private Attributes | |
TBranch * | b_eventId_ |
TBranch * | b_npar_ |
TBranch * | b_parPDGId_ |
TBranch * | b_parPx_ |
TBranch * | b_parPy_ |
TBranch * | b_parPz_ |
TBranch * | b_parX_ |
TBranch * | b_parY_ |
TBranch * | b_parZ_ |
int | eventId_ |
TFile * | fFile_ |
TTree * | fTree_ |
long int | nentries_ |
int | npar_ |
std::vector< int > * | parPDGId_ |
std::vector< float > * | parPx_ |
std::vector< float > * | parPy_ |
std::vector< float > * | parPz_ |
std::vector< float > * | parX_ |
std::vector< float > * | parY_ |
std::vector< float > * | parZ_ |
double | xoff_ |
double | yoff_ |
double | zpos_ |
Static Private Attributes | |
static constexpr double | cm2mm_ = 10.0 |
static constexpr double | MeV2GeV_ = 0.001 |
static constexpr double | mm2cm_ = 0.1 |
Additional Inherited Members | |
Public Types inherited from edm::one::EDProducerBase | |
typedef EDProducerBase | ModuleType |
Public Types inherited from edm::ProducerBase | |
using | ModuleToResolverIndicies = std::unordered_multimap< std::string, std::tuple< edm::TypeID const *, const char *, edm::ProductResolverIndex >> |
typedef ProductRegistryHelper::TypeLabelList | TypeLabelList |
Public Types inherited from edm::EDConsumerBase | |
typedef ProductLabels | Labels |
Static Public Member Functions inherited from edm::one::EDProducerBase | |
static const std::string & | baseType () |
static void | fillDescriptions (ConfigurationDescriptions &descriptions) |
static void | prevalidate (ConfigurationDescriptions &descriptions) |
Protected Member Functions inherited from edm::ProducerBase | |
ProducesCollector | producesCollector () |
Protected Member Functions inherited from edm::EDConsumerBase | |
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 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) |
template<Transition Tr = Transition::Event> | |
constexpr auto | esConsumes () noexcept |
template<Transition Tr = Transition::Event> | |
auto | esConsumes (ESInputTag tag) noexcept |
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) |
Protected Attributes inherited from edm::FlatBaseThetaGunProducer | |
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_, edmPickEvents::event, eventId_, Exception, fFile_, personalPlayback::fp, fTree_, edm::FileInPath::fullPath(), edm::FlatBaseThetaGunProducer::fVerbosity, edm::ParameterSet::getParameter(), validateGeometry_cfg::infileName, nentries_, npar_, npart, parPDGId_, parPx_, parPy_, parPz_, parX_, parY_, parZ_, AlCaHLTBitMon_QueryRunRegistry::string, xoff_, yoff_, and zpos_.
|
inlineoverride |
Definition at line 18 of file BeamMomentumGunProducer.h.
|
overridevirtual |
Implements edm::one::EDProducerBase.
Definition at line 79 of file BeamMomentumGunProducer.cc.
References funct::abs(), cm2mm_, funct::cos(), relval_parameters_module::energy, edm::EventID::event(), 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, GenParticle::GenParticle, edm::RandomNumberGenerator::getEngine(), edm::EventBase::id(), ResonanceBuilder::mass, MeV2GeV_, eostools::move(), nentries_, npar_, AlCaHLTBitMon_ParallelJobs::p, parPDGId_, parPx_, parPy_, parPz_, parX_, parY_, edm::Event::put(), funct::sin(), mathSSE::sqrt(), edm::Event::streamID(), theta(), xoff_, yoff_, and zpos_.
|
private |
Definition at line 36 of file BeamMomentumGunProducer.h.
Referenced by BeamMomentumGunProducer().
|
private |
Definition at line 36 of file BeamMomentumGunProducer.h.
Referenced by BeamMomentumGunProducer().
|
private |
Definition at line 36 of file BeamMomentumGunProducer.h.
Referenced by BeamMomentumGunProducer().
|
private |
Definition at line 38 of file BeamMomentumGunProducer.h.
Referenced by BeamMomentumGunProducer().
|
private |
Definition at line 38 of file BeamMomentumGunProducer.h.
Referenced by BeamMomentumGunProducer().
|
private |
Definition at line 38 of file BeamMomentumGunProducer.h.
Referenced by BeamMomentumGunProducer().
|
private |
Definition at line 37 of file BeamMomentumGunProducer.h.
Referenced by BeamMomentumGunProducer().
|
private |
Definition at line 37 of file BeamMomentumGunProducer.h.
Referenced by BeamMomentumGunProducer().
|
private |
Definition at line 37 of file BeamMomentumGunProducer.h.
Referenced by BeamMomentumGunProducer().
|
staticprivate |
Definition at line 40 of file BeamMomentumGunProducer.h.
Referenced by produce().
|
private |
Definition at line 30 of file BeamMomentumGunProducer.h.
Referenced by BeamMomentumGunProducer(), and produce().
|
private |
Definition at line 25 of file BeamMomentumGunProducer.h.
Referenced by BeamMomentumGunProducer().
|
private |
Definition at line 26 of file BeamMomentumGunProducer.h.
Referenced by BeamMomentumGunProducer(), and produce().
|
staticprivate |
Definition at line 41 of file BeamMomentumGunProducer.h.
Referenced by produce().
|
staticprivate |
Definition at line 40 of file BeamMomentumGunProducer.h.
|
private |
Definition at line 27 of file BeamMomentumGunProducer.h.
Referenced by BeamMomentumGunProducer(), and produce().
|
private |
Definition at line 30 of file BeamMomentumGunProducer.h.
Referenced by BeamMomentumGunProducer(), and produce().
|
private |
Definition at line 31 of file BeamMomentumGunProducer.h.
Referenced by BeamMomentumGunProducer(), and produce().
|
private |
Definition at line 33 of file BeamMomentumGunProducer.h.
Referenced by BeamMomentumGunProducer(), and produce().
|
private |
Definition at line 33 of file BeamMomentumGunProducer.h.
Referenced by BeamMomentumGunProducer(), and produce().
|
private |
Definition at line 33 of file BeamMomentumGunProducer.h.
Referenced by BeamMomentumGunProducer(), and produce().
|
private |
Definition at line 32 of file BeamMomentumGunProducer.h.
Referenced by BeamMomentumGunProducer(), and produce().
|
private |
Definition at line 32 of file BeamMomentumGunProducer.h.
Referenced by BeamMomentumGunProducer(), and produce().
|
private |
Definition at line 32 of file BeamMomentumGunProducer.h.
Referenced by BeamMomentumGunProducer().
|
private |
Definition at line 24 of file BeamMomentumGunProducer.h.
Referenced by BeamMomentumGunProducer(), and produce().
|
private |
Definition at line 24 of file BeamMomentumGunProducer.h.
Referenced by BeamMomentumGunProducer(), and produce().
|
private |
Definition at line 24 of file BeamMomentumGunProducer.h.
Referenced by BeamMomentumGunProducer(), and produce().