#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... | |
void | copyFromBeamSpotObject (const BeamSpotObjects &bs) |
Setters Methods. 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) |
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.
void BeamSpotOnlineObjects::copyFromBeamSpotObject | ( | const BeamSpotObjects & | bs | ) |
Setters Methods.
Definition at line 95 of file BeamSpotOnlineObjects.cc.
References cms::cuda::bs, mps_fire::i, dqmiolumiharvest::j, BeamSpotObjects::setBeamWidthX(), BeamSpotObjects::setBeamWidthXError(), BeamSpotObjects::setBeamWidthY(), BeamSpotObjects::setBeamWidthYError(), BeamSpotObjects::setBetaStar(), BeamSpotObjects::setCovariance(), BeamSpotObjects::setdxdz(), BeamSpotObjects::setdydz(), BeamSpotObjects::setEmittanceX(), BeamSpotObjects::setEmittanceY(), BeamSpotObjects::setPosition(), BeamSpotObjects::setSigmaZ(), and BeamSpotObjects::setType().
Referenced by BeamSpotOnlineFromOfflineConverter::analyze().
cond::Time_t BeamSpotOnlineObjects::creationTime | ( | ) | const |
Definition at line 82 of file BeamSpotOnlineObjects.cc.
References CREATE_TIME, BeamSpotOnlineObjectsImpl::getOneParam(), and timeParams_.
Referenced by OnlineBeamSpotESProducer::checkSingleBS(), and OnlineBeamSpotESProducer::compareBS().
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 setEndTime().
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 setEndTimeStamp().
|
inline |
Definition at line 109 of file BeamSpotOnlineObjects.h.
References lastAnalyzedFill_.
Referenced by BeamSpotOnlineRecordsReader::dump(), and print().
|
inline |
Getters Methods.
Definition at line 103 of file BeamSpotOnlineObjects.h.
References lastAnalyzedLumi_.
Referenced by BeamSpotOnlineRecordsReader::dump(), and print().
|
inline |
Definition at line 106 of file BeamSpotOnlineObjects.h.
References lastAnalyzedRun_.
Referenced by BeamSpotOnlineRecordsReader::dump(), and print().
std::string BeamSpotOnlineObjects::lumiRange | ( | ) | const |
Definition at line 78 of file BeamSpotOnlineObjects.cc.
References BeamSpotOnlineObjectsImpl::getOneParam(), LUMI_RANGE, and stringParams_.
Referenced by setLumiRange().
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 setMaxPVs().
float BeamSpotOnlineObjects::meanErrorPV | ( | ) | const |
Definition at line 60 of file BeamSpotOnlineObjects.cc.
References ERR_MEAN_PV, floatParams_, and BeamSpotOnlineObjectsImpl::getOneParam().
Referenced by FakeBeamMonitor::FitAndFill(), and BeamMonitor::FitAndFill().
float BeamSpotOnlineObjects::meanPV | ( | ) | const |
Definition at line 58 of file BeamSpotOnlineObjects.cc.
References floatParams_, BeamSpotOnlineObjectsImpl::getOneParam(), and MEAN_PV.
Referenced by FakeBeamMonitor::FitAndFill(), and BeamMonitor::FitAndFill().
int BeamSpotOnlineObjects::numPVs | ( | ) | const |
Definition at line 50 of file BeamSpotOnlineObjects.cc.
References BeamSpotOnlineObjectsImpl::getOneParam(), intParams_, and NUM_PVS.
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 171 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(), contentValuesCheck::ss, BeamSpotObjects::x(), BeamSpotObjects::xError(), BeamSpotObjects::y(), BeamSpotObjects::yError(), BeamSpotObjects::z(), and BeamSpotObjects::zError().
float BeamSpotOnlineObjects::rmsErrorPV | ( | ) | const |
Definition at line 66 of file BeamSpotOnlineObjects.cc.
References ERR_RMS_PV, floatParams_, and BeamSpotOnlineObjectsImpl::getOneParam().
Referenced by FakeBeamMonitor::FitAndFill(), and BeamMonitor::FitAndFill().
float BeamSpotOnlineObjects::rmsPV | ( | ) | const |
Definition at line 64 of file BeamSpotOnlineObjects.cc.
References floatParams_, BeamSpotOnlineObjectsImpl::getOneParam(), and RMS_PV.
Referenced by FakeBeamMonitor::FitAndFill(), and BeamMonitor::FitAndFill().
|
private |
void BeamSpotOnlineObjects::setCreationTime | ( | cond::Time_t | val | ) |
Definition at line 158 of file BeamSpotOnlineObjects.cc.
References CREATE_TIME, BeamSpotOnlineObjectsImpl::setOneParam(), and timeParams_.
Referenced by BeamSpotOnlineFromOfflineConverter::analyze(), BeamSpotOnlineRecordsWriter::endJob(), FakeBeamMonitor::FitAndFill(), and BeamMonitor::FitAndFill().
void BeamSpotOnlineObjects::setEndTime | ( | std::string | val | ) |
Definition at line 150 of file BeamSpotOnlineObjects.cc.
References END_TIME, endTime(), BeamSpotOnlineObjectsImpl::setOneParam(), and stringParams_.
Referenced by BeamSpotOnlineFromOfflineConverter::analyze(), FakeBeamMonitor::FitAndFill(), and BeamMonitor::FitAndFill().
void BeamSpotOnlineObjects::setEndTimeStamp | ( | cond::Time_t | val | ) |
Definition at line 166 of file BeamSpotOnlineObjects.cc.
References END_TIMESTAMP, endTimeStamp(), BeamSpotOnlineObjectsImpl::setOneParam(), and timeParams_.
Referenced by BeamSpotOnlineFromOfflineConverter::analyze(), BeamSpotOnlineRecordsWriter::endJob(), FakeBeamMonitor::FitAndFill(), and BeamMonitor::FitAndFill().
|
inline |
Definition at line 57 of file BeamSpotOnlineObjects.h.
References lastAnalyzedFill_, and heppy_batch::val.
Referenced by BeamSpotOnlineFromOfflineConverter::analyze(), BeamSpotOnlineRecordsWriter::endJob(), FakeBeamMonitor::FitAndFill(), and BeamMonitor::FitAndFill().
|
inline |
Definition at line 51 of file BeamSpotOnlineObjects.h.
References lastAnalyzedLumi_, and heppy_batch::val.
Referenced by BeamSpotOnlineFromOfflineConverter::analyze(), BeamSpotOnlineRecordsWriter::endJob(), FakeBeamMonitor::FitAndFill(), and BeamMonitor::FitAndFill().
|
inline |
Definition at line 54 of file BeamSpotOnlineObjects.h.
References lastAnalyzedRun_, and heppy_batch::val.
Referenced by BeamSpotOnlineFromOfflineConverter::analyze(), BeamSpotOnlineRecordsWriter::endJob(), FakeBeamMonitor::FitAndFill(), and BeamMonitor::FitAndFill().
void BeamSpotOnlineObjects::setLumiRange | ( | std::string | val | ) |
Definition at line 154 of file BeamSpotOnlineObjects.cc.
References LUMI_RANGE, lumiRange(), BeamSpotOnlineObjectsImpl::setOneParam(), and stringParams_.
Referenced by BeamSpotOnlineFromOfflineConverter::analyze(), and BeamMonitor::FitAndFill().
void BeamSpotOnlineObjects::setMaxPVs | ( | int | val | ) |
Definition at line 126 of file BeamSpotOnlineObjects.cc.
References intParams_, MAX_PVS, maxPVs(), and BeamSpotOnlineObjectsImpl::setOneParam().
Referenced by BeamSpotOnlineFromOfflineConverter::analyze(), FakeBeamMonitor::FitAndFill(), and BeamMonitor::FitAndFill().
void BeamSpotOnlineObjects::setMeanErrorPV | ( | float | val | ) |
Definition at line 134 of file BeamSpotOnlineObjects.cc.
References ERR_MEAN_PV, floatParams_, and BeamSpotOnlineObjectsImpl::setOneParam().
Referenced by BeamSpotOnlineFromOfflineConverter::analyze(), FakeBeamMonitor::FitAndFill(), and BeamMonitor::FitAndFill().
void BeamSpotOnlineObjects::setMeanPV | ( | float | val | ) |
Definition at line 130 of file BeamSpotOnlineObjects.cc.
References floatParams_, MEAN_PV, and BeamSpotOnlineObjectsImpl::setOneParam().
Referenced by BeamSpotOnlineFromOfflineConverter::analyze(), FakeBeamMonitor::FitAndFill(), and BeamMonitor::FitAndFill().
void BeamSpotOnlineObjects::setNumPVs | ( | int | val | ) |
Definition at line 120 of file BeamSpotOnlineObjects.cc.
References intParams_, BeamSpotPI::nPVs, NUM_PVS, and BeamSpotOnlineObjectsImpl::setOneParam().
Referenced by BeamSpotOnlineFromOfflineConverter::analyze(), FakeBeamMonitor::FitAndFill(), and BeamMonitor::FitAndFill().
void BeamSpotOnlineObjects::setNumTracks | ( | int | val | ) |
Definition at line 116 of file BeamSpotOnlineObjects.cc.
References intParams_, BeamSpotPI::nTracks, NUM_TRACKS, and BeamSpotOnlineObjectsImpl::setOneParam().
Referenced by BeamSpotOnlineFromOfflineConverter::analyze(), FakeBeamMonitor::FitAndFill(), and BeamMonitor::FitAndFill().
void BeamSpotOnlineObjects::setRmsErrorPV | ( | float | val | ) |
Definition at line 142 of file BeamSpotOnlineObjects.cc.
References ERR_RMS_PV, floatParams_, and BeamSpotOnlineObjectsImpl::setOneParam().
Referenced by BeamSpotOnlineFromOfflineConverter::analyze(), FakeBeamMonitor::FitAndFill(), and BeamMonitor::FitAndFill().
void BeamSpotOnlineObjects::setRmsPV | ( | float | val | ) |
Definition at line 138 of file BeamSpotOnlineObjects.cc.
References floatParams_, RMS_PV, and BeamSpotOnlineObjectsImpl::setOneParam().
Referenced by BeamSpotOnlineFromOfflineConverter::analyze(), FakeBeamMonitor::FitAndFill(), and BeamMonitor::FitAndFill().
void BeamSpotOnlineObjects::setStartTime | ( | std::string | val | ) |
Definition at line 146 of file BeamSpotOnlineObjects.cc.
References BeamSpotOnlineObjectsImpl::setOneParam(), START_TIME, startTime(), and stringParams_.
Referenced by BeamSpotOnlineFromOfflineConverter::analyze(), FakeBeamMonitor::FitAndFill(), and BeamMonitor::FitAndFill().
void BeamSpotOnlineObjects::setStartTimeStamp | ( | cond::Time_t | val | ) |
Definition at line 162 of file BeamSpotOnlineObjects.cc.
References BeamSpotOnlineObjectsImpl::setOneParam(), START_TIMESTAMP, and timeParams_.
Referenced by BeamSpotOnlineFromOfflineConverter::analyze(), BeamSpotOnlineRecordsWriter::endJob(), FakeBeamMonitor::FitAndFill(), and BeamMonitor::FitAndFill().
void BeamSpotOnlineObjects::setUsedEvents | ( | int | val | ) |
Definition at line 122 of file BeamSpotOnlineObjects.cc.
References intParams_, BeamSpotOnlineObjectsImpl::setOneParam(), USED_EVENTS, and usedEvents().
Referenced by BeamSpotOnlineFromOfflineConverter::analyze(), 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 setStartTime().
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(), and BeamMonitor::FitAndFill().
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 setUsedEvents().
|
friend |
Definition at line 165 of file BeamSpotOnlineObjects.h.
|
friend |
Definition at line 165 of file BeamSpotOnlineObjects.h.
|
private |
Definition at line 161 of file BeamSpotOnlineObjects.h.
Referenced by BeamSpotOnlineObjects(), meanErrorPV(), meanPV(), rmsErrorPV(), rmsPV(), setMeanErrorPV(), setMeanPV(), setRmsErrorPV(), and setRmsPV().
|
private |
Definition at line 160 of file BeamSpotOnlineObjects.h.
Referenced by BeamSpotOnlineObjects(), maxPVs(), numPVs(), numTracks(), setMaxPVs(), setNumPVs(), setNumTracks(), setUsedEvents(), and usedEvents().
|
private |
Definition at line 159 of file BeamSpotOnlineObjects.h.
Referenced by BeamSpotOnlineObjects(), lastAnalyzedFill(), and setLastAnalyzedFill().
|
private |
Definition at line 157 of file BeamSpotOnlineObjects.h.
Referenced by BeamSpotOnlineObjects(), lastAnalyzedLumi(), and setLastAnalyzedLumi().
|
private |
Definition at line 158 of file BeamSpotOnlineObjects.h.
Referenced by BeamSpotOnlineObjects(), lastAnalyzedRun(), and setLastAnalyzedRun().
|
private |
Definition at line 162 of file BeamSpotOnlineObjects.h.
Referenced by BeamSpotOnlineObjects(), endTime(), lumiRange(), setEndTime(), setLumiRange(), setStartTime(), and startTime().
|
private |
Definition at line 163 of file BeamSpotOnlineObjects.h.
Referenced by BeamSpotOnlineObjects(), creationTime(), endTimeStamp(), setCreationTime(), setEndTimeStamp(), setStartTimeStamp(), and startTimeStamp().