CMS 3D CMS Logo

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

#include <BeamSpotOnline.h>

Classes

class  h
 Persistable copy of online BeamSpotOnline value. More...
 

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.

Referenced by BeamSpotOnline().

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) {}
unsigned int eventID_
TimeSpec collectionTime_
unsigned int sourceID_
unsigned int trigType_
unsigned int bunchNumber_

◆ BeamSpotOnline() [2/2]

BeamSpotOnline::BeamSpotOnline ( const unsigned char *  rawData)

Definition at line 34 of file BeamSpotOnline.cc.

References BeamSpotOnline(), ScalersEventRecordRaw_v4::beamSpotOnline, bunchNumber_, collectionTime_, BeamSpotOnlineRaw_v4::collectionTime_nsec, BeamSpotOnlineRaw_v4::collectionTime_sec, runTheMatrix::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_.

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 }
unsigned int eventID_
void set_tv_nsec(long value)
Definition: TimeSpec.h:19
unsigned int collectionTime_nsec
Definition: ScalersRaw.h:154
unsigned int collectionTime_sec
Definition: ScalersRaw.h:153
struct BeamSpotOnlineRaw_v4 beamSpotOnline
Definition: ScalersRaw.h:215
TimeSpec collectionTime_
unsigned long long header
Definition: ScalersRaw.h:211
void set_tv_sec(long value)
Definition: TimeSpec.h:18
unsigned int sourceID_
unsigned int trigType_
unsigned int bunchNumber_

◆ ~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.

References bunchNumber_.

43 { return (bunchNumber_); }
unsigned int bunchNumber_

◆ collectionTime()

timespec BeamSpotOnline::collectionTime ( ) const
inline

Definition at line 46 of file BeamSpotOnline.h.

References collectionTime_, and TimeSpec::get_timespec().

46 { return (collectionTime_.get_timespec()); }
TimeSpec collectionTime_
timespec get_timespec() const
Definition: TimeSpec.cc:4

◆ dxdz()

float BeamSpotOnline::dxdz ( ) const
inline

Definition at line 51 of file BeamSpotOnline.h.

References dxdz_.

Referenced by BeamSpotOnlineProducer::produce().

51 { return (dxdz_); }

◆ dydz()

float BeamSpotOnline::dydz ( ) const
inline

Definition at line 52 of file BeamSpotOnline.h.

References dydz_.

Referenced by BeamSpotOnlineProducer::produce().

52 { return (dydz_); }

◆ 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.

References err_dxdz_.

56 { return (err_dxdz_); }

◆ err_dydz()

float BeamSpotOnline::err_dydz ( ) const
inline

Definition at line 57 of file BeamSpotOnline.h.

References err_dydz_.

57 { return (err_dydz_); }

◆ err_sigma_z()

float BeamSpotOnline::err_sigma_z ( ) const
inline

Definition at line 63 of file BeamSpotOnline.h.

References err_sigma_z_.

Referenced by BeamSpotOnlineProducer::produce().

63 { return (err_sigma_z_); }

◆ err_width_x()

float BeamSpotOnline::err_width_x ( ) const
inline

Definition at line 61 of file BeamSpotOnline.h.

References err_width_x_.

61 { return (err_width_x_); }

◆ err_width_y()

float BeamSpotOnline::err_width_y ( ) const
inline

Definition at line 62 of file BeamSpotOnline.h.

References err_width_y_.

62 { return (err_width_y_); }

◆ err_x()

float BeamSpotOnline::err_x ( ) const
inline

Definition at line 53 of file BeamSpotOnline.h.

References err_x_.

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

53 { return (err_x_); }

◆ err_y()

float BeamSpotOnline::err_y ( ) const
inline

Definition at line 54 of file BeamSpotOnline.h.

References err_y_.

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

54 { return (err_y_); }

◆ err_z()

float BeamSpotOnline::err_z ( ) const
inline

Definition at line 55 of file BeamSpotOnline.h.

References err_z_.

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

55 { return (err_z_); }

◆ eventID()

unsigned int BeamSpotOnline::eventID ( ) const
inline

Definition at line 41 of file BeamSpotOnline.h.

References eventID_.

41 { return (eventID_); }
unsigned int eventID_

◆ name()

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

name method

Definition at line 35 of file BeamSpotOnline.h.

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

35 { return "BeamSpotOnline"; }

◆ 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.

References sigma_z_.

Referenced by BeamSpotOnlineProducer::produce().

60 { return (sigma_z_); }

◆ sourceID()

unsigned int BeamSpotOnline::sourceID ( ) const
inline

Definition at line 42 of file BeamSpotOnline.h.

References sourceID_.

42 { return (sourceID_); }
unsigned int sourceID_

◆ trigType()

unsigned int BeamSpotOnline::trigType ( ) const
inline

Definition at line 40 of file BeamSpotOnline.h.

References trigType_.

40 { return (trigType_); }
unsigned int trigType_

◆ version()

int BeamSpotOnline::version ( ) const
inline

Definition at line 45 of file BeamSpotOnline.h.

References version_.

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

45 { return (version_); }

◆ width_x()

float BeamSpotOnline::width_x ( ) const
inline

Definition at line 58 of file BeamSpotOnline.h.

References width_x_.

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

58 { return (width_x_); }

◆ width_y()

float BeamSpotOnline::width_y ( ) const
inline

Definition at line 59 of file BeamSpotOnline.h.

References width_y_.

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

59 { return (width_y_); }

◆ 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().