CMS 3D CMS Logo

BeamSpotOnline.h
Go to the documentation of this file.
1 /*
2  * File: DataFormats/Scalers/interface/BeamSpotOnline.h (W.Badgett)
3  *
4  * The online computed BeamSpotOnline value
5  *
6  */
7 
8 #ifndef DATAFORMATS_SCALERS_BEAMSPOT_H
9 #define DATAFORMATS_SCALERS_BEAMSPOT_H
10 
12 
13 #include <ctime>
14 #include <iosfwd>
15 #include <vector>
16 #include <string>
17 
25 
29 public:
31  BeamSpotOnline(const unsigned char* rawData);
32  virtual ~BeamSpotOnline();
33 
35  std::string name() const { return "BeamSpotOnline"; }
36 
38  bool empty() const { return false; }
39 
40  unsigned int trigType() const { return (trigType_); }
41  unsigned int eventID() const { return (eventID_); }
42  unsigned int sourceID() const { return (sourceID_); }
43  unsigned int bunchNumber() const { return (bunchNumber_); }
44 
45  int version() const { return (version_); }
46  timespec collectionTime() const { return (collectionTime_.get_timespec()); }
47 
48  float x() const { return (x_); }
49  float y() const { return (y_); }
50  float z() const { return (z_); }
51  float dxdz() const { return (dxdz_); }
52  float dydz() const { return (dydz_); }
53  float err_x() const { return (err_x_); }
54  float err_y() const { return (err_y_); }
55  float err_z() const { return (err_z_); }
56  float err_dxdz() const { return (err_dxdz_); }
57  float err_dydz() const { return (err_dydz_); }
58  float width_x() const { return (width_x_); }
59  float width_y() const { return (width_y_); }
60  float sigma_z() const { return (sigma_z_); }
61  float err_width_x() const { return (err_width_x_); }
62  float err_width_y() const { return (err_width_y_); }
63  float err_sigma_z() const { return (err_sigma_z_); }
64 
66  int operator==(const BeamSpotOnline& e) const { return false; }
67 
69  int operator!=(const BeamSpotOnline& e) const { return false; }
70 
71 protected:
72  unsigned int trigType_;
73  unsigned int eventID_;
74  unsigned int sourceID_;
75  unsigned int bunchNumber_;
76 
77  int version_;
78 
80  float x_;
81  float y_;
82  float z_;
83  float dxdz_;
84  float dydz_;
85  float err_x_;
86  float err_y_;
87  float err_z_;
88  float err_dxdz_;
89  float err_dydz_;
90  float width_x_;
91  float width_y_;
92  float sigma_z_;
93  float err_width_x_;
94  float err_width_y_;
95  float err_sigma_z_;
96 };
97 
99 std::ostream& operator<<(std::ostream& s, const BeamSpotOnline& c);
100 
101 typedef std::vector<BeamSpotOnline> BeamSpotOnlineCollection;
102 
103 #endif
BeamSpotOnline::x
float x() const
Definition: BeamSpotOnline.h:48
BeamSpotOnline::~BeamSpotOnline
virtual ~BeamSpotOnline()
Definition: BeamSpotOnline.cc:66
BeamSpotOnline::trigType_
unsigned int trigType_
Definition: BeamSpotOnline.h:72
BeamSpotOnline::collectionTime
timespec collectionTime() const
Definition: BeamSpotOnline.h:46
BeamSpotOnline::empty
bool empty() const
empty method (= false)
Definition: BeamSpotOnline.h:38
BeamSpotOnline::sourceID
unsigned int sourceID() const
Definition: BeamSpotOnline.h:42
BeamSpotOnline::BeamSpotOnline
BeamSpotOnline()
Definition: BeamSpotOnline.cc:10
BeamSpotOnline::collectionTime_
TimeSpec collectionTime_
Definition: BeamSpotOnline.h:79
BeamSpotOnline::bunchNumber_
unsigned int bunchNumber_
Definition: BeamSpotOnline.h:75
BeamSpotOnline::err_y
float err_y() const
Definition: BeamSpotOnline.h:54
BeamSpotOnline::err_width_x_
float err_width_x_
Definition: BeamSpotOnline.h:93
BeamSpotOnline::width_y_
float width_y_
Definition: BeamSpotOnline.h:91
BeamSpotOnline::err_z
float err_z() const
Definition: BeamSpotOnline.h:55
BeamSpotOnline::dxdz
float dxdz() const
Definition: BeamSpotOnline.h:51
BeamSpotOnline::y
float y() const
Definition: BeamSpotOnline.h:49
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
l1tstage2_dqm_sourceclient-live_cfg.rawData
rawData
Definition: l1tstage2_dqm_sourceclient-live_cfg.py:156
BeamSpotOnline::dydz
float dydz() const
Definition: BeamSpotOnline.h:52
BeamSpotOnline::eventID_
unsigned int eventID_
Definition: BeamSpotOnline.h:73
TimeSpec::get_timespec
timespec get_timespec() const
Definition: TimeSpec.cc:4
operator<<
std::ostream & operator<<(std::ostream &s, const BeamSpotOnline &c)
Pretty-print operator for BeamSpotOnline.
Definition: BeamSpotOnline.cc:69
BeamSpotOnline::err_sigma_z
float err_sigma_z() const
Definition: BeamSpotOnline.h:63
BeamSpotOnline::width_x
float width_x() const
Definition: BeamSpotOnline.h:58
BeamSpotOnline::version
int version() const
Definition: BeamSpotOnline.h:45
BeamSpotOnline::err_width_x
float err_width_x() const
Definition: BeamSpotOnline.h:61
BeamSpotOnline::err_x
float err_x() const
Definition: BeamSpotOnline.h:53
BeamSpotOnline::trigType
unsigned int trigType() const
Definition: BeamSpotOnline.h:40
alignCSCRings.s
s
Definition: alignCSCRings.py:92
BeamSpotOnline::y_
float y_
Definition: BeamSpotOnline.h:81
BeamSpotOnline::sigma_z
float sigma_z() const
Definition: BeamSpotOnline.h:60
BeamSpotOnline::bunchNumber
unsigned int bunchNumber() const
Definition: BeamSpotOnline.h:43
BeamSpotOnline::err_dxdz
float err_dxdz() const
Definition: BeamSpotOnline.h:56
BeamSpotOnline::x_
float x_
Definition: BeamSpotOnline.h:80
AlCaHLTBitMon_QueryRunRegistry.string
string
Definition: AlCaHLTBitMon_QueryRunRegistry.py:256
BeamSpotOnline::err_width_y_
float err_width_y_
Definition: BeamSpotOnline.h:94
BeamSpotOnline::sigma_z_
float sigma_z_
Definition: BeamSpotOnline.h:92
BeamSpotOnline::err_dydz
float err_dydz() const
Definition: BeamSpotOnline.h:57
BeamSpotOnline::name
std::string name() const
name method
Definition: BeamSpotOnline.h:35
BeamSpotOnline::dydz_
float dydz_
Definition: BeamSpotOnline.h:84
BeamSpotOnline::width_x_
float width_x_
Definition: BeamSpotOnline.h:90
BeamSpotOnline::err_dydz_
float err_dydz_
Definition: BeamSpotOnline.h:89
BeamSpotOnline::err_y_
float err_y_
Definition: BeamSpotOnline.h:86
BeamSpotOnline::err_z_
float err_z_
Definition: BeamSpotOnline.h:87
HltBtagPostValidation_cff.c
c
Definition: HltBtagPostValidation_cff.py:31
BeamSpotOnline::err_sigma_z_
float err_sigma_z_
Definition: BeamSpotOnline.h:95
BeamSpotOnline
Definition: BeamSpotOnline.h:28
BeamSpotOnline::operator!=
int operator!=(const BeamSpotOnline &e) const
inequality operator
Definition: BeamSpotOnline.h:69
BeamSpotOnline::width_y
float width_y() const
Definition: BeamSpotOnline.h:59
TimeSpec.h
BeamSpotOnline::err_width_y
float err_width_y() const
Definition: BeamSpotOnline.h:62
BeamSpotOnline::err_x_
float err_x_
Definition: BeamSpotOnline.h:85
BeamSpotOnlineCollection
std::vector< BeamSpotOnline > BeamSpotOnlineCollection
Definition: BeamSpotOnline.h:101
BeamSpotOnline::eventID
unsigned int eventID() const
Definition: BeamSpotOnline.h:41
TimeSpec
Definition: TimeSpec.h:7
BeamSpotOnline::z
float z() const
Definition: BeamSpotOnline.h:50
BeamSpotOnline::operator==
int operator==(const BeamSpotOnline &e) const
equality operator
Definition: BeamSpotOnline.h:66
BeamSpotOnline::version_
int version_
Definition: BeamSpotOnline.h:77
BeamSpotOnline::dxdz_
float dxdz_
Definition: BeamSpotOnline.h:83
MillePedeFileConverter_cfg.e
e
Definition: MillePedeFileConverter_cfg.py:37