CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
GaussEvtVtxGenerator.h
Go to the documentation of this file.
1 #ifndef IOMC_GaussEvtVtxGenerator_H
2 #define IOMC_GaussEvtVtxGenerator_H
3 
11 
12 namespace CLHEP {
13  class HepRandomEngine;
14 }
15 
17 {
18 public:
20  virtual ~GaussEvtVtxGenerator();
21 
23  //virtual CLHEP::Hep3Vector* newVertex();
24  virtual HepMC::FourVector* newVertex(CLHEP::HepRandomEngine*) ;
25 
26  virtual TMatrixD* GetInvLorentzBoost() {
27  return 0;
28  }
29 
30 
32  void sigmaX(double s=1.0);
34  void sigmaY(double s=1.0);
36  void sigmaZ(double s=1.0);
37 
39  void meanX(double m=0) { fMeanX=m; }
41  void meanY(double m=0) { fMeanY=m; }
43  void meanZ(double m=0) { fMeanZ=m; }
44 
45 private:
50 private:
52  double fMeanX, fMeanY, fMeanZ;
53  double fTimeOffset;
54 };
55 
56 #endif
void sigmaY(double s=1.0)
set resolution in Y in cm
virtual TMatrixD * GetInvLorentzBoost()
void meanZ(double m=0)
set mean in Z in cm
void meanX(double m=0)
set mean in X in cm
void sigmaX(double s=1.0)
set resolution in X in cm
GaussEvtVtxGenerator & operator=(const GaussEvtVtxGenerator &rhs)
virtual HepMC::FourVector * newVertex(CLHEP::HepRandomEngine *)
return a new event vertex
GaussEvtVtxGenerator(const edm::ParameterSet &p)
void meanY(double m=0)
set mean in Y in cm
void sigmaZ(double s=1.0)
set resolution in Z in cm