CMS 3D CMS Logo

List of all members | Public Types | Public Member Functions | Private Member Functions | Private Attributes | Friends
BeamSpotOnlineObjects Class Reference

#include <BeamSpotOnlineObjects.h>

Inheritance diagram for BeamSpotOnlineObjects:
BeamSpotObjects

Public Types

enum  IntParamIndex { NUM_TRACKS = 0, NUM_PVS = 1, ISIZE = 2 }
 Enums. More...
 
enum  TimeParamIndex { CREATE_TIME = 0, TSIZE = 1 }
 

Public Member Functions

 BeamSpotOnlineObjects ()
 default constructor More...
 
cond::Time_t GetCreationTime () const
 
int GetLastAnalyzedFill () const
 
int GetLastAnalyzedLumi () const
 Getters Methods. More...
 
int GetLastAnalyzedRun () const
 
int GetNumPVs () const
 
int GetNumTracks () const
 
void print (std::stringstream &ss) const
 Print BeamSpotOnline parameters. More...
 
void SetCreationTime (cond::Time_t val)
 
void SetLastAnalyzedFill (int val)
 
void SetLastAnalyzedLumi (int val)
 Setters Methods. More...
 
void SetLastAnalyzedRun (int val)
 
void SetNumPVs (int val)
 
void SetNumTracks (int val)
 
 ~BeamSpotOnlineObjects () override
 
- Public Member Functions inherited from BeamSpotObjects
 BeamSpotObjects ()
 default constructor More...
 
int GetBeamType () const
 get beam type More...
 
double GetBeamWidthX () const
 get average transverse beam width More...
 
double GetBeamWidthXError () const
 get average transverse beam width error ASSUME the same for X and Y More...
 
double GetBeamWidthY () const
 get average transverse beam width More...
 
double GetBeamWidthYError () const
 get average transverse beam width error X = Y More...
 
double GetBetaStar () const
 get beta star More...
 
double GetCovariance (int i, int j) const
 get i,j element of the full covariance matrix 7x7 More...
 
double Getdxdz () const
 get dxdz slope, crossing angle in XZ More...
 
double GetdxdzError () const
 get dxdz slope, crossing angle in XZ Error More...
 
double Getdydz () const
 get dydz slope, crossing angle in YZ More...
 
double GetdydzError () const
 get dydz slope, crossing angle in YZ Error More...
 
double GetEmittanceX () const
 get emittance More...
 
double GetEmittanceY () const
 get emittance More...
 
double GetSigmaZ () const
 get sigma Z, RMS bunch length More...
 
double GetSigmaZError () const
 get sigma Z, RMS bunch length Error More...
 
double GetX () const
 get X beam position More...
 
double GetXError () const
 get X beam position Error More...
 
double GetY () const
 get Y beam position More...
 
double GetYError () const
 get Y beam position Error More...
 
double GetZ () const
 get Z beam position More...
 
double GetZError () const
 get Z beam position Error More...
 
void print (std::stringstream &ss) const
 print beam spot parameters More...
 
void SetBeamWidthX (double val)
 set average transverse beam width X More...
 
void SetBeamWidthXError (double val)
 set beam width X error More...
 
void SetBeamWidthY (double val)
 set average transverse beam width Y More...
 
void SetBeamWidthYError (double val)
 set beam width Y error More...
 
void SetBetaStar (double val)
 set beta star More...
 
void SetCovariance (int i, int j, double val)
 set i,j element of the full covariance matrix 7x7 More...
 
void Setdxdz (double val)
 set dxdz slope, crossing angle More...
 
void Setdydz (double val)
 set dydz slope, crossing angle in XZ More...
 
void SetEmittanceX (double val)
 set emittance More...
 
void SetEmittanceY (double val)
 set emittance More...
 
void SetPosition (double x, double y, double z)
 set XYZ position More...
 
void SetSigmaZ (double val)
 set sigma Z, RMS bunch length More...
 
void SetType (int type)
 set beam type More...
 
virtual ~BeamSpotObjects ()
 

Private Member Functions

template<class Archive >
void serialize (Archive &ar, const unsigned int version)
 

Private Attributes

std::vector< std::vector< float > > floatParams_
 
std::vector< std::vector< int > > intParams_
 
int lastAnalyzedFill_
 
int lastAnalyzedLumi_
 
int lastAnalyzedRun_
 
std::vector< std::vector< std::string > > stringParams_
 
std::vector< std::vector< unsigned long long > > timeParams_
 

Friends

class boost::serialization::access
 
template<typename CondSerializationT , typename Enabled >
struct cond::serialization::access
 

Additional Inherited Members

- Protected Attributes inherited from BeamSpotObjects
double beamwidthX_
 
double beamwidthXError_
 
double beamwidthY_
 
double beamwidthYError_
 
double betaStar_
 
double covariance_ [7][7]
 
double dxdz_
 
double dydz_
 
double emittanceX_
 
double emittanceY_
 
double position_ [3]
 
double sigmaZ_
 
int type_
 

Detailed Description

Class inheriting from BeamSpotObjects. New members of the class:

Author
Francisco Brivio, Milano-Bicocca (franc.nosp@m.esco.nosp@m..briv.nosp@m.io@c.nosp@m.ern.c.nosp@m.h)

Definition at line 25 of file BeamSpotOnlineObjects.h.

Member Enumeration Documentation

◆ IntParamIndex

Enums.

Enumerator
NUM_TRACKS 
NUM_PVS 
ISIZE 

Definition at line 39 of file BeamSpotOnlineObjects.h.

39 { NUM_TRACKS = 0, NUM_PVS = 1, ISIZE = 2 };

◆ TimeParamIndex

Enumerator
CREATE_TIME 
TSIZE 

Definition at line 40 of file BeamSpotOnlineObjects.h.

40 { CREATE_TIME = 0, TSIZE = 1 };

Constructor & Destructor Documentation

◆ BeamSpotOnlineObjects()

BeamSpotOnlineObjects::BeamSpotOnlineObjects ( )
inline

default constructor

Definition at line 28 of file BeamSpotOnlineObjects.h.

28  {
30  lastAnalyzedRun_ = 0;
32  intParams_.resize(ISIZE, std::vector<int>(1, 0));
33  timeParams_.resize(TSIZE, std::vector<unsigned long long>(1, 0ULL));
34  }

References intParams_, ISIZE, lastAnalyzedFill_, lastAnalyzedLumi_, lastAnalyzedRun_, timeParams_, and TSIZE.

◆ ~BeamSpotOnlineObjects()

BeamSpotOnlineObjects::~BeamSpotOnlineObjects ( )
inlineoverride

Definition at line 36 of file BeamSpotOnlineObjects.h.

36 {}

Member Function Documentation

◆ GetCreationTime()

cond::Time_t BeamSpotOnlineObjects::GetCreationTime ( ) const

◆ GetLastAnalyzedFill()

int BeamSpotOnlineObjects::GetLastAnalyzedFill ( ) const
inline

◆ GetLastAnalyzedLumi()

int BeamSpotOnlineObjects::GetLastAnalyzedLumi ( ) const
inline

Getters Methods.

Definition at line 63 of file BeamSpotOnlineObjects.h.

63 { return lastAnalyzedLumi_; }

References lastAnalyzedLumi_.

Referenced by BeamSpotOnlineHLTRcdReader::analyze(), BeamSpotOnlineLegacyRcdReader::analyze(), and print().

◆ GetLastAnalyzedRun()

int BeamSpotOnlineObjects::GetLastAnalyzedRun ( ) const
inline

◆ GetNumPVs()

int BeamSpotOnlineObjects::GetNumPVs ( ) const

◆ GetNumTracks()

int BeamSpotOnlineObjects::GetNumTracks ( ) const

◆ print()

void BeamSpotOnlineObjects::print ( std::stringstream &  ss) const

Print BeamSpotOnline parameters.

Definition at line 70 of file BeamSpotOnlineObjects.cc.

70  {
71  ss << "-----------------------------------------------------\n"
72  << " BeamSpotOnline Data\n\n"
73  << " Beam type = " << GetBeamType() << "\n"
74  << " X0 = " << GetX() << " +/- " << GetXError() << " [cm]\n"
75  << " Y0 = " << GetY() << " +/- " << GetYError() << " [cm]\n"
76  << " Z0 = " << GetZ() << " +/- " << GetZError() << " [cm]\n"
77  << " Sigma Z0 = " << GetSigmaZ() << " +/- " << GetSigmaZError() << " [cm]\n"
78  << " dxdz = " << Getdxdz() << " +/- " << GetdxdzError() << " [radians]\n"
79  << " dydz = " << Getdydz() << " +/- " << GetdydzError() << " [radians]\n"
80  << " Beam Width X = " << GetBeamWidthX() << " +/- " << GetBeamWidthXError() << " [cm]\n"
81  << " Beam Width Y = " << GetBeamWidthY() << " +/- " << GetBeamWidthYError() << " [cm]\n"
82  << " Emittance X = " << GetEmittanceX() << " [cm]\n"
83  << " Emittance Y = " << GetEmittanceY() << " [cm]\n"
84  << " Beta star = " << GetBetaStar() << " [cm]\n"
85  << " Last Lumi = " << GetLastAnalyzedLumi() << "\n"
86  << " Last Run = " << GetLastAnalyzedRun() << "\n"
87  << " Last Fill = " << GetLastAnalyzedFill() << "\n"
88  << "-----------------------------------------------------\n\n";
89 }

References BeamSpotObjects::GetBeamType(), BeamSpotObjects::GetBeamWidthX(), BeamSpotObjects::GetBeamWidthXError(), BeamSpotObjects::GetBeamWidthY(), BeamSpotObjects::GetBeamWidthYError(), BeamSpotObjects::GetBetaStar(), BeamSpotObjects::Getdxdz(), BeamSpotObjects::GetdxdzError(), BeamSpotObjects::Getdydz(), BeamSpotObjects::GetdydzError(), BeamSpotObjects::GetEmittanceX(), BeamSpotObjects::GetEmittanceY(), GetLastAnalyzedFill(), GetLastAnalyzedLumi(), GetLastAnalyzedRun(), BeamSpotObjects::GetSigmaZ(), BeamSpotObjects::GetSigmaZError(), BeamSpotObjects::GetX(), BeamSpotObjects::GetXError(), BeamSpotObjects::GetY(), BeamSpotObjects::GetYError(), BeamSpotObjects::GetZ(), BeamSpotObjects::GetZError(), and contentValuesCheck::ss.

◆ serialize()

template<class Archive >
void BeamSpotOnlineObjects::serialize ( Archive &  ar,
const unsigned int  version 
)
private

◆ SetCreationTime()

void BeamSpotOnlineObjects::SetCreationTime ( cond::Time_t  val)

◆ SetLastAnalyzedFill()

void BeamSpotOnlineObjects::SetLastAnalyzedFill ( int  val)
inline

◆ SetLastAnalyzedLumi()

void BeamSpotOnlineObjects::SetLastAnalyzedLumi ( int  val)
inline

◆ SetLastAnalyzedRun()

void BeamSpotOnlineObjects::SetLastAnalyzedRun ( int  val)
inline

◆ SetNumPVs()

void BeamSpotOnlineObjects::SetNumPVs ( int  val)

◆ SetNumTracks()

void BeamSpotOnlineObjects::SetNumTracks ( int  val)

Friends And Related Function Documentation

◆ boost::serialization::access

friend class boost::serialization::access
friend

Definition at line 92 of file BeamSpotOnlineObjects.h.

◆ cond::serialization::access

template<typename CondSerializationT , typename Enabled >
friend struct cond::serialization::access
friend

Definition at line 92 of file BeamSpotOnlineObjects.h.

Member Data Documentation

◆ floatParams_

std::vector<std::vector<float> > BeamSpotOnlineObjects::floatParams_
private

Definition at line 88 of file BeamSpotOnlineObjects.h.

◆ intParams_

std::vector<std::vector<int> > BeamSpotOnlineObjects::intParams_
private

◆ lastAnalyzedFill_

int BeamSpotOnlineObjects::lastAnalyzedFill_
private

◆ lastAnalyzedLumi_

int BeamSpotOnlineObjects::lastAnalyzedLumi_
private

◆ lastAnalyzedRun_

int BeamSpotOnlineObjects::lastAnalyzedRun_
private

◆ stringParams_

std::vector<std::vector<std::string> > BeamSpotOnlineObjects::stringParams_
private

Definition at line 89 of file BeamSpotOnlineObjects.h.

◆ timeParams_

std::vector<std::vector<unsigned long long> > BeamSpotOnlineObjects::timeParams_
private

Definition at line 90 of file BeamSpotOnlineObjects.h.

Referenced by BeamSpotOnlineObjects(), GetCreationTime(), and SetCreationTime().

BeamSpotOnlineObjects::intParams_
std::vector< std::vector< int > > intParams_
Definition: BeamSpotOnlineObjects.h:87
BeamSpotOnlineObjects::lastAnalyzedFill_
int lastAnalyzedFill_
Definition: BeamSpotOnlineObjects.h:86
BeamSpotObjects::GetBeamWidthY
double GetBeamWidthY() const
get average transverse beam width
Definition: BeamSpotObjects.h:77
BeamSpotPI::nPVs
Definition: BeamSpotPayloadInspectorHelper.h:43
BeamSpotObjects::Getdxdz
double Getdxdz() const
get dxdz slope, crossing angle in XZ
Definition: BeamSpotObjects.h:79
BeamSpotOnlineObjectsImpl::setOneParam
void setOneParam(std::vector< std::vector< T > > &params, size_t index, const T &value)
Definition: BeamSpotOnlineObjects.cc:32
BeamSpotOnlineObjects::NUM_TRACKS
Definition: BeamSpotOnlineObjects.h:39
BeamSpotObjects::GetSigmaZError
double GetSigmaZError() const
get sigma Z, RMS bunch length Error
Definition: BeamSpotObjects.h:91
BeamSpotObjects::GetSigmaZ
double GetSigmaZ() const
get sigma Z, RMS bunch length
Definition: BeamSpotObjects.h:73
BeamSpotObjects::GetBeamType
int GetBeamType() const
get beam type
Definition: BeamSpotObjects.h:101
BeamSpotObjects::GetZ
double GetZ() const
get Z beam position
Definition: BeamSpotObjects.h:71
BeamSpotOnlineObjects::CREATE_TIME
Definition: BeamSpotOnlineObjects.h:40
BeamSpotPI::nTracks
Definition: BeamSpotPayloadInspectorHelper.h:42
BeamSpotOnlineObjects::lastAnalyzedRun_
int lastAnalyzedRun_
Definition: BeamSpotOnlineObjects.h:85
contentValuesCheck.ss
ss
Definition: contentValuesCheck.py:33
BeamSpotOnlineObjects::TSIZE
Definition: BeamSpotOnlineObjects.h:40
BeamSpotOnlineObjects::GetLastAnalyzedLumi
int GetLastAnalyzedLumi() const
Getters Methods.
Definition: BeamSpotOnlineObjects.h:63
BeamSpotOnlineObjects::timeParams_
std::vector< std::vector< unsigned long long > > timeParams_
Definition: BeamSpotOnlineObjects.h:90
BeamSpotOnlineObjects::lastAnalyzedLumi_
int lastAnalyzedLumi_
Definition: BeamSpotOnlineObjects.h:84
BeamSpotObjects::GetBetaStar
double GetBetaStar() const
get beta star
Definition: BeamSpotObjects.h:107
BeamSpotObjects::GetEmittanceX
double GetEmittanceX() const
get emittance
Definition: BeamSpotObjects.h:103
BeamSpotObjects::GetXError
double GetXError() const
get X beam position Error
Definition: BeamSpotObjects.h:85
BeamSpotObjects::GetY
double GetY() const
get Y beam position
Definition: BeamSpotObjects.h:69
BeamSpotOnlineObjects::GetLastAnalyzedRun
int GetLastAnalyzedRun() const
Definition: BeamSpotOnlineObjects.h:66
BeamSpotOnlineObjects::ISIZE
Definition: BeamSpotOnlineObjects.h:39
BeamSpotObjects::GetBeamWidthX
double GetBeamWidthX() const
get average transverse beam width
Definition: BeamSpotObjects.h:75
BeamSpotObjects::GetYError
double GetYError() const
get Y beam position Error
Definition: BeamSpotObjects.h:87
heppy_batch.val
val
Definition: heppy_batch.py:351
BeamSpotObjects::GetEmittanceY
double GetEmittanceY() const
get emittance
Definition: BeamSpotObjects.h:105
BeamSpotObjects::Getdydz
double Getdydz() const
get dydz slope, crossing angle in YZ
Definition: BeamSpotObjects.h:81
BeamSpotOnlineObjects::NUM_PVS
Definition: BeamSpotOnlineObjects.h:39
BeamSpotObjects::GetZError
double GetZError() const
get Z beam position Error
Definition: BeamSpotObjects.h:89
BeamSpotObjects::GetdydzError
double GetdydzError() const
get dydz slope, crossing angle in YZ Error
Definition: BeamSpotObjects.h:99
BeamSpotObjects::GetBeamWidthXError
double GetBeamWidthXError() const
get average transverse beam width error ASSUME the same for X and Y
Definition: BeamSpotObjects.h:93
BeamSpotOnlineObjects::GetLastAnalyzedFill
int GetLastAnalyzedFill() const
Definition: BeamSpotOnlineObjects.h:69
BeamSpotObjects::GetBeamWidthYError
double GetBeamWidthYError() const
get average transverse beam width error X = Y
Definition: BeamSpotObjects.h:95
BeamSpotObjects::GetX
double GetX() const
get X beam position
Definition: BeamSpotObjects.h:67
BeamSpotOnlineObjectsImpl::getOneParam
const T & getOneParam(const std::vector< std::vector< T > > &params, size_t index)
Definition: BeamSpotOnlineObjects.cc:21
BeamSpotObjects::GetdxdzError
double GetdxdzError() const
get dxdz slope, crossing angle in XZ Error
Definition: BeamSpotObjects.h:97