#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 | creationTime () const |
std::string | endTime () const |
cond::Time_t | endTimeStamp () const |
int | lastAnalyzedFill () const |
int | lastAnalyzedLumi () const |
Getters Methods. More... | |
int | lastAnalyzedRun () const |
std::string | lumiRange () const |
int | maxPVs () const |
float | meanErrorPV () const |
float | meanPV () const |
int | numPVs () const |
int | numTracks () const |
void | print (std::stringstream &ss) const |
Print BeamSpotOnline parameters. More... | |
float | rmsErrorPV () const |
float | rmsPV () const |
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) |
std::string | startTime () const |
cond::Time_t | startTimeStamp () const |
int | usedEvents () const |
~BeamSpotOnlineObjects () override | |
Public Member Functions inherited from BeamSpotObjects | |
BeamSpotObjects () | |
default constructor More... | |
int | beamType () const |
get beam type More... | |
double | beamWidthX () const |
get average transverse beam width More... | |
double | beamWidthXError () const |
get average transverse beam width error ASSUME the same for X and Y More... | |
double | beamWidthY () const |
get average transverse beam width More... | |
double | beamWidthYError () const |
get average transverse beam width error X = Y More... | |
double | betaStar () const |
get beta star More... | |
double | covariance (int i, int j) const |
get i,j element of the full covariance matrix 7x7 More... | |
double | dxdz () const |
get dxdz slope, crossing angle in XZ More... | |
double | dxdzError () const |
get dxdz slope, crossing angle in XZ Error More... | |
double | dydz () const |
get dydz slope, crossing angle in YZ More... | |
double | dydzError () const |
get dydz slope, crossing angle in YZ Error More... | |
double | emittanceX () const |
get emittance More... | |
double | emittanceY () const |
get emittance 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... | |
double | sigmaZ () const |
get sigma Z, RMS bunch length More... | |
double | sigmaZError () const |
get sigma Z, RMS bunch length Error More... | |
double | x () const |
get X beam position More... | |
double | xError () const |
get X beam position Error More... | |
double | y () const |
get Y beam position More... | |
double | yError () const |
get Y beam position Error More... | |
double | z () const |
get Z beam position More... | |
double | zError () const |
get Z beam position Error 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_ |
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::creationTime | ( | ) | const |
Definition at line 82 of file BeamSpotOnlineObjects.cc.
References CREATE_TIME, BeamSpotOnlineObjectsImpl::getOneParam(), and timeParams_.
Referenced by checkPayloadAge(), OnlineBeamSpotESProducer::checkSingleBS(), OnlineBeamSpotESProducer::compareBS(), and BeamSpotDipServer::readRcd().
std::string BeamSpotOnlineObjects::endTime | ( | ) | const |
Definition at line 74 of file BeamSpotOnlineObjects.cc.
References END_TIME, BeamSpotOnlineObjectsImpl::getOneParam(), and stringParams_.
Referenced by FakeBeamMonitor::FitAndFill(), BeamMonitor::FitAndFill(), and BeamSpotDipServer::readRcd().
cond::Time_t BeamSpotOnlineObjects::endTimeStamp | ( | ) | const |
Definition at line 90 of file BeamSpotOnlineObjects.cc.
References END_TIMESTAMP, BeamSpotOnlineObjectsImpl::getOneParam(), and timeParams_.
Referenced by FakeBeamMonitor::FitAndFill(), BeamMonitor::FitAndFill(), and BeamSpotDipServer::readRcd().
|
inline |
Definition at line 106 of file BeamSpotOnlineObjects.h.
References lastAnalyzedFill_.
Referenced by BeamSpotOnlineRecordsReader::dump(), and print().
|
inline |
Getters Methods.
Definition at line 100 of file BeamSpotOnlineObjects.h.
References lastAnalyzedLumi_.
Referenced by BeamSpotOnlineRecordsReader::dump(), print(), and BeamSpotDipServer::readRcd().
|
inline |
Definition at line 103 of file BeamSpotOnlineObjects.h.
References lastAnalyzedRun_.
Referenced by BeamSpotOnlineRecordsReader::dump(), print(), and BeamSpotDipServer::readRcd().
std::string BeamSpotOnlineObjects::lumiRange | ( | ) | const |
Definition at line 78 of file BeamSpotOnlineObjects.cc.
References BeamSpotOnlineObjectsImpl::getOneParam(), LUMI_RANGE, and stringParams_.
Referenced by BeamSpotDipServer::readRcd().
int BeamSpotOnlineObjects::maxPVs | ( | ) | const |
Definition at line 56 of file BeamSpotOnlineObjects.cc.
References BeamSpotOnlineObjectsImpl::getOneParam(), intParams_, and MAX_PVS.
Referenced by FakeBeamMonitor::FitAndFill(), BeamMonitor::FitAndFill(), and BeamSpotDipServer::readRcd().
float BeamSpotOnlineObjects::meanErrorPV | ( | ) | const |
Definition at line 60 of file BeamSpotOnlineObjects.cc.
References ERR_MEAN_PV, floatParams_, and BeamSpotOnlineObjectsImpl::getOneParam().
Referenced by FakeBeamMonitor::FitAndFill(), BeamMonitor::FitAndFill(), and BeamSpotDipServer::readRcd().
float BeamSpotOnlineObjects::meanPV | ( | ) | const |
Definition at line 58 of file BeamSpotOnlineObjects.cc.
References floatParams_, BeamSpotOnlineObjectsImpl::getOneParam(), and MEAN_PV.
Referenced by FakeBeamMonitor::FitAndFill(), BeamMonitor::FitAndFill(), and BeamSpotDipServer::readRcd().
int BeamSpotOnlineObjects::numPVs | ( | ) | const |
Definition at line 50 of file BeamSpotOnlineObjects.cc.
References BeamSpotOnlineObjectsImpl::getOneParam(), intParams_, and NUM_PVS.
Referenced by BeamSpotDipServer::readRcd().
int BeamSpotOnlineObjects::numTracks | ( | ) | const |
Definition at line 48 of file BeamSpotOnlineObjects.cc.
References BeamSpotOnlineObjectsImpl::getOneParam(), intParams_, and NUM_TRACKS.
void BeamSpotOnlineObjects::print | ( | std::stringstream & | ss | ) | const |
Print BeamSpotOnline parameters.
Definition at line 150 of file BeamSpotOnlineObjects.cc.
References BeamSpotObjects::beamType(), BeamSpotObjects::beamWidthX(), BeamSpotObjects::beamWidthXError(), BeamSpotObjects::beamWidthY(), BeamSpotObjects::beamWidthYError(), BeamSpotObjects::betaStar(), BeamSpotObjects::dxdz(), BeamSpotObjects::dxdzError(), BeamSpotObjects::dydz(), BeamSpotObjects::dydzError(), BeamSpotObjects::emittanceX(), BeamSpotObjects::emittanceY(), lastAnalyzedFill(), lastAnalyzedLumi(), lastAnalyzedRun(), BeamSpotObjects::sigmaZ(), BeamSpotObjects::sigmaZError(), BeamSpotObjects::x(), BeamSpotObjects::xError(), BeamSpotObjects::y(), BeamSpotObjects::yError(), BeamSpotObjects::z(), and BeamSpotObjects::zError().
Referenced by operator<<().
float BeamSpotOnlineObjects::rmsErrorPV | ( | ) | const |
Definition at line 66 of file BeamSpotOnlineObjects.cc.
References ERR_RMS_PV, floatParams_, and BeamSpotOnlineObjectsImpl::getOneParam().
Referenced by FakeBeamMonitor::FitAndFill(), BeamMonitor::FitAndFill(), and BeamSpotDipServer::readRcd().
float BeamSpotOnlineObjects::rmsPV | ( | ) | const |
Definition at line 64 of file BeamSpotOnlineObjects.cc.
References floatParams_, BeamSpotOnlineObjectsImpl::getOneParam(), and RMS_PV.
Referenced by FakeBeamMonitor::FitAndFill(), BeamMonitor::FitAndFill(), and BeamSpotDipServer::readRcd().
|
private |
void BeamSpotOnlineObjects::setCreationTime | ( | cond::Time_t | val | ) |
Definition at line 137 of file BeamSpotOnlineObjects.cc.
References CREATE_TIME, BeamSpotOnlineObjectsImpl::setOneParam(), and timeParams_.
Referenced by BeamSpotOnlineRecordsWriter::endJob(), FakeBeamMonitor::FitAndFill(), and BeamMonitor::FitAndFill().
void BeamSpotOnlineObjects::setEndTime | ( | std::string | val | ) |
Definition at line 129 of file BeamSpotOnlineObjects.cc.
References END_TIME, BeamSpotOnlineObjectsImpl::setOneParam(), and stringParams_.
Referenced by FakeBeamMonitor::FitAndFill(), and BeamMonitor::FitAndFill().
void BeamSpotOnlineObjects::setEndTimeStamp | ( | cond::Time_t | val | ) |
Definition at line 145 of file BeamSpotOnlineObjects.cc.
References END_TIMESTAMP, BeamSpotOnlineObjectsImpl::setOneParam(), and timeParams_.
Referenced by BeamSpotOnlineRecordsWriter::endJob(), FakeBeamMonitor::FitAndFill(), and BeamMonitor::FitAndFill().
|
inline |
Definition at line 54 of file BeamSpotOnlineObjects.h.
References lastAnalyzedFill_, and hgcalPerformanceValidation::val.
Referenced by BeamSpotOnlineRecordsWriter::endJob(), FakeBeamMonitor::FitAndFill(), and BeamMonitor::FitAndFill().
|
inline |
Setters Methods.
Definition at line 48 of file BeamSpotOnlineObjects.h.
References lastAnalyzedLumi_, and hgcalPerformanceValidation::val.
Referenced by BeamSpotOnlineRecordsWriter::endJob(), FakeBeamMonitor::FitAndFill(), and BeamMonitor::FitAndFill().
|
inline |
Definition at line 51 of file BeamSpotOnlineObjects.h.
References lastAnalyzedRun_, and hgcalPerformanceValidation::val.
Referenced by BeamSpotOnlineRecordsWriter::endJob(), FakeBeamMonitor::FitAndFill(), and BeamMonitor::FitAndFill().
void BeamSpotOnlineObjects::setLumiRange | ( | std::string | val | ) |
Definition at line 133 of file BeamSpotOnlineObjects.cc.
References LUMI_RANGE, BeamSpotOnlineObjectsImpl::setOneParam(), and stringParams_.
void BeamSpotOnlineObjects::setMaxPVs | ( | int | val | ) |
Definition at line 105 of file BeamSpotOnlineObjects.cc.
References intParams_, MAX_PVS, and BeamSpotOnlineObjectsImpl::setOneParam().
Referenced by FakeBeamMonitor::FitAndFill(), and BeamMonitor::FitAndFill().
void BeamSpotOnlineObjects::setMeanErrorPV | ( | float | val | ) |
Definition at line 113 of file BeamSpotOnlineObjects.cc.
References ERR_MEAN_PV, floatParams_, and BeamSpotOnlineObjectsImpl::setOneParam().
Referenced by FakeBeamMonitor::FitAndFill(), and BeamMonitor::FitAndFill().
void BeamSpotOnlineObjects::setMeanPV | ( | float | val | ) |
Definition at line 109 of file BeamSpotOnlineObjects.cc.
References floatParams_, MEAN_PV, and BeamSpotOnlineObjectsImpl::setOneParam().
Referenced by FakeBeamMonitor::FitAndFill(), and BeamMonitor::FitAndFill().
void BeamSpotOnlineObjects::setNumPVs | ( | int | val | ) |
Definition at line 99 of file BeamSpotOnlineObjects.cc.
References intParams_, NUM_PVS, and BeamSpotOnlineObjectsImpl::setOneParam().
Referenced by FakeBeamMonitor::FitAndFill(), and BeamMonitor::FitAndFill().
void BeamSpotOnlineObjects::setNumTracks | ( | int | val | ) |
Definition at line 95 of file BeamSpotOnlineObjects.cc.
References intParams_, NUM_TRACKS, and BeamSpotOnlineObjectsImpl::setOneParam().
Referenced by FakeBeamMonitor::FitAndFill(), and BeamMonitor::FitAndFill().
void BeamSpotOnlineObjects::setRmsErrorPV | ( | float | val | ) |
Definition at line 121 of file BeamSpotOnlineObjects.cc.
References ERR_RMS_PV, floatParams_, and BeamSpotOnlineObjectsImpl::setOneParam().
Referenced by FakeBeamMonitor::FitAndFill(), and BeamMonitor::FitAndFill().
void BeamSpotOnlineObjects::setRmsPV | ( | float | val | ) |
Definition at line 117 of file BeamSpotOnlineObjects.cc.
References floatParams_, RMS_PV, and BeamSpotOnlineObjectsImpl::setOneParam().
Referenced by FakeBeamMonitor::FitAndFill(), and BeamMonitor::FitAndFill().
void BeamSpotOnlineObjects::setStartTime | ( | std::string | val | ) |
Definition at line 125 of file BeamSpotOnlineObjects.cc.
References BeamSpotOnlineObjectsImpl::setOneParam(), START_TIME, and stringParams_.
Referenced by FakeBeamMonitor::FitAndFill(), and BeamMonitor::FitAndFill().
void BeamSpotOnlineObjects::setStartTimeStamp | ( | cond::Time_t | val | ) |
Definition at line 141 of file BeamSpotOnlineObjects.cc.
References BeamSpotOnlineObjectsImpl::setOneParam(), START_TIMESTAMP, and timeParams_.
Referenced by BeamSpotOnlineRecordsWriter::endJob(), FakeBeamMonitor::FitAndFill(), and BeamMonitor::FitAndFill().
void BeamSpotOnlineObjects::setUsedEvents | ( | int | val | ) |
Definition at line 101 of file BeamSpotOnlineObjects.cc.
References intParams_, BeamSpotOnlineObjectsImpl::setOneParam(), and USED_EVENTS.
Referenced by FakeBeamMonitor::FitAndFill(), and BeamMonitor::FitAndFill().
std::string BeamSpotOnlineObjects::startTime | ( | ) | const |
Definition at line 70 of file BeamSpotOnlineObjects.cc.
References BeamSpotOnlineObjectsImpl::getOneParam(), START_TIME, and stringParams_.
Referenced by FakeBeamMonitor::FitAndFill(), BeamMonitor::FitAndFill(), and BeamSpotDipServer::readRcd().
cond::Time_t BeamSpotOnlineObjects::startTimeStamp | ( | ) | const |
Definition at line 86 of file BeamSpotOnlineObjects.cc.
References BeamSpotOnlineObjectsImpl::getOneParam(), START_TIMESTAMP, and timeParams_.
Referenced by FakeBeamMonitor::FitAndFill(), BeamMonitor::FitAndFill(), and BeamSpotDipServer::readRcd().
int BeamSpotOnlineObjects::usedEvents | ( | ) | const |
Definition at line 52 of file BeamSpotOnlineObjects.cc.
References BeamSpotOnlineObjectsImpl::getOneParam(), intParams_, and USED_EVENTS.
Referenced by FakeBeamMonitor::FitAndFill(), BeamMonitor::FitAndFill(), and BeamSpotDipServer::readRcd().
|
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(), meanErrorPV(), meanPV(), rmsErrorPV(), rmsPV(), setMeanErrorPV(), setMeanPV(), setRmsErrorPV(), and setRmsPV().
|
private |
Definition at line 157 of file BeamSpotOnlineObjects.h.
Referenced by BeamSpotOnlineObjects(), maxPVs(), numPVs(), numTracks(), setMaxPVs(), setNumPVs(), setNumTracks(), setUsedEvents(), and usedEvents().
|
private |
Definition at line 156 of file BeamSpotOnlineObjects.h.
Referenced by BeamSpotOnlineObjects(), lastAnalyzedFill(), and setLastAnalyzedFill().
|
private |
Definition at line 154 of file BeamSpotOnlineObjects.h.
Referenced by BeamSpotOnlineObjects(), lastAnalyzedLumi(), and setLastAnalyzedLumi().
|
private |
Definition at line 155 of file BeamSpotOnlineObjects.h.
Referenced by BeamSpotOnlineObjects(), lastAnalyzedRun(), and setLastAnalyzedRun().
|
private |
Definition at line 159 of file BeamSpotOnlineObjects.h.
Referenced by BeamSpotOnlineObjects(), endTime(), lumiRange(), setEndTime(), setLumiRange(), setStartTime(), and startTime().
|
private |
Definition at line 160 of file BeamSpotOnlineObjects.h.
Referenced by BeamSpotOnlineObjects(), creationTime(), endTimeStamp(), setCreationTime(), setEndTimeStamp(), setStartTimeStamp(), and startTimeStamp().