CMS 3D CMS Logo

RandomtXiGunProducer.h
Go to the documentation of this file.
1 #ifndef RandomtXiGunProducer_H
2 #define RandomtXiGunProducer_H
3 
6 
7 namespace edm {
8 
10  public:
12  ~RandomtXiGunProducer() override;
13 
14  private:
15  void produce(Event& e, const EventSetup& es) override;
16 
17  HepMC::FourVector make_particle(double t, double Xi, double phi, int PartID, int direction);
18  double Minimum_t(double xi) {
19  double partE = fpEnergy * (1. - xi);
20  double massSQ = pow(PData->mass().value(), 2);
21  double partP = sqrt(partE * partE - massSQ);
22  return -2. * (sqrt(fpEnergy * fpEnergy - massSQ) * partP - fpEnergy * partE + massSQ);
23  };
24 
25  protected:
26  // data members
27 
28  double fMint;
29  double fMaxt;
30  double fMinXi;
31  double fMaxXi;
32  };
33 } // namespace edm
34 #endif
edm::RandomtXiGunProducer::fMaxt
double fMaxt
Definition: RandomtXiGunProducer.h:29
edm::BaseRandomtXiGunProducer::PData
const HepPDT::ParticleData * PData
Definition: BaseRandomtXiGunProducer.h:54
edm
HLT enums.
Definition: AlignableModifier.h:19
hybridSuperClusters_cfi.xi
xi
Definition: hybridSuperClusters_cfi.py:10
edm::RandomtXiGunProducer::produce
void produce(Event &e, const EventSetup &es) override
Definition: RandomtXiGunProducer.cc:43
edm::RandomtXiGunProducer::fMint
double fMint
Definition: RandomtXiGunProducer.h:23
edm::RandomtXiGunProducer
Definition: RandomtXiGunProducer.h:9
edm::RandomtXiGunProducer::make_particle
HepMC::FourVector make_particle(double t, double Xi, double phi, int PartID, int direction)
Definition: RandomtXiGunProducer.cc:141
edm::RandomtXiGunProducer::RandomtXiGunProducer
RandomtXiGunProducer(const ParameterSet &)
Definition: RandomtXiGunProducer.cc:25
mathSSE::sqrt
T sqrt(T t)
Definition: SSEVec.h:19
OrderedSet.t
t
Definition: OrderedSet.py:90
edm::RandomtXiGunProducer::fMinXi
double fMinXi
Definition: RandomtXiGunProducer.h:30
edm::BaseRandomtXiGunProducer::fpEnergy
double fpEnergy
Definition: BaseRandomtXiGunProducer.h:44
edm::RandomtXiGunProducer::fMaxXi
double fMaxXi
Definition: RandomtXiGunProducer.h:31
edm::ParameterSet
Definition: ParameterSet.h:36
edm::EventSetup
Definition: EventSetup.h:57
genfragment_ptgun_cfg.PartID
PartID
Definition: genfragment_ptgun_cfg.py:6
edm::RandomtXiGunProducer::~RandomtXiGunProducer
~RandomtXiGunProducer() override
Definition: RandomtXiGunProducer.cc:39
funct::pow
Power< A, B >::type pow(const A &a, const B &b)
Definition: Power.h:30
edm::BaseRandomtXiGunProducer
Definition: BaseRandomtXiGunProducer.h:26
HepMCProduct.h
edm::Event
Definition: Event.h:73
edm::RandomtXiGunProducer::Minimum_t
double Minimum_t(double xi)
Definition: RandomtXiGunProducer.h:18
BaseRandomtXiGunProducer.h
MillePedeFileConverter_cfg.e
e
Definition: MillePedeFileConverter_cfg.py:37