CMS 3D CMS Logo

FlatEvtVtxGenerator.h
Go to the documentation of this file.
1 #ifndef IOMC_FlatEvtVtxGenerator_H
2 #define IOMC_FlatEvtVtxGenerator_H
3 
17 
18 namespace CLHEP {
19  class HepRandomEngine;
20 }
21 
23 public:
26  FlatEvtVtxGenerator(const FlatEvtVtxGenerator& p) = delete;
29  ~FlatEvtVtxGenerator() override;
30 
32  //virtual CLHEP::Hep3Vector* newVertex();
33  HepMC::FourVector newVertex(CLHEP::HepRandomEngine*) const override;
34 
35  const TMatrixD* GetInvLorentzBoost() const override { return nullptr; }
36 
38  void minX(double m = 0.0);
40  void minY(double m = 0.0);
42  void minZ(double m = 0.0);
43 
45  void maxX(double m = 0);
47  void maxY(double m = 0);
49  void maxZ(double m = 0);
50 
51 private:
52  double fMinX, fMinY, fMinZ, fMinT;
53  double fMaxX, fMaxY, fMaxZ, fMaxT;
54 };
55 
56 #endif
const TMatrixD * GetInvLorentzBoost() const override
void minZ(double m=0.0)
set min in Z in cm
HepMC::FourVector newVertex(CLHEP::HepRandomEngine *) const override
return a new event vertex
void maxZ(double m=0)
set max in Z in cm
FlatEvtVtxGenerator(const edm::ParameterSet &p)
void minX(double m=0.0)
set min in X in cm
void minY(double m=0.0)
set min in Y in cm
void maxX(double m=0)
set max in X in cm
void maxY(double m=0)
set max in Y in cm
FlatEvtVtxGenerator & operator=(const FlatEvtVtxGenerator &rhs)=delete