CMS 3D CMS Logo

BeamProfileVtxGenerator.h
Go to the documentation of this file.
1 #ifndef IOMC_BeamProfileVtxGenerator_H
2 #define IOMC_BeamProfileVtxGenerator_H
3 
13 #include <vector>
14 
15 namespace CLHEP {
16  class HepRandomEngine;
17 }
18 
20 public:
22  ~BeamProfileVtxGenerator() override;
23 
25  //virtual CLHEP::Hep3Vector * newVertex();
26  HepMC::FourVector newVertex(CLHEP::HepRandomEngine*) const override;
27 
28  TMatrixD const* GetInvLorentzBoost() const override { return nullptr; }
29 
31  void sigmaX(double s = 1.0);
33  void sigmaY(double s = 1.0);
34 
36  void meanX(double m = 0) { fMeanX = m; }
38  void meanY(double m = 0) { fMeanY = m; }
40  void beamPos(double m = 0) { fMeanZ = m; }
41 
43  void eta(double m = 0);
45  void phi(double m = 0) { fPhi = m; }
47  void psi(double m = 999) { fPsi = m; }
49  void setType(bool m = true);
50 
51 private:
56 
57 private:
58  double fSigmaX, fSigmaY;
59  double fMeanX, fMeanY, fMeanZ;
60  double fEta, fPhi, fTheta;
61 
62  double fPsi;
63 
64  bool fType, ffile;
65  int nBinx, nBiny;
66  std::vector<double> fdistn;
67  double fTimeOffset;
68 };
69 
70 #endif
BeamProfileVtxGenerator::psi
void psi(double m=999)
set psi in radian
Definition: BeamProfileVtxGenerator.h:47
BeamProfileVtxGenerator::eta
void eta(double m=0)
set eta
Definition: BeamProfileVtxGenerator.cc:179
BeamProfileVtxGenerator::fType
bool fType
Definition: BeamProfileVtxGenerator.h:64
BeamProfileVtxGenerator::fTheta
double fTheta
Definition: BeamProfileVtxGenerator.h:60
BeamProfileVtxGenerator::fMeanZ
double fMeanZ
Definition: BeamProfileVtxGenerator.h:59
AlCaHLTBitMon_ParallelJobs.p
p
Definition: AlCaHLTBitMon_ParallelJobs.py:153
BeamProfileVtxGenerator::~BeamProfileVtxGenerator
~BeamProfileVtxGenerator() override
Definition: BeamProfileVtxGenerator.cc:77
BeamProfileVtxGenerator::fTimeOffset
double fTimeOffset
Definition: BeamProfileVtxGenerator.h:67
BeamProfileVtxGenerator::nBinx
int nBinx
Definition: BeamProfileVtxGenerator.h:65
BeamProfileVtxGenerator
Definition: BeamProfileVtxGenerator.h:19
BeamProfileVtxGenerator::beamPos
void beamPos(double m=0)
set mean in Z in cm
Definition: BeamProfileVtxGenerator.h:40
alignCSCRings.s
s
Definition: alignCSCRings.py:92
BeamProfileVtxGenerator::fdistn
std::vector< double > fdistn
Definition: BeamProfileVtxGenerator.h:66
BeamProfileVtxGenerator::operator=
BeamProfileVtxGenerator & operator=(const BeamProfileVtxGenerator &rhs)=delete
BeamProfileVtxGenerator::fMeanY
double fMeanY
Definition: BeamProfileVtxGenerator.h:59
BeamProfileVtxGenerator::nBiny
int nBiny
Definition: BeamProfileVtxGenerator.h:65
visualization-live-secondInstance_cfg.m
m
Definition: visualization-live-secondInstance_cfg.py:72
BeamProfileVtxGenerator::sigmaY
void sigmaY(double s=1.0)
set resolution in Y in cm
Definition: BeamProfileVtxGenerator.cc:169
BeamProfileVtxGenerator::phi
void phi(double m=0)
set phi in radian
Definition: BeamProfileVtxGenerator.h:45
CLHEP
Definition: CocoaGlobals.h:27
edm::ParameterSet
Definition: ParameterSet.h:47
BeamProfileVtxGenerator::meanY
void meanY(double m=0)
set mean in Y in cm
Definition: BeamProfileVtxGenerator.h:38
BaseEvtVtxGenerator.h
BeamProfileVtxGenerator::fEta
double fEta
Definition: BeamProfileVtxGenerator.h:60
BeamProfileVtxGenerator::setType
void setType(bool m=true)
set type
Definition: BeamProfileVtxGenerator.cc:184
BeamProfileVtxGenerator::GetInvLorentzBoost
TMatrixD const * GetInvLorentzBoost() const override
Definition: BeamProfileVtxGenerator.h:28
BeamProfileVtxGenerator::fSigmaY
double fSigmaY
Definition: BeamProfileVtxGenerator.h:58
BeamProfileVtxGenerator::fPhi
double fPhi
Definition: BeamProfileVtxGenerator.h:60
BeamProfileVtxGenerator::newVertex
HepMC::FourVector newVertex(CLHEP::HepRandomEngine *) const override
return a new event vertex
Definition: BeamProfileVtxGenerator.cc:80
BeamProfileVtxGenerator::fSigmaX
double fSigmaX
Definition: BeamProfileVtxGenerator.h:58
BeamProfileVtxGenerator::sigmaX
void sigmaX(double s=1.0)
set resolution in X in cm
Definition: BeamProfileVtxGenerator.cc:159
BeamProfileVtxGenerator::ffile
bool ffile
Definition: BeamProfileVtxGenerator.h:64
BeamProfileVtxGenerator::fPsi
double fPsi
Definition: BeamProfileVtxGenerator.h:62
BeamProfileVtxGenerator::BeamProfileVtxGenerator
BeamProfileVtxGenerator(const edm::ParameterSet &p)
Definition: BeamProfileVtxGenerator.cc:19
BaseEvtVtxGenerator
Definition: BaseEvtVtxGenerator.h:23
BeamProfileVtxGenerator::fMeanX
double fMeanX
Definition: BeamProfileVtxGenerator.h:59
BeamProfileVtxGenerator::meanX
void meanX(double m=0)
set mean in X in cm
Definition: BeamProfileVtxGenerator.h:36