Main Page
Namespaces
Classes
Package Documentation
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Properties
Friends
Macros
Pages
src
CondFormats
BeamSpotObjects
interface
SimBeamSpotObjects.h
Go to the documentation of this file.
1
#ifndef SIMBEAMSPOTOBJECTS_H
2
#define SIMBEAMSPOTOBJECTS_H
3
10
#include <sstream>
11
#include "CLHEP/Units/GlobalSystemOfUnits.h"
12
#include "CLHEP/Units/GlobalPhysicalConstants.h"
13
14
#include "
FWCore/ParameterSet/interface/ParameterSet.h
"
15
16
class
SimBeamSpotObjects
{
17
public
:
18
SimBeamSpotObjects
(){};
19
virtual
~ SimBeamSpotObjects
(){};
20
21
double
fX0
,
fY0
,
fZ0
;
22
double
fSigmaZ
;
23
double
fbetastar
,
femittance
;
24
double
fPhi
,
fAlpha
;
25
double
fTimeOffset
;
26
27
void
print
(std::stringstream& ss)
const
;
28
29
void
read
(
edm::ParameterSet
&
p
){
30
fX0
= p.
getParameter
<
double
>(
"X0"
)*cm;
31
fY0
= p.
getParameter
<
double
>(
"Y0"
)*cm;
32
fZ0
= p.
getParameter
<
double
>(
"Z0"
)*cm;
33
fSigmaZ
= p.
getParameter
<
double
>(
"SigmaZ"
)*cm;
34
fAlpha
= p.
getParameter
<
double
>(
"Alpha"
)*radian;
35
fPhi
= p.
getParameter
<
double
>(
"Phi"
)*radian;
36
fbetastar
= p.
getParameter
<
double
>(
"BetaStar"
)*cm;
37
femittance
= p.
getParameter
<
double
>(
"Emittance"
)*cm;
// this is not the normalized emittance
38
fTimeOffset
= p.
getParameter
<
double
>(
"TimeOffset"
)*ns*c_light;
// HepMC time units are mm
39
}
40
};
41
42
std::ostream&
operator<<
( std::ostream&,
SimBeamSpotObjects
beam );
43
44
#endif
edm::ParameterSet::getParameter
T getParameter(std::string const &) const
SimBeamSpotObjects::~SimBeamSpotObjects
virtual ~SimBeamSpotObjects()
Definition:
SimBeamSpotObjects.h:19
SimBeamSpotObjects
Definition:
SimBeamSpotObjects.h:16
SimBeamSpotObjects::fZ0
double fZ0
Definition:
SimBeamSpotObjects.h:19
SimBeamSpotObjects::fX0
double fX0
Definition:
SimBeamSpotObjects.h:19
operator<<
std::ostream & operator<<(std::ostream &out, const ALILine &li)
Definition:
ALILine.cc:187
SimBeamSpotObjects::read
void read(edm::ParameterSet &p)
Definition:
SimBeamSpotObjects.h:29
ParameterSet.h
SimBeamSpotObjects::SimBeamSpotObjects
SimBeamSpotObjects()
Definition:
SimBeamSpotObjects.h:18
SimBeamSpotObjects::fbetastar
double fbetastar
Definition:
SimBeamSpotObjects.h:23
SimBeamSpotObjects::print
void print(std::stringstream &ss) const
Definition:
SimBeamSpotObjects.cc:5
SimBeamSpotObjects::fSigmaZ
double fSigmaZ
Definition:
SimBeamSpotObjects.h:22
AlCaHLTBitMon_ParallelJobs.p
tuple p
Definition:
AlCaHLTBitMon_ParallelJobs.py:152
SimBeamSpotObjects::fTimeOffset
double fTimeOffset
Definition:
SimBeamSpotObjects.h:25
SimBeamSpotObjects::femittance
double femittance
Definition:
SimBeamSpotObjects.h:23
edm::ParameterSet
Definition:
ParameterSet.h:35
SimBeamSpotObjects::fPhi
double fPhi
Definition:
SimBeamSpotObjects.h:24
SimBeamSpotObjects::fAlpha
double fAlpha
Definition:
SimBeamSpotObjects.h:24
SimBeamSpotObjects::fY0
double fY0
Definition:
SimBeamSpotObjects.h:19
Generated for CMSSW Reference Manual by
1.8.5