CMS 3D CMS Logo

List of all members | Public Member Functions | Protected Attributes
BeamSpotOnline Class Reference

#include <BeamSpotOnline.h>

Public Member Functions

 BeamSpotOnline ()
 
 BeamSpotOnline (const unsigned char *rawData)
 
unsigned int bunchNumber () const
 
timespec collectionTime () const
 
float dxdz () const
 
float dydz () const
 
bool empty () const
 empty method (= false) More...
 
float err_dxdz () const
 
float err_dydz () const
 
float err_sigma_z () const
 
float err_width_x () const
 
float err_width_y () const
 
float err_x () const
 
float err_y () const
 
float err_z () const
 
unsigned int eventID () const
 
std::string name () const
 name method More...
 
int operator!= (const BeamSpotOnline &e) const
 inequality operator More...
 
int operator== (const BeamSpotOnline &e) const
 equality operator More...
 
float sigma_z () const
 
unsigned int sourceID () const
 
unsigned int trigType () const
 
int version () const
 
float width_x () const
 
float width_y () const
 
float x () const
 
float y () const
 
float z () const
 
virtual ~BeamSpotOnline ()
 

Protected Attributes

unsigned int bunchNumber_
 
TimeSpec collectionTime_
 
float dxdz_
 
float dydz_
 
float err_dxdz_
 
float err_dydz_
 
float err_sigma_z_
 
float err_width_x_
 
float err_width_y_
 
float err_x_
 
float err_y_
 
float err_z_
 
unsigned int eventID_
 
float sigma_z_
 
unsigned int sourceID_
 
unsigned int trigType_
 
int version_
 
float width_x_
 
float width_y_
 
float x_
 
float y_
 
float z_
 

Detailed Description

Definition at line 28 of file BeamSpotOnline.h.

Constructor & Destructor Documentation

◆ BeamSpotOnline() [1/2]

BeamSpotOnline::BeamSpotOnline ( )

Definition at line 10 of file BeamSpotOnline.cc.

11  : trigType_(0),
12  eventID_(0),
13  sourceID_(0),
14  bunchNumber_(0),
15  version_(0),
16  collectionTime_(0, 0),
17  x_((float)0.0),
18  y_((float)0.0),
19  z_((float)0.0),
20  dxdz_((float)0.0),
21  dydz_((float)0.0),
22  err_x_((float)0.0),
23  err_y_((float)0.0),
24  err_z_((float)0.0),
25  err_dxdz_((float)0.0),
26  err_dydz_((float)0.0),
27  width_x_((float)0.0),
28  width_y_((float)0.0),
29  sigma_z_((float)0.0),
30  err_width_x_((float)0.0),
31  err_width_y_((float)0.0),
32  err_sigma_z_((float)0.0) {}

Referenced by BeamSpotOnline().

◆ BeamSpotOnline() [2/2]

BeamSpotOnline::BeamSpotOnline ( const unsigned char *  rawData)

Definition at line 34 of file BeamSpotOnline.cc.

34  {
36 
37  struct ScalersEventRecordRaw_v4 const* raw = reinterpret_cast<struct ScalersEventRecordRaw_v4 const*>(rawData);
38  trigType_ = (raw->header >> 56) & 0xFULL;
39  eventID_ = (raw->header >> 32) & 0x00FFFFFFULL;
40  sourceID_ = (raw->header >> 8) & 0x00000FFFULL;
41  bunchNumber_ = (raw->header >> 20) & 0xFFFULL;
42 
43  version_ = raw->version;
44  if (version_ >= 4) {
47  x_ = raw->beamSpotOnline.x;
48  y_ = raw->beamSpotOnline.y;
49  z_ = raw->beamSpotOnline.z;
50  dxdz_ = raw->beamSpotOnline.dxdz;
51  dydz_ = raw->beamSpotOnline.dydz;
63  }
64 }

References BeamSpotOnline(), ScalersEventRecordRaw_v4::beamSpotOnline, bunchNumber_, collectionTime_, BeamSpotOnlineRaw_v4::collectionTime_nsec, BeamSpotOnlineRaw_v4::collectionTime_sec, watchdog::const, BeamSpotOnlineRaw_v4::dxdz, dxdz_, BeamSpotOnlineRaw_v4::dydz, dydz_, BeamSpotOnlineRaw_v4::err_dxdz, err_dxdz_, BeamSpotOnlineRaw_v4::err_dydz, err_dydz_, BeamSpotOnlineRaw_v4::err_sigma_z, err_sigma_z_, BeamSpotOnlineRaw_v4::err_width_x, err_width_x_, BeamSpotOnlineRaw_v4::err_width_y, err_width_y_, BeamSpotOnlineRaw_v4::err_x, err_x_, BeamSpotOnlineRaw_v4::err_y, err_y_, BeamSpotOnlineRaw_v4::err_z, err_z_, eventID_, ScalersEventRecordRaw_v4::header, l1tstage2_dqm_sourceclient-live_cfg::rawData, TimeSpec::set_tv_nsec(), TimeSpec::set_tv_sec(), BeamSpotOnlineRaw_v4::sigma_z, sigma_z_, sourceID_, trigType_, ScalersEventRecordRaw_v4::version, version_, BeamSpotOnlineRaw_v4::width_x, width_x_, BeamSpotOnlineRaw_v4::width_y, width_y_, BeamSpotOnlineRaw_v4::x, x_, BeamSpotOnlineRaw_v4::y, y_, BeamSpotOnlineRaw_v4::z, and z_.

◆ ~BeamSpotOnline()

BeamSpotOnline::~BeamSpotOnline ( )
virtual

Definition at line 66 of file BeamSpotOnline.cc.

66 {}

Member Function Documentation

◆ bunchNumber()

unsigned int BeamSpotOnline::bunchNumber ( ) const
inline

Definition at line 43 of file BeamSpotOnline.h.

43 { return (bunchNumber_); }

References bunchNumber_.

◆ collectionTime()

timespec BeamSpotOnline::collectionTime ( ) const
inline

Definition at line 46 of file BeamSpotOnline.h.

46 { return (collectionTime_.get_timespec()); }

References collectionTime_, and TimeSpec::get_timespec().

◆ dxdz()

float BeamSpotOnline::dxdz ( ) const
inline

Definition at line 51 of file BeamSpotOnline.h.

51 { return (dxdz_); }

References dxdz_.

Referenced by BeamSpotOnlineProducer::produce().

◆ dydz()

float BeamSpotOnline::dydz ( ) const
inline

Definition at line 52 of file BeamSpotOnline.h.

52 { return (dydz_); }

References dydz_.

Referenced by BeamSpotOnlineProducer::produce().

◆ empty()

bool BeamSpotOnline::empty ( ) const
inline

empty method (= false)

Definition at line 38 of file BeamSpotOnline.h.

38 { return false; }

◆ err_dxdz()

float BeamSpotOnline::err_dxdz ( ) const
inline

Definition at line 56 of file BeamSpotOnline.h.

56 { return (err_dxdz_); }

References err_dxdz_.

◆ err_dydz()

float BeamSpotOnline::err_dydz ( ) const
inline

Definition at line 57 of file BeamSpotOnline.h.

57 { return (err_dydz_); }

References err_dydz_.

◆ err_sigma_z()

float BeamSpotOnline::err_sigma_z ( ) const
inline

Definition at line 63 of file BeamSpotOnline.h.

63 { return (err_sigma_z_); }

References err_sigma_z_.

Referenced by BeamSpotOnlineProducer::produce().

◆ err_width_x()

float BeamSpotOnline::err_width_x ( ) const
inline

Definition at line 61 of file BeamSpotOnline.h.

61 { return (err_width_x_); }

References err_width_x_.

◆ err_width_y()

float BeamSpotOnline::err_width_y ( ) const
inline

Definition at line 62 of file BeamSpotOnline.h.

62 { return (err_width_y_); }

References err_width_y_.

◆ err_x()

float BeamSpotOnline::err_x ( ) const
inline

Definition at line 53 of file BeamSpotOnline.h.

53 { return (err_x_); }

References err_x_.

Referenced by FWBeamSpotOnlineProxyBuilder::build(), and BeamSpotOnlineProducer::produce().

◆ err_y()

float BeamSpotOnline::err_y ( ) const
inline

Definition at line 54 of file BeamSpotOnline.h.

54 { return (err_y_); }

References err_y_.

Referenced by FWBeamSpotOnlineProxyBuilder::build(), and BeamSpotOnlineProducer::produce().

◆ err_z()

float BeamSpotOnline::err_z ( ) const
inline

Definition at line 55 of file BeamSpotOnline.h.

55 { return (err_z_); }

References err_z_.

Referenced by FWBeamSpotOnlineProxyBuilder::build(), and BeamSpotOnlineProducer::produce().

◆ eventID()

unsigned int BeamSpotOnline::eventID ( ) const
inline

Definition at line 41 of file BeamSpotOnline.h.

41 { return (eventID_); }

References eventID_.

◆ name()

std::string BeamSpotOnline::name ( ) const
inline

name method

Definition at line 35 of file BeamSpotOnline.h.

35 { return "BeamSpotOnline"; }

Referenced by config.CFG::__str__(), validation.Sample::digest(), and VIDSelectorBase.VIDSelectorBase::initialize().

◆ operator!=()

int BeamSpotOnline::operator!= ( const BeamSpotOnline e) const
inline

inequality operator

Definition at line 69 of file BeamSpotOnline.h.

69 { return false; }

◆ operator==()

int BeamSpotOnline::operator== ( const BeamSpotOnline e) const
inline

equality operator

Definition at line 66 of file BeamSpotOnline.h.

66 { return false; }

◆ sigma_z()

float BeamSpotOnline::sigma_z ( ) const
inline

Definition at line 60 of file BeamSpotOnline.h.

60 { return (sigma_z_); }

References sigma_z_.

Referenced by BeamSpotOnlineProducer::produce().

◆ sourceID()

unsigned int BeamSpotOnline::sourceID ( ) const
inline

Definition at line 42 of file BeamSpotOnline.h.

42 { return (sourceID_); }

References sourceID_.

◆ trigType()

unsigned int BeamSpotOnline::trigType ( ) const
inline

Definition at line 40 of file BeamSpotOnline.h.

40 { return (trigType_); }

References trigType_.

◆ version()

int BeamSpotOnline::version ( ) const
inline

Definition at line 45 of file BeamSpotOnline.h.

45 { return (version_); }

References version_.

Referenced by validation.Sample::datasetpattern(), and validation.Sample::filename().

◆ width_x()

float BeamSpotOnline::width_x ( ) const
inline

Definition at line 58 of file BeamSpotOnline.h.

58 { return (width_x_); }

References width_x_.

Referenced by BeamSpotProblemMonitor::analyze(), and BeamSpotOnlineProducer::produce().

◆ width_y()

float BeamSpotOnline::width_y ( ) const
inline

Definition at line 59 of file BeamSpotOnline.h.

59 { return (width_y_); }

References width_y_.

Referenced by BeamSpotProblemMonitor::analyze(), and BeamSpotOnlineProducer::produce().

◆ x()

float BeamSpotOnline::x ( ) const
inline

◆ y()

float BeamSpotOnline::y ( ) const
inline

◆ z()

float BeamSpotOnline::z ( ) const
inline

Member Data Documentation

◆ bunchNumber_

unsigned int BeamSpotOnline::bunchNumber_
protected

Definition at line 75 of file BeamSpotOnline.h.

Referenced by BeamSpotOnline(), and bunchNumber().

◆ collectionTime_

TimeSpec BeamSpotOnline::collectionTime_
protected

Definition at line 79 of file BeamSpotOnline.h.

Referenced by BeamSpotOnline(), and collectionTime().

◆ dxdz_

float BeamSpotOnline::dxdz_
protected

Definition at line 83 of file BeamSpotOnline.h.

Referenced by BeamSpotOnline(), and dxdz().

◆ dydz_

float BeamSpotOnline::dydz_
protected

Definition at line 84 of file BeamSpotOnline.h.

Referenced by BeamSpotOnline(), and dydz().

◆ err_dxdz_

float BeamSpotOnline::err_dxdz_
protected

Definition at line 88 of file BeamSpotOnline.h.

Referenced by BeamSpotOnline(), and err_dxdz().

◆ err_dydz_

float BeamSpotOnline::err_dydz_
protected

Definition at line 89 of file BeamSpotOnline.h.

Referenced by BeamSpotOnline(), and err_dydz().

◆ err_sigma_z_

float BeamSpotOnline::err_sigma_z_
protected

Definition at line 95 of file BeamSpotOnline.h.

Referenced by BeamSpotOnline(), and err_sigma_z().

◆ err_width_x_

float BeamSpotOnline::err_width_x_
protected

Definition at line 93 of file BeamSpotOnline.h.

Referenced by BeamSpotOnline(), and err_width_x().

◆ err_width_y_

float BeamSpotOnline::err_width_y_
protected

Definition at line 94 of file BeamSpotOnline.h.

Referenced by BeamSpotOnline(), and err_width_y().

◆ err_x_

float BeamSpotOnline::err_x_
protected

Definition at line 85 of file BeamSpotOnline.h.

Referenced by BeamSpotOnline(), and err_x().

◆ err_y_

float BeamSpotOnline::err_y_
protected

Definition at line 86 of file BeamSpotOnline.h.

Referenced by BeamSpotOnline(), and err_y().

◆ err_z_

float BeamSpotOnline::err_z_
protected

Definition at line 87 of file BeamSpotOnline.h.

Referenced by BeamSpotOnline(), and err_z().

◆ eventID_

unsigned int BeamSpotOnline::eventID_
protected

Definition at line 73 of file BeamSpotOnline.h.

Referenced by BeamSpotOnline(), and eventID().

◆ sigma_z_

float BeamSpotOnline::sigma_z_
protected

Definition at line 92 of file BeamSpotOnline.h.

Referenced by BeamSpotOnline(), and sigma_z().

◆ sourceID_

unsigned int BeamSpotOnline::sourceID_
protected

Definition at line 74 of file BeamSpotOnline.h.

Referenced by BeamSpotOnline(), and sourceID().

◆ trigType_

unsigned int BeamSpotOnline::trigType_
protected

Definition at line 72 of file BeamSpotOnline.h.

Referenced by BeamSpotOnline(), and trigType().

◆ version_

int BeamSpotOnline::version_
protected

Definition at line 77 of file BeamSpotOnline.h.

Referenced by BeamSpotOnline(), and version().

◆ width_x_

float BeamSpotOnline::width_x_
protected

Definition at line 90 of file BeamSpotOnline.h.

Referenced by BeamSpotOnline(), and width_x().

◆ width_y_

float BeamSpotOnline::width_y_
protected

Definition at line 91 of file BeamSpotOnline.h.

Referenced by BeamSpotOnline(), and width_y().

◆ x_

float BeamSpotOnline::x_
protected

Definition at line 80 of file BeamSpotOnline.h.

Referenced by BeamSpotOnline(), and x().

◆ y_

float BeamSpotOnline::y_
protected

Definition at line 81 of file BeamSpotOnline.h.

Referenced by BeamSpotOnline(), and y().

◆ z_

float BeamSpotOnline::z_
protected

Definition at line 82 of file BeamSpotOnline.h.

Referenced by BeamSpotOnline(), and z().

BeamSpotOnline::trigType_
unsigned int trigType_
Definition: BeamSpotOnline.h:72
ScalersEventRecordRaw_v4
Definition: ScalersRaw.h:210
BeamSpotOnline::BeamSpotOnline
BeamSpotOnline()
Definition: BeamSpotOnline.cc:10
BeamSpotOnlineRaw_v4::err_y
float err_y
Definition: ScalersRaw.h:161
BeamSpotOnline::collectionTime_
TimeSpec collectionTime_
Definition: BeamSpotOnline.h:79
BeamSpotOnline::bunchNumber_
unsigned int bunchNumber_
Definition: BeamSpotOnline.h:75
BeamSpotOnlineRaw_v4::err_sigma_z
float err_sigma_z
Definition: ScalersRaw.h:170
BeamSpotOnlineRaw_v4::err_width_x
float err_width_x
Definition: ScalersRaw.h:168
BeamSpotOnline::err_width_x_
float err_width_x_
Definition: BeamSpotOnline.h:93
BeamSpotOnline::width_y_
float width_y_
Definition: BeamSpotOnline.h:91
BeamSpotOnline::sourceID_
unsigned int sourceID_
Definition: BeamSpotOnline.h:74
BeamSpotOnline::z_
float z_
Definition: BeamSpotOnline.h:82
BeamSpotOnline::err_dxdz_
float err_dxdz_
Definition: BeamSpotOnline.h:88
BeamSpotOnlineRaw_v4::collectionTime_nsec
unsigned int collectionTime_nsec
Definition: ScalersRaw.h:154
l1tstage2_dqm_sourceclient-live_cfg.rawData
rawData
Definition: l1tstage2_dqm_sourceclient-live_cfg.py:156
BeamSpotOnline::eventID_
unsigned int eventID_
Definition: BeamSpotOnline.h:73
TimeSpec::set_tv_nsec
void set_tv_nsec(long value)
Definition: TimeSpec.h:19
TimeSpec::get_timespec
timespec get_timespec() const
Definition: TimeSpec.cc:4
watchdog.const
const
Definition: watchdog.py:83
TimeSpec::set_tv_sec
void set_tv_sec(long value)
Definition: TimeSpec.h:18
BeamSpotOnline::y_
float y_
Definition: BeamSpotOnline.h:81
BeamSpotOnlineRaw_v4::z
float z
Definition: ScalersRaw.h:157
BeamSpotOnline::x_
float x_
Definition: BeamSpotOnline.h:80
BeamSpotOnlineRaw_v4::err_z
float err_z
Definition: ScalersRaw.h:162
BeamSpotOnline::err_width_y_
float err_width_y_
Definition: BeamSpotOnline.h:94
BeamSpotOnline::sigma_z_
float sigma_z_
Definition: BeamSpotOnline.h:92
BeamSpotOnlineRaw_v4::dydz
float dydz
Definition: ScalersRaw.h:159
BeamSpotOnline::dydz_
float dydz_
Definition: BeamSpotOnline.h:84
BeamSpotOnlineRaw_v4::width_y
float width_y
Definition: ScalersRaw.h:166
BeamSpotOnlineRaw_v4::sigma_z
float sigma_z
Definition: ScalersRaw.h:167
BeamSpotOnlineRaw_v4::collectionTime_sec
unsigned int collectionTime_sec
Definition: ScalersRaw.h:153
BeamSpotOnlineRaw_v4::y
float y
Definition: ScalersRaw.h:156
BeamSpotOnline::width_x_
float width_x_
Definition: BeamSpotOnline.h:90
BeamSpotOnline::err_dydz_
float err_dydz_
Definition: BeamSpotOnline.h:89
BeamSpotOnlineRaw_v4::err_x
float err_x
Definition: ScalersRaw.h:160
BeamSpotOnline::err_y_
float err_y_
Definition: BeamSpotOnline.h:86
BeamSpotOnline::err_z_
float err_z_
Definition: BeamSpotOnline.h:87
BeamSpotOnline::err_sigma_z_
float err_sigma_z_
Definition: BeamSpotOnline.h:95
BeamSpotOnlineRaw_v4::err_width_y
float err_width_y
Definition: ScalersRaw.h:169
ScalersEventRecordRaw_v4::header
unsigned long long header
Definition: ScalersRaw.h:211
ScalersEventRecordRaw_v4::version
int version
Definition: ScalersRaw.h:212
BeamSpotOnline::err_x_
float err_x_
Definition: BeamSpotOnline.h:85
BeamSpotOnlineRaw_v4::err_dxdz
float err_dxdz
Definition: ScalersRaw.h:163
ScalersEventRecordRaw_v4::beamSpotOnline
struct BeamSpotOnlineRaw_v4 beamSpotOnline
Definition: ScalersRaw.h:215
BeamSpotOnlineRaw_v4::dxdz
float dxdz
Definition: ScalersRaw.h:158
BeamSpotOnlineRaw_v4::err_dydz
float err_dydz
Definition: ScalersRaw.h:164
BeamSpotOnline::version_
int version_
Definition: BeamSpotOnline.h:77
BeamSpotOnline::dxdz_
float dxdz_
Definition: BeamSpotOnline.h:83
BeamSpotOnlineRaw_v4::x
float x
Definition: ScalersRaw.h:155
BeamSpotOnlineRaw_v4::width_x
float width_x
Definition: ScalersRaw.h:165