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