![]() |
![]() |
#include <BeamSpotOnlineObjects.h>
Public Types | |
enum | FloatParamIndex { MEAN_PV = 0, ERR_MEAN_PV = 1, RMS_PV = 2, ERR_RMS_PV = 3, FSIZE = 4 } |
enum | IntParamIndex { NUM_TRACKS = 0, NUM_PVS = 1, USED_EVENTS = 2, MAX_PVS = 3, ISIZE = 4 } |
Enums. More... | |
enum | StringParamIndex { START_TIME = 0, END_TIME = 1, LUMI_RANGE = 2, SSIZE = 3 } |
enum | TimeParamIndex { CREATE_TIME = 0, START_TIMESTAMP = 1, END_TIMESTAMP = 2, TSIZE = 3 } |
Public Member Functions | |
BeamSpotOnlineObjects () | |
default constructor More... | |
cond::Time_t | GetCreationTime () const |
std::string | GetEndTime () const |
cond::Time_t | GetEndTimeStamp () const |
int | GetLastAnalyzedFill () const |
int | GetLastAnalyzedLumi () const |
Getters Methods. More... | |
int | GetLastAnalyzedRun () const |
std::string | GetLumiRange () const |
int | GetMaxPVs () const |
float | GetMeanErrorPV () const |
float | GetMeanPV () const |
int | GetNumPVs () const |
int | GetNumTracks () const |
float | GetRmsErrorPV () const |
float | GetRmsPV () const |
std::string | GetStartTime () const |
cond::Time_t | GetStartTimeStamp () const |
int | GetUsedEvents () const |
void | print (std::stringstream &ss) const |
Print BeamSpotOnline parameters. More... | |
void | SetCreationTime (cond::Time_t val) |
void | SetEndTime (std::string val) |
void | SetEndTimeStamp (cond::Time_t val) |
void | SetLastAnalyzedFill (int val) |
void | SetLastAnalyzedLumi (int val) |
Setters Methods. More... | |
void | SetLastAnalyzedRun (int val) |
void | SetLumiRange (std::string val) |
void | SetMaxPVs (int val) |
void | SetMeanErrorPV (float val) |
void | SetMeanPV (float val) |
void | SetNumPVs (int val) |
void | SetNumTracks (int val) |
void | SetRmsErrorPV (float val) |
void | SetRmsPV (float val) |
void | SetStartTime (std::string val) |
void | SetStartTimeStamp (cond::Time_t val) |
void | SetUsedEvents (int val) |
~BeamSpotOnlineObjects () override | |
![]() | |
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 | |
![]() | |
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_ |
Class inheriting from BeamSpotObjects. New members of the class:
Definition at line 25 of file BeamSpotOnlineObjects.h.
Enumerator | |
---|---|
MEAN_PV | |
ERR_MEAN_PV | |
RMS_PV | |
ERR_RMS_PV | |
FSIZE |
Definition at line 42 of file BeamSpotOnlineObjects.h.
Enums.
Enumerator | |
---|---|
NUM_TRACKS | |
NUM_PVS | |
USED_EVENTS | |
MAX_PVS | |
ISIZE |
Definition at line 41 of file BeamSpotOnlineObjects.h.
Enumerator | |
---|---|
START_TIME | |
END_TIME | |
LUMI_RANGE | |
SSIZE |
Definition at line 43 of file BeamSpotOnlineObjects.h.
Enumerator | |
---|---|
CREATE_TIME | |
START_TIMESTAMP | |
END_TIMESTAMP | |
TSIZE |
Definition at line 44 of file BeamSpotOnlineObjects.h.
|
inline |
default constructor
Definition at line 28 of file BeamSpotOnlineObjects.h.
References floatParams_, FSIZE, intParams_, ISIZE, lastAnalyzedFill_, lastAnalyzedLumi_, lastAnalyzedRun_, SSIZE, stringParams_, timeParams_, and TSIZE.
|
inlineoverride |
Definition at line 38 of file BeamSpotOnlineObjects.h.
cond::Time_t BeamSpotOnlineObjects::GetCreationTime | ( | ) | const |
Definition at line 84 of file BeamSpotOnlineObjects.cc.
References CREATE_TIME, BeamSpotOnlineObjectsImpl::getOneParam(), and timeParams_.
Referenced by OnlineBeamSpotESProducer::checkSingleBS(), and OnlineBeamSpotESProducer::compareBS().
std::string BeamSpotOnlineObjects::GetEndTime | ( | ) | const |
Definition at line 76 of file BeamSpotOnlineObjects.cc.
References END_TIME, BeamSpotOnlineObjectsImpl::getOneParam(), and stringParams_.
Referenced by BeamMonitor::FitAndFill(), and FakeBeamMonitor::FitAndFill().
cond::Time_t BeamSpotOnlineObjects::GetEndTimeStamp | ( | ) | const |
Definition at line 92 of file BeamSpotOnlineObjects.cc.
References END_TIMESTAMP, BeamSpotOnlineObjectsImpl::getOneParam(), and timeParams_.
Referenced by BeamMonitor::FitAndFill(), and FakeBeamMonitor::FitAndFill().
|
inline |
Definition at line 106 of file BeamSpotOnlineObjects.h.
References lastAnalyzedFill_.
Referenced by BeamSpotOnlineHLTRcdReader::analyze(), BeamSpotOnlineLegacyRcdReader::analyze(), and print().
|
inline |
Getters Methods.
Definition at line 100 of file BeamSpotOnlineObjects.h.
References lastAnalyzedLumi_.
Referenced by BeamSpotOnlineHLTRcdReader::analyze(), BeamSpotOnlineLegacyRcdReader::analyze(), and print().
|
inline |
Definition at line 103 of file BeamSpotOnlineObjects.h.
References lastAnalyzedRun_.
Referenced by BeamSpotOnlineHLTRcdReader::analyze(), BeamSpotOnlineLegacyRcdReader::analyze(), and print().
std::string BeamSpotOnlineObjects::GetLumiRange | ( | ) | const |
Definition at line 80 of file BeamSpotOnlineObjects.cc.
References BeamSpotOnlineObjectsImpl::getOneParam(), LUMI_RANGE, and stringParams_.
int BeamSpotOnlineObjects::GetMaxPVs | ( | ) | const |
Definition at line 58 of file BeamSpotOnlineObjects.cc.
References BeamSpotOnlineObjectsImpl::getOneParam(), intParams_, and MAX_PVS.
Referenced by BeamMonitor::FitAndFill(), and FakeBeamMonitor::FitAndFill().
float BeamSpotOnlineObjects::GetMeanErrorPV | ( | ) | const |
Definition at line 62 of file BeamSpotOnlineObjects.cc.
References ERR_MEAN_PV, floatParams_, and BeamSpotOnlineObjectsImpl::getOneParam().
Referenced by BeamMonitor::FitAndFill(), and FakeBeamMonitor::FitAndFill().
float BeamSpotOnlineObjects::GetMeanPV | ( | ) | const |
Definition at line 60 of file BeamSpotOnlineObjects.cc.
References floatParams_, BeamSpotOnlineObjectsImpl::getOneParam(), and MEAN_PV.
Referenced by BeamMonitor::FitAndFill(), and FakeBeamMonitor::FitAndFill().
int BeamSpotOnlineObjects::GetNumPVs | ( | ) | const |
Definition at line 52 of file BeamSpotOnlineObjects.cc.
References BeamSpotOnlineObjectsImpl::getOneParam(), intParams_, and NUM_PVS.
int BeamSpotOnlineObjects::GetNumTracks | ( | ) | const |
Definition at line 48 of file BeamSpotOnlineObjects.cc.
References BeamSpotOnlineObjectsImpl::getOneParam(), intParams_, and NUM_TRACKS.
float BeamSpotOnlineObjects::GetRmsErrorPV | ( | ) | const |
Definition at line 68 of file BeamSpotOnlineObjects.cc.
References ERR_RMS_PV, floatParams_, and BeamSpotOnlineObjectsImpl::getOneParam().
Referenced by BeamMonitor::FitAndFill(), and FakeBeamMonitor::FitAndFill().
float BeamSpotOnlineObjects::GetRmsPV | ( | ) | const |
Definition at line 66 of file BeamSpotOnlineObjects.cc.
References floatParams_, BeamSpotOnlineObjectsImpl::getOneParam(), and RMS_PV.
Referenced by BeamMonitor::FitAndFill(), and FakeBeamMonitor::FitAndFill().
std::string BeamSpotOnlineObjects::GetStartTime | ( | ) | const |
Definition at line 72 of file BeamSpotOnlineObjects.cc.
References BeamSpotOnlineObjectsImpl::getOneParam(), START_TIME, and stringParams_.
Referenced by BeamMonitor::FitAndFill(), and FakeBeamMonitor::FitAndFill().
cond::Time_t BeamSpotOnlineObjects::GetStartTimeStamp | ( | ) | const |
Definition at line 88 of file BeamSpotOnlineObjects.cc.
References BeamSpotOnlineObjectsImpl::getOneParam(), START_TIMESTAMP, and timeParams_.
Referenced by BeamMonitor::FitAndFill(), and FakeBeamMonitor::FitAndFill().
int BeamSpotOnlineObjects::GetUsedEvents | ( | ) | const |
Definition at line 54 of file BeamSpotOnlineObjects.cc.
References BeamSpotOnlineObjectsImpl::getOneParam(), intParams_, and USED_EVENTS.
Referenced by BeamMonitor::FitAndFill(), and FakeBeamMonitor::FitAndFill().
void BeamSpotOnlineObjects::print | ( | std::stringstream & | ss | ) | const |
Print BeamSpotOnline parameters.
Definition at line 152 of file BeamSpotOnlineObjects.cc.
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.
|
private |
void BeamSpotOnlineObjects::SetCreationTime | ( | cond::Time_t | val | ) |
Definition at line 139 of file BeamSpotOnlineObjects.cc.
References CREATE_TIME, BeamSpotOnlineObjectsImpl::setOneParam(), and timeParams_.
Referenced by BeamMonitor::FitAndFill(), and FakeBeamMonitor::FitAndFill().
void BeamSpotOnlineObjects::SetEndTime | ( | std::string | val | ) |
Definition at line 131 of file BeamSpotOnlineObjects.cc.
References END_TIME, BeamSpotOnlineObjectsImpl::setOneParam(), and stringParams_.
Referenced by BeamMonitor::FitAndFill(), and FakeBeamMonitor::FitAndFill().
void BeamSpotOnlineObjects::SetEndTimeStamp | ( | cond::Time_t | val | ) |
Definition at line 147 of file BeamSpotOnlineObjects.cc.
References END_TIMESTAMP, BeamSpotOnlineObjectsImpl::setOneParam(), and timeParams_.
Referenced by BeamMonitor::FitAndFill(), and FakeBeamMonitor::FitAndFill().
|
inline |
Definition at line 54 of file BeamSpotOnlineObjects.h.
References lastAnalyzedFill_, and heppy_batch::val.
Referenced by BeamSpotOnlineHLTRcdWriter::endJob(), BeamSpotOnlineLegacyRcdWriter::endJob(), BeamMonitor::FitAndFill(), and FakeBeamMonitor::FitAndFill().
|
inline |
Setters Methods.
Definition at line 48 of file BeamSpotOnlineObjects.h.
References lastAnalyzedLumi_, and heppy_batch::val.
Referenced by BeamSpotOnlineHLTRcdWriter::endJob(), BeamSpotOnlineLegacyRcdWriter::endJob(), BeamMonitor::FitAndFill(), and FakeBeamMonitor::FitAndFill().
|
inline |
Definition at line 51 of file BeamSpotOnlineObjects.h.
References lastAnalyzedRun_, and heppy_batch::val.
Referenced by BeamSpotOnlineHLTRcdWriter::endJob(), BeamSpotOnlineLegacyRcdWriter::endJob(), BeamMonitor::FitAndFill(), and FakeBeamMonitor::FitAndFill().
void BeamSpotOnlineObjects::SetLumiRange | ( | std::string | val | ) |
Definition at line 135 of file BeamSpotOnlineObjects.cc.
References LUMI_RANGE, BeamSpotOnlineObjectsImpl::setOneParam(), and stringParams_.
void BeamSpotOnlineObjects::SetMaxPVs | ( | int | val | ) |
Definition at line 107 of file BeamSpotOnlineObjects.cc.
References intParams_, MAX_PVS, and BeamSpotOnlineObjectsImpl::setOneParam().
Referenced by BeamMonitor::FitAndFill(), and FakeBeamMonitor::FitAndFill().
void BeamSpotOnlineObjects::SetMeanErrorPV | ( | float | val | ) |
Definition at line 115 of file BeamSpotOnlineObjects.cc.
References ERR_MEAN_PV, floatParams_, and BeamSpotOnlineObjectsImpl::setOneParam().
Referenced by BeamMonitor::FitAndFill(), and FakeBeamMonitor::FitAndFill().
void BeamSpotOnlineObjects::SetMeanPV | ( | float | val | ) |
Definition at line 111 of file BeamSpotOnlineObjects.cc.
References floatParams_, MEAN_PV, and BeamSpotOnlineObjectsImpl::setOneParam().
Referenced by BeamMonitor::FitAndFill(), and FakeBeamMonitor::FitAndFill().
void BeamSpotOnlineObjects::SetNumPVs | ( | int | val | ) |
Definition at line 101 of file BeamSpotOnlineObjects.cc.
References intParams_, BeamSpotPI::nPVs, NUM_PVS, and BeamSpotOnlineObjectsImpl::setOneParam().
Referenced by BeamMonitor::FitAndFill(), and FakeBeamMonitor::FitAndFill().
void BeamSpotOnlineObjects::SetNumTracks | ( | int | val | ) |
Definition at line 97 of file BeamSpotOnlineObjects.cc.
References intParams_, BeamSpotPI::nTracks, NUM_TRACKS, and BeamSpotOnlineObjectsImpl::setOneParam().
Referenced by BeamMonitor::FitAndFill(), and FakeBeamMonitor::FitAndFill().
void BeamSpotOnlineObjects::SetRmsErrorPV | ( | float | val | ) |
Definition at line 123 of file BeamSpotOnlineObjects.cc.
References ERR_RMS_PV, floatParams_, and BeamSpotOnlineObjectsImpl::setOneParam().
Referenced by BeamMonitor::FitAndFill(), and FakeBeamMonitor::FitAndFill().
void BeamSpotOnlineObjects::SetRmsPV | ( | float | val | ) |
Definition at line 119 of file BeamSpotOnlineObjects.cc.
References floatParams_, RMS_PV, and BeamSpotOnlineObjectsImpl::setOneParam().
Referenced by BeamMonitor::FitAndFill(), and FakeBeamMonitor::FitAndFill().
void BeamSpotOnlineObjects::SetStartTime | ( | std::string | val | ) |
Definition at line 127 of file BeamSpotOnlineObjects.cc.
References BeamSpotOnlineObjectsImpl::setOneParam(), START_TIME, and stringParams_.
Referenced by BeamMonitor::FitAndFill(), and FakeBeamMonitor::FitAndFill().
void BeamSpotOnlineObjects::SetStartTimeStamp | ( | cond::Time_t | val | ) |
Definition at line 143 of file BeamSpotOnlineObjects.cc.
References BeamSpotOnlineObjectsImpl::setOneParam(), START_TIMESTAMP, and timeParams_.
Referenced by BeamMonitor::FitAndFill(), and FakeBeamMonitor::FitAndFill().
void BeamSpotOnlineObjects::SetUsedEvents | ( | int | val | ) |
Definition at line 103 of file BeamSpotOnlineObjects.cc.
References intParams_, BeamSpotOnlineObjectsImpl::setOneParam(), and USED_EVENTS.
Referenced by BeamMonitor::FitAndFill(), and FakeBeamMonitor::FitAndFill().
|
friend |
Definition at line 162 of file BeamSpotOnlineObjects.h.
|
friend |
Definition at line 162 of file BeamSpotOnlineObjects.h.
|
private |
Definition at line 158 of file BeamSpotOnlineObjects.h.
Referenced by BeamSpotOnlineObjects(), GetMeanErrorPV(), GetMeanPV(), GetRmsErrorPV(), GetRmsPV(), SetMeanErrorPV(), SetMeanPV(), SetRmsErrorPV(), and SetRmsPV().
|
private |
Definition at line 157 of file BeamSpotOnlineObjects.h.
Referenced by BeamSpotOnlineObjects(), GetMaxPVs(), GetNumPVs(), GetNumTracks(), GetUsedEvents(), SetMaxPVs(), SetNumPVs(), SetNumTracks(), and SetUsedEvents().
|
private |
Definition at line 156 of file BeamSpotOnlineObjects.h.
Referenced by BeamSpotOnlineObjects(), GetLastAnalyzedFill(), and SetLastAnalyzedFill().
|
private |
Definition at line 154 of file BeamSpotOnlineObjects.h.
Referenced by BeamSpotOnlineObjects(), GetLastAnalyzedLumi(), and SetLastAnalyzedLumi().
|
private |
Definition at line 155 of file BeamSpotOnlineObjects.h.
Referenced by BeamSpotOnlineObjects(), GetLastAnalyzedRun(), and SetLastAnalyzedRun().
|
private |
Definition at line 159 of file BeamSpotOnlineObjects.h.
Referenced by BeamSpotOnlineObjects(), GetEndTime(), GetLumiRange(), GetStartTime(), SetEndTime(), SetLumiRange(), and SetStartTime().
|
private |
Definition at line 160 of file BeamSpotOnlineObjects.h.
Referenced by BeamSpotOnlineObjects(), GetCreationTime(), GetEndTimeStamp(), GetStartTimeStamp(), SetCreationTime(), SetEndTimeStamp(), and SetStartTimeStamp().