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
 
SerialTaskQueueglobalLuminosityBlocksQueue () final
 
SerialTaskQueueglobalRunsQueue () 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
 
- 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 &&)=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
 
EDConsumerBaseoperator= (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)
 

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<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 ()
 
- Protected Member Functions inherited from edm::EDConsumerBase
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)
 
- 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.

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  }

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

◆ ~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.

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  }

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

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
staticconstexprprivate

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
staticconstexprprivate

Definition at line 41 of file BeamMomentumGunProducer.h.

Referenced by produce().

◆ mm2cm_

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

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().

GenEventInfoProduct
Definition: GenEventInfoProduct.h:17
edm::RandomNumberGenerator::getEngine
virtual CLHEP::HepRandomEngine & getEngine(StreamID const &)=0
Use this engine in event methods.
edm::BeamMomentumGunProducer::b_parZ_
TBranch * b_parZ_
Definition: BeamMomentumGunProducer.h:37
multPhiCorr_741_25nsDY_cfi.py
py
Definition: multPhiCorr_741_25nsDY_cfi.py:12
edm::BeamMomentumGunProducer::MeV2GeV_
static constexpr double MeV2GeV_
Definition: BeamMomentumGunProducer.h:41
AlCaHLTBitMon_ParallelJobs.p
p
Definition: AlCaHLTBitMon_ParallelJobs.py:153
ZgammaFilter_cfi.HepMCProduct
HepMCProduct
Definition: ZgammaFilter_cfi.py:9
personalPlayback.fp
fp
Definition: personalPlayback.py:523
edm::BeamMomentumGunProducer::parPx_
std::vector< float > * parPx_
Definition: BeamMomentumGunProducer.h:33
edm::FlatBaseThetaGunProducer::fEvt
HepMC::GenEvent * fEvt
Definition: FlatBaseThetaGunProducer.h:43
npart
double npart
Definition: HydjetWrapper.h:46
edm::BeamMomentumGunProducer::parPDGId_
std::vector< int > * parPDGId_
Definition: BeamMomentumGunProducer.h:31
HepMC::GenEvent
Definition: hepmc_rootio.cc:9
ParticleData
HepPDT::ParticleData ParticleData
Definition: ParticleDataTable.h:9
edm::BeamMomentumGunProducer::nentries_
long int nentries_
Definition: BeamMomentumGunProducer.h:27
edm::BeamMomentumGunProducer::cm2mm_
static constexpr double cm2mm_
Definition: BeamMomentumGunProducer.h:40
funct::sin
Sin< T >::type sin(const T &t)
Definition: Sin.h:22
edm::FileInPath
Definition: FileInPath.h:64
edm::FlatBaseThetaGunProducer::fMinPhi
double fMinPhi
Definition: FlatBaseThetaGunProducer.h:39
part
part
Definition: HCALResponse.h:20
edm::BeamMomentumGunProducer::fTree_
TTree * fTree_
Definition: BeamMomentumGunProducer.h:26
funct::cos
Cos< T >::type cos(const T &t)
Definition: Cos.h:22
edm::BeamMomentumGunProducer::parPy_
std::vector< float > * parPy_
Definition: BeamMomentumGunProducer.h:33
edm::FlatBaseThetaGunProducer::FlatBaseThetaGunProducer
FlatBaseThetaGunProducer(const ParameterSet &)
Definition: FlatBaseThetaGunProducer.cc:19
mathSSE::sqrt
T sqrt(T t)
Definition: SSEVec.h:19
theta
Geom::Theta< T > theta() const
Definition: Basic3DVectorLD.h:150
HCALHighEnergyHPDFilter_cfi.energy
energy
Definition: HCALHighEnergyHPDFilter_cfi.py:5
AlCaHLTBitMon_QueryRunRegistry.string
string
Definition: AlCaHLTBitMon_QueryRunRegistry.py:256
edm::FlatBaseThetaGunProducer::fMaxTheta
double fMaxTheta
Definition: FlatBaseThetaGunProducer.h:38
edm::FlatBaseThetaGunProducer::fMaxPhi
double fMaxPhi
Definition: FlatBaseThetaGunProducer.h:40
edm::BeamMomentumGunProducer::parX_
std::vector< float > * parX_
Definition: BeamMomentumGunProducer.h:32
edm::ParameterSet
Definition: ParameterSet.h:36
edm::BeamMomentumGunProducer::xoff_
double xoff_
Definition: BeamMomentumGunProducer.h:24
edm::BeamMomentumGunProducer::b_parX_
TBranch * b_parX_
Definition: BeamMomentumGunProducer.h:37
edm::BeamMomentumGunProducer::parPz_
std::vector< float > * parPz_
Definition: BeamMomentumGunProducer.h:33
edm::Service< edm::RandomNumberGenerator >
edm::LogVerbatim
Definition: MessageLogger.h:297
edm::FlatBaseThetaGunProducer::fMinTheta
double fMinTheta
Definition: FlatBaseThetaGunProducer.h:37
edm::BeamMomentumGunProducer::b_parPz_
TBranch * b_parPz_
Definition: BeamMomentumGunProducer.h:38
edm::BeamMomentumGunProducer::b_parPx_
TBranch * b_parPx_
Definition: BeamMomentumGunProducer.h:38
edm::BeamMomentumGunProducer::b_eventId_
TBranch * b_eventId_
Definition: BeamMomentumGunProducer.h:36
edm::FlatBaseThetaGunProducer::fPDGTable
ESHandle< HepPDT::ParticleDataTable > fPDGTable
Definition: FlatBaseThetaGunProducer.h:47
edm::BeamMomentumGunProducer::zpos_
double zpos_
Definition: BeamMomentumGunProducer.h:24
DDAxes::phi
edm::ParameterSet::getParameter
T getParameter(std::string const &) const
multPhiCorr_741_25nsDY_cfi.px
px
Definition: multPhiCorr_741_25nsDY_cfi.py:10
GenParticle.GenParticle
GenParticle
Definition: GenParticle.py:18
eostools.move
def move(src, dest)
Definition: eostools.py:511
genParticles2HepMC_cfi.genEventInfo
genEventInfo
Definition: genParticles2HepMC_cfi.py:6
Exception
Definition: hltDiff.cc:246
edm::BeamMomentumGunProducer::npar_
int npar_
Definition: BeamMomentumGunProducer.h:30
EgHLTOffHistBins_cfi.mass
mass
Definition: EgHLTOffHistBins_cfi.py:34
edm::BeamMomentumGunProducer::fFile_
TFile * fFile_
Definition: BeamMomentumGunProducer.h:25
edm::BeamMomentumGunProducer::yoff_
double yoff_
Definition: BeamMomentumGunProducer.h:24
edm::BeamMomentumGunProducer::b_parPy_
TBranch * b_parPy_
Definition: BeamMomentumGunProducer.h:38
edm::BeamMomentumGunProducer::parZ_
std::vector< float > * parZ_
Definition: BeamMomentumGunProducer.h:32
edm::BeamMomentumGunProducer::b_parPDGId_
TBranch * b_parPDGId_
Definition: BeamMomentumGunProducer.h:36
edm::BeamMomentumGunProducer::eventId_
int eventId_
Definition: BeamMomentumGunProducer.h:30
funct::abs
Abs< T >::type abs(const T &t)
Definition: Abs.h:22
edm::FlatBaseThetaGunProducer::fVerbosity
int fVerbosity
Definition: FlatBaseThetaGunProducer.h:49
edm::BeamMomentumGunProducer::b_parY_
TBranch * b_parY_
Definition: BeamMomentumGunProducer.h:37
event
Definition: event.py:1
EgammaValidation_cff.pdgid
pdgid
Definition: EgammaValidation_cff.py:30
LHEGenericFilter_cfi.ParticleID
ParticleID
Definition: LHEGenericFilter_cfi.py:6
edm::BeamMomentumGunProducer::parY_
std::vector< float > * parY_
Definition: BeamMomentumGunProducer.h:32
validateGeometry_cfg.infileName
infileName
Definition: validateGeometry_cfg.py:22
muonDTDigis_cfi.pset
pset
Definition: muonDTDigis_cfi.py:27
edm::BeamMomentumGunProducer::b_npar_
TBranch * b_npar_
Definition: BeamMomentumGunProducer.h:36
edm::FlatBaseThetaGunProducer::fAddAntiParticle
bool fAddAntiParticle
Definition: FlatBaseThetaGunProducer.h:51
MillePedeFileConverter_cfg.e
e
Definition: MillePedeFileConverter_cfg.py:37