CMS 3D CMS Logo

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

#include <CloseByParticleGunProducer.h>

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

Public Member Functions

 CloseByParticleGunProducer (const ParameterSet &)
 
 ~CloseByParticleGunProducer () override
 
- Public Member Functions inherited from edm::BaseFlatGunProducer
 BaseFlatGunProducer (const ParameterSet &)
 
void beginRun (const edm::Run &r, const edm::EventSetup &) override
 
void endRun (edm::Run const &r, const edm::EventSetup &) override
 
void endRunProduce (edm::Run &r, const edm::EventSetup &) override
 
 ~BaseFlatGunProducer () 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
 
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
 
EDConsumerBaseoperator= (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)
 

Static Public Member Functions

static void fillDescriptions (ConfigurationDescriptions &descriptions)
 
- 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 Attributes

bool fControlledByEta
 
double fDelta
 
double fEtaMax
 
double fEtaMin
 
bool fFlatPtGeneration = false
 
bool fMaxVarSpread = false
 
int fNParticles
 
double fOffsetFirst
 
bool fOverlapping = false
 
std::vector< int > fPartIDs
 
double fPhiMax
 
double fPhiMin
 
bool fPointing = false
 
bool fRandomShoot = false
 
double fRMax
 
double fRMin
 
double fTMax
 
double fTMin
 
bool fUseDeltaT = false
 
double fVarMax
 
double fVarMin
 
double fZMax
 
double fZMin
 
const edm::ESGetToken< MagneticField, IdealMagneticFieldRecordm_fieldToken
 
- Protected Attributes inherited from edm::BaseFlatGunProducer
bool fAddAntiParticle
 
HepMC::GenEventfEvt
 
double fMaxEta
 
double fMaxPhi
 
double fMinEta
 
double fMinPhi
 
std::vector< int > fPartIDs
 
ESHandle< HepPDT::ParticleDataTablefPDGTable
 
int fVerbosity
 

Private Member Functions

void produce (Event &e, const EventSetup &es) override
 

Additional Inherited Members

- Public Types inherited from edm::one::EDProducerBase
typedef EDProducerBase ModuleType
 
- Public Types inherited from edm::ProducerBase
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
 
- Public Types inherited from edm::EDConsumerBase
typedef ProductLabels Labels
 
- 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 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)
 

Detailed Description

Definition at line 16 of file CloseByParticleGunProducer.h.

Constructor & Destructor Documentation

◆ CloseByParticleGunProducer()

CloseByParticleGunProducer::CloseByParticleGunProducer ( const ParameterSet pset)

Definition at line 25 of file CloseByParticleGunProducer.cc.

References fControlledByEta, fDelta, fEtaMax, fEtaMin, fFlatPtGeneration, fMaxVarSpread, fNParticles, fOffsetFirst, fOverlapping, fPartIDs, fPhiMax, fPhiMin, fPointing, fRandomShoot, fRMax, fRMin, fTMax, fTMin, fUseDeltaT, fVarMax, fVarMin, fZMax, fZMin, edm::ParameterSet::getParameter(), and muonDTDigis_cfi::pset.

27  ParameterSet pgun_params = pset.getParameter<ParameterSet>("PGunParameters");
28  fControlledByEta = pgun_params.getParameter<bool>("ControlledByEta");
29  fVarMax = pgun_params.getParameter<double>("VarMax");
30  fVarMin = pgun_params.getParameter<double>("VarMin");
31  fMaxVarSpread = pgun_params.getParameter<bool>("MaxVarSpread");
32  fFlatPtGeneration = pgun_params.getParameter<bool>("FlatPtGeneration");
33  if (fVarMin < 1 && !fFlatPtGeneration)
34  LogError("CloseByParticleGunProducer") << " Please choose a minimum energy greater than 1 GeV, otherwise time "
35  "information may be invalid or not reliable";
36  if (fControlledByEta) {
37  fEtaMax = pgun_params.getParameter<double>("MaxEta");
38  fEtaMin = pgun_params.getParameter<double>("MinEta");
39  if (fEtaMax <= fEtaMin)
40  LogError("CloseByParticleGunProducer") << " Please fix MinEta and MaxEta values in the configuration";
41  } else {
42  fRMax = pgun_params.getParameter<double>("RMax");
43  fRMin = pgun_params.getParameter<double>("RMin");
44  if (fRMax <= fRMin)
45  LogError("CloseByParticleGunProducer") << " Please fix RMin and RMax values in the configuration";
46  }
47  fZMax = pgun_params.getParameter<double>("ZMax");
48  fZMin = pgun_params.getParameter<double>("ZMin");
49  fDelta = pgun_params.getParameter<double>("Delta");
50  fPhiMin = pgun_params.getParameter<double>("MinPhi");
51  fPhiMax = pgun_params.getParameter<double>("MaxPhi");
52  fPointing = pgun_params.getParameter<bool>("Pointing");
53  fOverlapping = pgun_params.getParameter<bool>("Overlapping");
55  LogError("CloseByParticleGunProducer")
56  << " Can't generate non pointing FlatPt samples; please disable FlatPt generation or generate pointing sample";
57  fRandomShoot = pgun_params.getParameter<bool>("RandomShoot");
58  fNParticles = pgun_params.getParameter<int>("NParticles");
59  fPartIDs = pgun_params.getParameter<vector<int>>("PartID");
60 
61  // set dt between particles
62  fUseDeltaT = pgun_params.getParameter<bool>("UseDeltaT");
63  fTMax = pgun_params.getParameter<double>("TMax");
64  fTMin = pgun_params.getParameter<double>("TMin");
65  if (fTMax <= fTMin)
66  LogError("CloseByParticleGunProducer") << " Please fix TMin and TMax values in the configuration";
67  // set a fixed time offset for the particles
68  fOffsetFirst = pgun_params.getParameter<double>("OffsetFirst");
69 
70  produces<HepMCProduct>("unsmeared");
71  produces<GenEventInfoProduct>();
72 }
T getParameter(std::string const &) const
Definition: ParameterSet.h:307
Log< level::Error, false > LogError
BaseFlatGunProducer(const ParameterSet &)
const edm::ESGetToken< MagneticField, IdealMagneticFieldRecord > m_fieldToken

◆ ~CloseByParticleGunProducer()

CloseByParticleGunProducer::~CloseByParticleGunProducer ( )
override

Definition at line 74 of file CloseByParticleGunProducer.cc.

74  {
75  // no need to cleanup GenEvent memory - done in HepMCProduct
76 }

Member Function Documentation

◆ fillDescriptions()

void CloseByParticleGunProducer::fillDescriptions ( ConfigurationDescriptions descriptions)
static

Definition at line 78 of file CloseByParticleGunProducer.cc.

References edm::ConfigurationDescriptions::add(), edm::ParameterSetDescription::add(), submitPVResolutionJobs::desc, and AlCaHLTBitMon_QueryRunRegistry::string.

78  {
80  desc.add<bool>("AddAntiParticle", false);
81  {
83  psd0.add<bool>("ControlledByEta", false);
84  psd0.add<double>("Delta", 10);
85  psd0.add<double>("VarMax", 200.0);
86  psd0.add<double>("VarMin", 25.0);
87  psd0.add<bool>("MaxVarSpread", false);
88  psd0.add<bool>("FlatPtGeneration", false);
89  psd0.add<double>("MaxEta", 2.7);
90  psd0.add<double>("MaxPhi", 3.14159265359);
91  psd0.add<double>("MinEta", 1.7);
92  psd0.add<double>("MinPhi", -3.14159265359);
93  psd0.add<int>("NParticles", 2);
94  psd0.add<bool>("Overlapping", false);
95  psd0.add<std::vector<int>>("PartID",
96  {
97  22,
98  });
99  psd0.add<bool>("Pointing", true);
100  psd0.add<double>("RMax", 120);
101  psd0.add<double>("RMin", 60);
102  psd0.add<bool>("RandomShoot", false);
103  psd0.add<double>("ZMax", 321);
104  psd0.add<double>("ZMin", 320);
105  psd0.add<bool>("UseDeltaT", false);
106  psd0.add<double>("TMin", 0.);
107  psd0.add<double>("TMax", 0.05);
108  psd0.add<double>("OffsetFirst", 0.);
109  desc.add<edm::ParameterSetDescription>("PGunParameters", psd0);
110  }
111  desc.addUntracked<int>("Verbosity", 0);
112  desc.addUntracked<unsigned int>("firstRun", 1);
113  desc.add<std::string>("psethack", "random particles in phi and r windows");
114  descriptions.add("CloseByParticleGunProducer", desc);
115 }
ParameterDescriptionBase * add(U const &iLabel, T const &value)
void add(std::string const &label, ParameterSetDescription const &psetDescription)

◆ produce()

void CloseByParticleGunProducer::produce ( Event e,
const EventSetup es 
)
overrideprivatevirtual

Implements edm::one::EDProducerBase.

Definition at line 117 of file CloseByParticleGunProducer.cc.

References funct::abs(), funct::cos(), MillePedeFileConverter_cfg::e, hcalRecHitTable_cff::energy, JetChargeProducer_cfi::exp, fControlledByEta, fDelta, l1ScoutingRun3::ugmt::fEta(), fEtaMax, fEtaMin, edm::BaseFlatGunProducer::fEvt, fFlatPtGeneration, fMaxVarSpread, fNParticles, fOffsetFirst, fOverlapping, fPartIDs, edm::BaseFlatGunProducer::fPDGTable, fPhiMax, fPhiMin, fPointing, hydjet2DefaultParameters_cff::fR, fRandomShoot, fRMax, fRMin, hydjet2DefaultParameters_cff::fT, fTMax, fTMin, fUseDeltaT, fVarMax, fVarMin, edm::BaseFlatGunProducer::fVerbosity, fZMax, fZMin, genParticles2HepMC_cfi::genEventInfo, GenParticle::GenParticle, edm::EventSetup::getData(), edm::RandomNumberGenerator::getEngine(), ZgammaFilter_cfi::HepMCProduct, LogDebug, m_fieldToken, EgHLTOffHistBins_cfi::mass, eostools::move(), AlCaHLTBitMon_ParallelJobs::p, LHEGenericFilter_cfi::ParticleID, genfragment_ptgun_cfg::PartID, partIdx(), funct::pow(), multPhiCorr_741_25nsDY_cfi::px, multPhiCorr_741_25nsDY_cfi::py, CosmicsPD_Skims::radius, funct::sin(), HLTSiStripMonitoring_cff::speed, mathSSE::sqrt(), theta(), simBeamSpotPI::timeOffset, and x.

117  {
119  CLHEP::HepRandomEngine* engine = &rng->getEngine(e.streamID());
120 
121  if (fVerbosity > 0) {
122  LogDebug("CloseByParticleGunProducer") << " CloseByParticleGunProducer : Begin New Event Generation" << endl;
123  }
124  fEvt = new HepMC::GenEvent();
125 
126  auto const& field = es.getData(m_fieldToken);
127 
128  int barcode = 1;
129  unsigned int numParticles = fRandomShoot ? CLHEP::RandFlat::shoot(engine, 1, fNParticles) : fNParticles;
130 
131  double phi = CLHEP::RandFlat::shoot(engine, fPhiMin, fPhiMax);
132  double fZ = CLHEP::RandFlat::shoot(engine, fZMin, fZMax);
133  double fR, fEta;
134  double fT;
135 
136  if (!fControlledByEta) {
137  fR = CLHEP::RandFlat::shoot(engine, fRMin, fRMax);
138  fEta = asinh(fZ / fR);
139  } else {
140  fEta = CLHEP::RandFlat::shoot(engine, fEtaMin, fEtaMax);
141  fR = (fZ / sinh(fEta));
142  }
143 
144  if (fUseDeltaT) {
145  fT = CLHEP::RandFlat::shoot(engine, fTMin, fTMax);
146  } else {
147  fT = 0.;
148  }
149 
150  double tmpPhi = phi;
151  double tmpR = fR;
152 
153  // Loop over particles
154  for (unsigned int ip = 0; ip < numParticles; ++ip) {
155  if (fOverlapping) {
156  fR = CLHEP::RandFlat::shoot(engine, tmpR - fDelta, tmpR + fDelta);
157  phi = CLHEP::RandFlat::shoot(engine, tmpPhi - fDelta / fR, tmpPhi + fDelta / fR);
158  } else
159  phi += fDelta / fR;
160 
161  double fVar;
162  if (numParticles > 1 && fMaxVarSpread)
163  fVar = fVarMin + ip * (fVarMax - fVarMin) / (numParticles - 1);
164  else
165  fVar = CLHEP::RandFlat::shoot(engine, fVarMin, fVarMax);
166 
167  int partIdx = CLHEP::RandFlat::shoot(engine, 0, fPartIDs.size());
168  int PartID = fPartIDs[partIdx];
169  const HepPDT::ParticleData* PData = fPDGTable->particle(HepPDT::ParticleID(abs(PartID)));
170  double mass = PData->mass().value();
171 
172  double mom, px, py, pz;
173  double energy;
174 
175  if (!fFlatPtGeneration) {
176  double mom2 = fVar * fVar - mass * mass;
177  mom = 0.;
178  if (mom2 > 0.) {
179  mom = sqrt(mom2);
180  }
181  px = 0.;
182  py = 0.;
183  pz = mom;
184  energy = fVar;
185  } else {
186  double theta = 2. * atan(exp(-fEta));
187  mom = fVar / sin(theta);
188  px = fVar * cos(phi);
189  py = fVar * sin(phi);
190  pz = mom * cos(theta);
191  double energy2 = mom * mom + mass * mass;
192  energy = sqrt(energy2);
193  }
194  // Compute Vertex Position
195  double x = fR * cos(phi);
196  double y = fR * sin(phi);
197 
198  HepMC::FourVector p(px, py, pz, energy);
199  // If we are requested to be pointing to (0,0,0), correct the momentum direction
200  if (fPointing) {
201  math::XYZVector direction(x, y, fZ);
202  math::XYZVector momentum = direction.unit() * mom;
203  p.setX(momentum.x());
204  p.setY(momentum.y());
205  p.setZ(momentum.z());
206  }
207 
208  // compute correct path assuming uniform magnetic field in CMS
209  double pathLength = 0.;
210  const double speed = p.pz() / p.e() * c_light / cm;
211  if (PData->charge()) {
212  // Radius [cm] = P[GeV/c] * 10^9 / (c[mm/ns] * 10^6 * q[C] * B[T]) * 100[cm/m]
213  const double radius = std::sqrt(p.px() * p.px() + p.py() * p.py()) * std::pow(10, 5) /
214  (c_light * field.inTesla({0.f, 0.f, 0.f}).z()); // cm
215  const double arc = 2 * asinf(std::sqrt(x * x + y * y) / (2 * radius)) * radius;
216  pathLength = std::sqrt(arc * arc + fZ * fZ);
217  } else {
218  pathLength = std::sqrt(x * x + y * y + fZ * fZ);
219  }
220 
221  // if not pointing time doesn't mean a lot, keep the old way
222  const double pathTime = fPointing ? (pathLength / speed) : (std::sqrt(x * x + y * y + fZ * fZ) / speed);
223  double timeOffset = fOffsetFirst + (pathTime + ip * fT) * ns * c_light;
224 
225  HepMC::GenVertex* Vtx = new HepMC::GenVertex(HepMC::FourVector(x * cm, y * cm, fZ * cm, timeOffset));
226 
228  Part->suggest_barcode(barcode);
229  barcode++;
230 
231  Vtx->add_particle_out(Part);
232 
233  if (fVerbosity > 0) {
234  Vtx->print();
235  Part->print();
236  }
237  fEvt->add_vertex(Vtx);
238  }
239 
240  fEvt->set_event_number(e.id().event());
241  fEvt->set_signal_process_id(20);
242 
243  if (fVerbosity > 0) {
244  fEvt->print();
245  }
246 
247  unique_ptr<HepMCProduct> BProduct(new HepMCProduct());
248  BProduct->addHepMCData(fEvt);
249  e.put(std::move(BProduct), "unsmeared");
250 
251  unique_ptr<GenEventInfoProduct> genEventInfo(new GenEventInfoProduct(fEvt));
252  e.put(std::move(genEventInfo));
253 
254  if (fVerbosity > 0) {
255  LogDebug("CloseByParticleGunProducer") << " CloseByParticleGunProducer : Event Generation Done " << endl;
256  }
257 }
static unsigned int partIdx(const InputGenJetsParticleSelector::ParticleVector &p, const reco::Candidate *particle)
T const & getData(const ESGetToken< T, R > &iToken) const noexcept(false)
Definition: EventSetup.h:119
Sin< T >::type sin(const T &t)
Definition: Sin.h:22
virtual CLHEP::HepRandomEngine & getEngine(StreamID const &)=0
Use this engine in event methods.
const edm::ESGetToken< MagneticField, IdealMagneticFieldRecord > m_fieldToken
ESHandle< HepPDT::ParticleDataTable > fPDGTable
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
XYZVectorD XYZVector
spatial vector with cartesian internal representation
Definition: Vector3D.h:31
Geom::Theta< T > theta() const
Power< A, B >::type pow(const A &a, const B &b)
Definition: Power.h:29
def move(src, dest)
Definition: eostools.py:511
float fEta(int hwEta)
Definition: conversion.h:17
#define LogDebug(id)

Member Data Documentation

◆ fControlledByEta

bool edm::CloseByParticleGunProducer::fControlledByEta
protected

Definition at line 28 of file CloseByParticleGunProducer.h.

Referenced by CloseByParticleGunProducer(), and produce().

◆ fDelta

double edm::CloseByParticleGunProducer::fDelta
protected

Definition at line 29 of file CloseByParticleGunProducer.h.

Referenced by CloseByParticleGunProducer(), and produce().

◆ fEtaMax

double edm::CloseByParticleGunProducer::fEtaMax
protected

Definition at line 29 of file CloseByParticleGunProducer.h.

Referenced by CloseByParticleGunProducer(), and produce().

◆ fEtaMin

double edm::CloseByParticleGunProducer::fEtaMin
protected

Definition at line 29 of file CloseByParticleGunProducer.h.

Referenced by CloseByParticleGunProducer(), and produce().

◆ fFlatPtGeneration

bool edm::CloseByParticleGunProducer::fFlatPtGeneration = false
protected

Definition at line 33 of file CloseByParticleGunProducer.h.

Referenced by CloseByParticleGunProducer(), and produce().

◆ fMaxVarSpread

bool edm::CloseByParticleGunProducer::fMaxVarSpread = false
protected

Definition at line 32 of file CloseByParticleGunProducer.h.

Referenced by CloseByParticleGunProducer(), and produce().

◆ fNParticles

int edm::CloseByParticleGunProducer::fNParticles
protected

Definition at line 31 of file CloseByParticleGunProducer.h.

Referenced by CloseByParticleGunProducer(), and produce().

◆ fOffsetFirst

double edm::CloseByParticleGunProducer::fOffsetFirst
protected

Definition at line 29 of file CloseByParticleGunProducer.h.

Referenced by CloseByParticleGunProducer(), and produce().

◆ fOverlapping

bool edm::CloseByParticleGunProducer::fOverlapping = false
protected

Definition at line 35 of file CloseByParticleGunProducer.h.

Referenced by CloseByParticleGunProducer(), and produce().

◆ fPartIDs

std::vector<int> edm::CloseByParticleGunProducer::fPartIDs
protected

Definition at line 38 of file CloseByParticleGunProducer.h.

Referenced by CloseByParticleGunProducer(), and produce().

◆ fPhiMax

double edm::CloseByParticleGunProducer::fPhiMax
protected

Definition at line 29 of file CloseByParticleGunProducer.h.

Referenced by CloseByParticleGunProducer(), and produce().

◆ fPhiMin

double edm::CloseByParticleGunProducer::fPhiMin
protected

Definition at line 29 of file CloseByParticleGunProducer.h.

Referenced by CloseByParticleGunProducer(), and produce().

◆ fPointing

bool edm::CloseByParticleGunProducer::fPointing = false
protected

Definition at line 34 of file CloseByParticleGunProducer.h.

Referenced by CloseByParticleGunProducer(), and produce().

◆ fRandomShoot

bool edm::CloseByParticleGunProducer::fRandomShoot = false
protected

Definition at line 36 of file CloseByParticleGunProducer.h.

Referenced by CloseByParticleGunProducer(), and produce().

◆ fRMax

double edm::CloseByParticleGunProducer::fRMax
protected

Definition at line 29 of file CloseByParticleGunProducer.h.

Referenced by CloseByParticleGunProducer(), and produce().

◆ fRMin

double edm::CloseByParticleGunProducer::fRMin
protected

Definition at line 29 of file CloseByParticleGunProducer.h.

Referenced by CloseByParticleGunProducer(), and produce().

◆ fTMax

double edm::CloseByParticleGunProducer::fTMax
protected

Definition at line 29 of file CloseByParticleGunProducer.h.

Referenced by CloseByParticleGunProducer(), and produce().

◆ fTMin

double edm::CloseByParticleGunProducer::fTMin
protected

Definition at line 29 of file CloseByParticleGunProducer.h.

Referenced by CloseByParticleGunProducer(), and produce().

◆ fUseDeltaT

bool edm::CloseByParticleGunProducer::fUseDeltaT = false
protected

Definition at line 37 of file CloseByParticleGunProducer.h.

Referenced by CloseByParticleGunProducer(), and produce().

◆ fVarMax

double edm::CloseByParticleGunProducer::fVarMax
protected

Definition at line 29 of file CloseByParticleGunProducer.h.

Referenced by CloseByParticleGunProducer(), and produce().

◆ fVarMin

double edm::CloseByParticleGunProducer::fVarMin
protected

Definition at line 29 of file CloseByParticleGunProducer.h.

Referenced by CloseByParticleGunProducer(), and produce().

◆ fZMax

double edm::CloseByParticleGunProducer::fZMax
protected

Definition at line 29 of file CloseByParticleGunProducer.h.

Referenced by CloseByParticleGunProducer(), and produce().

◆ fZMin

double edm::CloseByParticleGunProducer::fZMin
protected

Definition at line 29 of file CloseByParticleGunProducer.h.

Referenced by CloseByParticleGunProducer(), and produce().

◆ m_fieldToken

const edm::ESGetToken<MagneticField, IdealMagneticFieldRecord> edm::CloseByParticleGunProducer::m_fieldToken
protected

Definition at line 40 of file CloseByParticleGunProducer.h.

Referenced by produce().