CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
FlatEvtVtxGenerator.h
Go to the documentation of this file.
1 #ifndef IOMC_FlatEvtVtxGenerator_H
2 #define IOMC_FlatEvtVtxGenerator_H
3 
12 
13 namespace CLHEP {
14  class RandFlat;
15 }
16 
18 {
19 public:
21  virtual ~FlatEvtVtxGenerator();
22 
24  //virtual CLHEP::Hep3Vector* newVertex();
25  virtual HepMC::FourVector* newVertex() ;
26 
27  virtual TMatrixD* GetInvLorentzBoost() {
28  return 0;
29  }
30 
31 
33  void minX(double m=0.0);
35  void minY(double m=0.0);
37  void minZ(double m=0.0);
38 
40  void maxX(double m=0);
42  void maxY(double m=0);
44  void maxZ(double m=0);
45 
46 private:
51 private:
52  double fMinX, fMinY, fMinZ;
53  double fMaxX, fMaxY, fMaxZ;
54  CLHEP::RandFlat* fRandom ;
55  double fTimeOffset;
56 };
57 
58 #endif
FlatEvtVtxGenerator & operator=(const FlatEvtVtxGenerator &rhs)
virtual TMatrixD * GetInvLorentzBoost()
void minZ(double m=0.0)
set min in Z in cm
virtual HepMC::FourVector * newVertex()
return a new event vertex
CLHEP::RandFlat * fRandom
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