CMS 3D CMS Logo

List of all members | Public Member Functions | Private Attributes | Static Private Attributes
edm::BeamMomentumGunProducer Class Reference

#include <BeamMomentumGunProducer.h>

Inheritance diagram for edm::BeamMomentumGunProducer:
edm::FlatBaseThetaGunProducer edm::one::EDProducer< one::WatchRuns, EndRunProducer > edm::one::EDProducerBase edm::ProducerBase edm::EDConsumerBase edm::ProductRegistryHelper

Public Member Functions

 BeamMomentumGunProducer (const ParameterSet &)
 
void produce (Event &e, const EventSetup &es) override
 
 ~BeamMomentumGunProducer () override
 
- Public Member Functions inherited from edm::FlatBaseThetaGunProducer
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
 
- Public Member Functions inherited from edm::one::EDProducer< one::WatchRuns, EndRunProducer >
 EDProducer ()=default
 
 EDProducer (const EDProducer &)=delete
 
SerialTaskQueueglobalLuminosityBlocksQueue () final
 
SerialTaskQueueglobalRunsQueue () 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 EDProduceroperator= (const EDProducer &)=delete
 
bool wantsGlobalLuminosityBlocks () const final
 
bool wantsGlobalRuns () const final
 
bool wantsInputProcessBlocks () const final
 
bool wantsProcessBlocks () const final
 
- Public Member Functions inherited from edm::one::EDProducerBase
 EDProducerBase ()
 
ModuleDescription const & moduleDescription () const
 
bool wantsStreamLuminosityBlocks () const
 
bool wantsStreamRuns () const
 
 ~EDProducerBase () override
 
- Public Member Functions inherited from edm::ProducerBase
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
 
- Public Member Functions inherited from edm::EDConsumerBase
std::vector< ConsumesInfoconsumesInfo () 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
 
ESProxyIndex const * esGetTokenIndices (edm::Transition iTrans) const
 
std::vector< ESProxyIndex > 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
 
EDConsumerBaseoperator= (EDConsumerBase &&)=default
 
bool registeredToConsume (ProductResolverIndex, bool, BranchType) const
 
bool registeredToConsumeMany (TypeID const &, 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::ESRecordsToProxyIndices const &)
 
virtual ~EDConsumerBase () noexcept(false)
 

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
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 ()
 
- 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< Bconsumes (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 ()
 
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)
 
- Protected Attributes inherited from edm::FlatBaseThetaGunProducer
bool fAddAntiParticle
 
HepMC::GenEventfEvt
 
double fMaxPhi
 
double fMaxTheta
 
double fMinPhi
 
double fMinTheta
 
std::vector< int > fPartIDs
 
ESHandle< HepPDT::ParticleDataTablefPDGTable
 
int fVerbosity
 

Detailed Description

Definition at line 15 of file BeamMomentumGunProducer.h.

Constructor & Destructor Documentation

◆ BeamMomentumGunProducer()

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_.

23  parPDGId_(nullptr),
24  parX_(nullptr),
25  parY_(nullptr),
26  parZ_(nullptr),
27  parPx_(nullptr),
28  parPy_(nullptr),
29  parPz_(nullptr),
30  b_npar_(nullptr),
31  b_eventId_(nullptr),
32  b_parPDGId_(nullptr),
33  b_parX_(nullptr),
34  b_parY_(nullptr),
35  b_parZ_(nullptr),
36  b_parPx_(nullptr),
37  b_parPy_(nullptr),
38  b_parPz_(nullptr) {
39  edm::ParameterSet pgun_params = pset.getParameter<edm::ParameterSet>("PGunParameters");
40 
41  // doesn't seem necessary to check if pset is empty
42  xoff_ = pgun_params.getParameter<double>("XOffset");
43  yoff_ = pgun_params.getParameter<double>("YOffset");
44  zpos_ = pgun_params.getParameter<double>("ZPosition");
45  if (fVerbosity > 0)
46  edm::LogVerbatim("BeamMomentumGun")
47  << "Beam vertex offset (cm) " << xoff_ << ":" << yoff_ << " and z position " << zpos_;
48 
49  edm::FileInPath fp = pgun_params.getParameter<edm::FileInPath>("FileName");
50  std::string infileName = fp.fullPath();
51 
52  fFile_ = new TFile(infileName.c_str());
53  fFile_->GetObject("EventTree", fTree_);
54  nentries_ = fTree_->GetEntriesFast();
55  if (fVerbosity > 0)
56  edm::LogVerbatim("BeamMomentumGun") << "Total Events: " << nentries_ << " in " << infileName;
57 
58  // Set branch addresses and branch pointers
59  int npart = fTree_->SetBranchAddress("npar", &npar_, &b_npar_);
60  int event = fTree_->SetBranchAddress("eventId", &eventId_, &b_eventId_);
61  int pdgid = fTree_->SetBranchAddress("parPDGId", &parPDGId_, &b_parPDGId_);
62  int parxx = fTree_->SetBranchAddress("parX", &parX_, &b_parX_);
63  int paryy = fTree_->SetBranchAddress("parY", &parY_, &b_parY_);
64  int parzz = fTree_->SetBranchAddress("parZ", &parZ_, &b_parZ_);
65  int parpx = fTree_->SetBranchAddress("parPx", &parPx_, &b_parPx_);
66  int parpy = fTree_->SetBranchAddress("parPy", &parPy_, &b_parPy_);
67  int parpz = fTree_->SetBranchAddress("parPz", &parPz_, &b_parPz_);
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";
71 
72  produces<HepMCProduct>("unsmeared");
73  produces<GenEventInfoProduct>();
74 
75  if (fVerbosity > 0)
76  edm::LogVerbatim("BeamMomentumGun") << "BeamMonetumGun is initialzed";
77  }
Log< level::Info, true > LogVerbatim
T getParameter(std::string const &) const
Definition: ParameterSet.h:307
double npart
Definition: HydjetWrapper.h:46
FlatBaseThetaGunProducer(const ParameterSet &)
Definition: event.py:1

◆ ~BeamMomentumGunProducer()

edm::BeamMomentumGunProducer::~BeamMomentumGunProducer ( )
inlineoverride

Definition at line 18 of file BeamMomentumGunProducer.h.

18 {}

Member Function Documentation

◆ produce()

void edm::BeamMomentumGunProducer::produce ( edm::Event e,
const EventSetup es 
)
overridevirtual

Implements edm::one::EDProducerBase.

Definition at line 79 of file BeamMomentumGunProducer.cc.

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_.

79  {
80  if (fVerbosity > 0)
81  edm::LogVerbatim("BeamMomentumGun") << "BeamMomentumGunProducer : Begin New Event Generation";
82 
84  CLHEP::HepRandomEngine* engine = &rng->getEngine(e.streamID());
85 
86  // event loop (well, another step in it...)
87  // no need to clean up GenEvent memory - done in HepMCProduct
88  // here re-create fEvt (memory)
89  //
90  fEvt = new HepMC::GenEvent();
91 
92  // random entry generation for peaking event randomly from tree
93  long int rjentry = static_cast<long int>(CLHEP::RandFlat::shoot(engine, 0, nentries_ - 1));
94  fTree_->GetEntry(rjentry);
95  if (fVerbosity > 0)
96  edm::LogVerbatim("BeamMomentumGun") << "Entry " << rjentry << " : " << eventId_ << " : " << npar_;
97 
98  // loop over particles
99  int barcode = 1;
100  for (unsigned int ip = 0; ip < parPDGId_->size(); ip++) {
101  int partID = parPDGId_->at(ip);
102  const HepPDT::ParticleData* pData = fPDGTable->particle(HepPDT::ParticleID(std::abs(partID)));
103  double mass = pData->mass().value();
104  if (fVerbosity > 0)
105  edm::LogVerbatim("BeamMomentumGun") << "PDGId: " << partID << " mass: " << mass;
106  double xp = (xoff_ * cm2mm_ + (-1) * parY_->at(ip)); // 90 degree rotation applied
107  double yp = (yoff_ * cm2mm_ + parX_->at(ip)); // 90 degree rotation applied
108  double zp = zpos_ * cm2mm_;
109  HepMC::GenVertex* Vtx = new HepMC::GenVertex(HepMC::FourVector(xp, yp, zp));
110  double pxGeV = MeV2GeV_ * (-1) * parPy_->at(ip); // 90 degree rotation applied
111  double pyGeV = MeV2GeV_ * parPx_->at(ip); // 90 degree rotation applied
112  double pzGeV = MeV2GeV_ * parPz_->at(ip);
113  double theta = CLHEP::RandFlat::shoot(engine, fMinTheta, fMaxTheta);
114  double phi = CLHEP::RandFlat::shoot(engine, fMinPhi, fMaxPhi);
115  // rotation about Z axis
116  double px1 = pxGeV * cos(phi) - pyGeV * sin(phi);
117  double py1 = pxGeV * sin(phi) + pyGeV * cos(phi);
118  double pz1 = pzGeV;
119  // rotation about Y axis
120  double px = px1 * cos(theta) + pz1 * sin(theta);
121  double py = py1;
122  double pz = -px1 * sin(theta) + pz1 * cos(theta);
123  double energy = std::sqrt(px * px + py * py + pz * pz + mass * mass);
124 
125  if (fVerbosity > 0) {
126  edm::LogVerbatim("BeamMomentumGun") << "x:y:z [mm] " << xp << ":" << yp << ":" << zpos_;
127  edm::LogVerbatim("BeamMomentumGun") << "px:py:pz [GeV] " << px << ":" << py << ":" << pz;
128  }
129 
130  HepMC::FourVector p(px, py, pz, energy);
131  HepMC::GenParticle* part = new HepMC::GenParticle(p, partID, 1);
132  part->suggest_barcode(barcode);
133  barcode++;
134  Vtx->add_particle_out(part);
135 
136  if (fAddAntiParticle) {
137  HepMC::FourVector ap(-px, -py, -pz, energy);
138  int apartID = (partID == 22 || partID == 23) ? partID : -partID;
139  HepMC::GenParticle* apart = new HepMC::GenParticle(ap, apartID, 1);
140  apart->suggest_barcode(barcode);
141  if (fVerbosity > 0)
142  edm::LogVerbatim("BeamMomentumGun")
143  << "Add anti-particle " << apartID << ":" << -px << ":" << -py << ":" << -pz;
144  barcode++;
145  Vtx->add_particle_out(apart);
146  }
147 
148  fEvt->add_vertex(Vtx);
149  }
150 
151  fEvt->set_event_number(e.id().event());
152  fEvt->set_signal_process_id(20);
153 
154  if (fVerbosity > 0)
155  fEvt->print();
156 
157  std::unique_ptr<HepMCProduct> BProduct(new HepMCProduct());
158  BProduct->addHepMCData(fEvt);
159  e.put(std::move(BProduct), "unsmeared");
160 
161  std::unique_ptr<GenEventInfoProduct> genEventInfo(new GenEventInfoProduct(fEvt));
162  e.put(std::move(genEventInfo));
163 
164  if (fVerbosity > 0)
165  edm::LogVerbatim("BeamMomentumGun") << "BeamMomentumGunProducer : Event Generation Done";
166  }
Log< level::Info, true > LogVerbatim
static constexpr double MeV2GeV_
Sin< T >::type sin(const T &t)
Definition: Sin.h:22
ESHandle< HepPDT::ParticleDataTable > fPDGTable
virtual CLHEP::HepRandomEngine & getEngine(StreamID const &)=0
Use this engine in event methods.
T sqrt(T t)
Definition: SSEVec.h:19
Cos< T >::type cos(const T &t)
Definition: Cos.h:22
Abs< T >::type abs(const T &t)
Definition: Abs.h:22
HepPDT::ParticleData ParticleData
part
Definition: HCALResponse.h:20
Geom::Theta< T > theta() const
def move(src, dest)
Definition: eostools.py:511

Member Data Documentation

◆ b_eventId_

TBranch * edm::BeamMomentumGunProducer::b_eventId_
private

Definition at line 36 of file BeamMomentumGunProducer.h.

Referenced by BeamMomentumGunProducer().

◆ b_npar_

TBranch* edm::BeamMomentumGunProducer::b_npar_
private

Definition at line 36 of file BeamMomentumGunProducer.h.

Referenced by BeamMomentumGunProducer().

◆ b_parPDGId_

TBranch * edm::BeamMomentumGunProducer::b_parPDGId_
private

Definition at line 36 of file BeamMomentumGunProducer.h.

Referenced by BeamMomentumGunProducer().

◆ b_parPx_

TBranch* edm::BeamMomentumGunProducer::b_parPx_
private

Definition at line 38 of file BeamMomentumGunProducer.h.

Referenced by BeamMomentumGunProducer().

◆ b_parPy_

TBranch * edm::BeamMomentumGunProducer::b_parPy_
private

Definition at line 38 of file BeamMomentumGunProducer.h.

Referenced by BeamMomentumGunProducer().

◆ b_parPz_

TBranch * edm::BeamMomentumGunProducer::b_parPz_
private

Definition at line 38 of file BeamMomentumGunProducer.h.

Referenced by BeamMomentumGunProducer().

◆ b_parX_

TBranch* edm::BeamMomentumGunProducer::b_parX_
private

Definition at line 37 of file BeamMomentumGunProducer.h.

Referenced by BeamMomentumGunProducer().

◆ b_parY_

TBranch * edm::BeamMomentumGunProducer::b_parY_
private

Definition at line 37 of file BeamMomentumGunProducer.h.

Referenced by BeamMomentumGunProducer().

◆ b_parZ_

TBranch * edm::BeamMomentumGunProducer::b_parZ_
private

Definition at line 37 of file BeamMomentumGunProducer.h.

Referenced by BeamMomentumGunProducer().

◆ cm2mm_

constexpr double edm::BeamMomentumGunProducer::cm2mm_ = 10.0
staticprivate

Definition at line 40 of file BeamMomentumGunProducer.h.

Referenced by produce().

◆ eventId_

int edm::BeamMomentumGunProducer::eventId_
private

Definition at line 30 of file BeamMomentumGunProducer.h.

Referenced by BeamMomentumGunProducer(), and produce().

◆ fFile_

TFile* edm::BeamMomentumGunProducer::fFile_
private

Definition at line 25 of file BeamMomentumGunProducer.h.

Referenced by BeamMomentumGunProducer().

◆ fTree_

TTree* edm::BeamMomentumGunProducer::fTree_
private

Definition at line 26 of file BeamMomentumGunProducer.h.

Referenced by BeamMomentumGunProducer(), and produce().

◆ MeV2GeV_

constexpr double edm::BeamMomentumGunProducer::MeV2GeV_ = 0.001
staticprivate

Definition at line 41 of file BeamMomentumGunProducer.h.

Referenced by produce().

◆ mm2cm_

constexpr double edm::BeamMomentumGunProducer::mm2cm_ = 0.1
staticprivate

Definition at line 40 of file BeamMomentumGunProducer.h.

◆ nentries_

long int edm::BeamMomentumGunProducer::nentries_
private

Definition at line 27 of file BeamMomentumGunProducer.h.

Referenced by BeamMomentumGunProducer(), and produce().

◆ npar_

int edm::BeamMomentumGunProducer::npar_
private

Definition at line 30 of file BeamMomentumGunProducer.h.

Referenced by BeamMomentumGunProducer(), and produce().

◆ parPDGId_

std::vector<int>* edm::BeamMomentumGunProducer::parPDGId_
private

Definition at line 31 of file BeamMomentumGunProducer.h.

Referenced by BeamMomentumGunProducer(), and produce().

◆ parPx_

std::vector<float>* edm::BeamMomentumGunProducer::parPx_
private

Definition at line 33 of file BeamMomentumGunProducer.h.

Referenced by BeamMomentumGunProducer(), and produce().

◆ parPy_

std::vector<float> * edm::BeamMomentumGunProducer::parPy_
private

Definition at line 33 of file BeamMomentumGunProducer.h.

Referenced by BeamMomentumGunProducer(), and produce().

◆ parPz_

std::vector<float> * edm::BeamMomentumGunProducer::parPz_
private

Definition at line 33 of file BeamMomentumGunProducer.h.

Referenced by BeamMomentumGunProducer(), and produce().

◆ parX_

std::vector<float>* edm::BeamMomentumGunProducer::parX_
private

Definition at line 32 of file BeamMomentumGunProducer.h.

Referenced by BeamMomentumGunProducer(), and produce().

◆ parY_

std::vector<float> * edm::BeamMomentumGunProducer::parY_
private

Definition at line 32 of file BeamMomentumGunProducer.h.

Referenced by BeamMomentumGunProducer(), and produce().

◆ parZ_

std::vector<float> * edm::BeamMomentumGunProducer::parZ_
private

Definition at line 32 of file BeamMomentumGunProducer.h.

Referenced by BeamMomentumGunProducer().

◆ xoff_

double edm::BeamMomentumGunProducer::xoff_
private

Definition at line 24 of file BeamMomentumGunProducer.h.

Referenced by BeamMomentumGunProducer(), and produce().

◆ yoff_

double edm::BeamMomentumGunProducer::yoff_
private

Definition at line 24 of file BeamMomentumGunProducer.h.

Referenced by BeamMomentumGunProducer(), and produce().

◆ zpos_

double edm::BeamMomentumGunProducer::zpos_
private

Definition at line 24 of file BeamMomentumGunProducer.h.

Referenced by BeamMomentumGunProducer(), and produce().