CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
SiStripEventSummary.h
Go to the documentation of this file.
1 // Last commit: $Id: SiStripEventSummary.h,v 1.10 2008/06/09 12:55:03 delaer Exp $
2 
3 #ifndef DataFormats_SiStripEventSummary_SiStripEventSummary_H
4 #define DataFormats_SiStripEventSummary_SiStripEventSummary_H
5 
7 #include <sstream>
8 #include <vector>
9 
11 
13 std::ostream& operator<< ( std::ostream&, const SiStripEventSummary& );
14 
24 
25  public:
26 
27  // ---------- Constructors, destructors ----------
28 
31 
34 
35  // ---------- General information ----------
36 
39  inline bool valid() const;
40 
42  inline uint16_t triggerFed() const;
43 
45  inline bool isSet() const;
46 
47  // ---------- Run and event-related info ----------
48 
50  inline const sistrip::RunType& runType() const;
51 
53  inline const uint32_t& event() const;
54 
56  inline const uint32_t& bx() const;
57 
58  // ---------- Hardware-related info ----------
59 
61  inline const sistrip::FedReadoutMode& fedReadoutMode() const;
62 
64  inline const sistrip::ApvReadoutMode& apvReadoutMode() const;
65 
67  inline const uint16_t& apveAddress() const;
68 
70  inline const uint32_t& nApvsInSync() const;
71 
73  inline const uint32_t& nApvsOutOfSync() const;
74 
76  inline const uint32_t& nApvsErrors() const;
77 
78  // ---------- Commissioning info ----------
79 
81  inline bool nullParams() const;
82 
84  inline const std::vector<uint32_t>& params() const;
85 
87  inline const uint32_t& binNumber() const;
88 
90  inline const uint32_t& pllCoarse() const;
91 
93  inline const uint32_t& pllFine() const;
94 
96  inline const uint32_t& latency() const;
97 
99  inline const uint32_t& calChan() const;
100 
102  inline const uint32_t& calSel() const;
103 
105  inline const uint32_t& isha() const;
106 
108  inline const uint32_t& vfs() const;
109 
111  inline const uint32_t& ttcrx() const;
112 
114  inline const uint32_t& vpsp() const;
115 
117  inline const uint32_t& vpspCcuChan() const;
118 
120  inline const uint32_t& lldGain() const;
121 
123  inline const uint32_t& lldBias() const;
124 
126  inline const uint32_t& deviceId() const;
127 
129  inline const uint32_t& processId() const;
130 
132  inline const uint32_t& processIp() const;
133 
135  inline const uint32_t& dcuId() const;
136 
138  inline const uint32_t& layerScanned() const;
139 
140  // ---------- Setter methods ----------
141 
143  void commissioningInfo( const uint32_t* const buffer,
144  const uint32_t& event );
145 
147  void commissioningInfo( const uint32_t& daq_register1,
148  const uint32_t& daq_register2 );
149 
151  inline void triggerFed( const int16_t& );
152 
154  void fedReadoutMode( const uint16_t& );
155 
157  inline void event( const uint32_t& );
158 
160  inline void bx( const uint32_t& );
161 
162  inline void apveAddress( uint16_t& addr );
163  inline void nApvsInSync( uint32_t& napvs_in_sync );
164  inline void nApvsOutOfSync( uint32_t& napvs_out_of_sync );
165  inline void nApvsErrors( uint32_t& napvs_with_errors );
166 
167  private:
168 
169  // ---------- General info ----------
170 
172  bool valid_;
173 
175  uint16_t triggerFed_;
176 
177 
178  // ---------- Run- and event-related info ----------
179 
182 
184  uint32_t event_;
185 
187  uint32_t bx_;
188 
190  uint32_t spillNumber_;
191 
193  uint32_t nDataSenders_;
194 
195  // ---------- Hardware-related info ----------
196 
199 
202 
204  uint16_t apveAddress_;
205 
207  uint32_t nApvsInSync_;
208 
210  uint32_t nApvsOutOfSync_;
211 
213  uint32_t nApvsErrors_;
214 
216  std::vector<uint32_t> params_;
217 
218 };
219 
220 // ---------- inline methods ----------
221 
222 bool SiStripEventSummary::valid() const { return valid_; }
223 uint16_t SiStripEventSummary::triggerFed() const { return triggerFed_; }
224 bool SiStripEventSummary::isSet() const { return ( /* triggerFed_ > 0 && */ runType_ != sistrip::UNDEFINED_RUN_TYPE ); }
225 
227 const uint32_t& SiStripEventSummary::event() const { return event_; }
228 const uint32_t& SiStripEventSummary::bx() const { return bx_; }
229 
232 
233 const uint16_t& SiStripEventSummary::apveAddress() const { return apveAddress_; }
234 const uint32_t& SiStripEventSummary::nApvsInSync() const { return nApvsInSync_; }
235 const uint32_t& SiStripEventSummary::nApvsOutOfSync() const { return nApvsOutOfSync_; }
236 const uint32_t& SiStripEventSummary::nApvsErrors() const { return nApvsErrors_; }
237 
238 bool SiStripEventSummary::nullParams() const { return ( !params_[0] && !params_[1] && !params_[2] && !params_[3] ); }
239 const std::vector<uint32_t>& SiStripEventSummary::params() const { return params_; }
240 const uint32_t& SiStripEventSummary::binNumber() const { return params_[0]; }
241 const uint32_t& SiStripEventSummary::pllCoarse() const { return params_[0]; }
242 const uint32_t& SiStripEventSummary::pllFine() const { return params_[1]; }
243 const uint32_t& SiStripEventSummary::latency() const { return params_[0]; }
244 const uint32_t& SiStripEventSummary::calChan() const { return params_[1]; }
245 const uint32_t& SiStripEventSummary::calSel() const { return params_[2]; }
246 const uint32_t& SiStripEventSummary::isha() const { return params_[3]; }
247 const uint32_t& SiStripEventSummary::vfs() const { return params_[4]; }
248 const uint32_t& SiStripEventSummary::ttcrx() const { return params_[2]; }
249 const uint32_t& SiStripEventSummary::vpsp() const { return params_[0]; }
250 const uint32_t& SiStripEventSummary::vpspCcuChan() const { return params_[1]; }
251 const uint32_t& SiStripEventSummary::lldGain() const { return params_[0]; }
252 const uint32_t& SiStripEventSummary::lldBias() const { return params_[1]; }
253 const uint32_t& SiStripEventSummary::deviceId() const { return params_[0]; }
254 const uint32_t& SiStripEventSummary::processId() const { return params_[1]; }
255 const uint32_t& SiStripEventSummary::processIp() const { return params_[2]; }
256 const uint32_t& SiStripEventSummary::dcuId() const { return params_[3]; }
257 const uint32_t& SiStripEventSummary::layerScanned() const { return params_[3]; }
258 
259 void SiStripEventSummary::triggerFed( const int16_t& fed ) { fed < 0 ? triggerFed_ = 0 : triggerFed_ = fed; }
260 void SiStripEventSummary::event( const uint32_t& event ) { event_ = event; }
261 void SiStripEventSummary::bx( const uint32_t& bx ) { bx_ = bx; }
262 
263 void SiStripEventSummary::apveAddress( uint16_t& addr ) { apveAddress_ = addr; }
264 void SiStripEventSummary::nApvsInSync( uint32_t& napvs_in_sync ) { nApvsInSync_ = napvs_in_sync; }
265 void SiStripEventSummary::nApvsOutOfSync( uint32_t& napvs_out_of_sync ) { nApvsOutOfSync_ = napvs_out_of_sync; }
266 void SiStripEventSummary::nApvsErrors( uint32_t& napvs_with_errors ) { nApvsErrors_ = napvs_with_errors; }
267 
268 #endif // DataFormats_SiStripEventSummary_SiStripEventSummary_H
269 
270 
271 
sistrip::FedReadoutMode fedReadoutMode_
const uint32_t & vfs() const
const uint32_t & nApvsOutOfSync() const
const uint32_t & latency() const
const uint32_t & layerScanned() const
const uint32_t & pllCoarse() const
std::ostream & operator<<(std::ostream &out, const ALILine &li)
Definition: ALILine.cc:187
const uint32_t & lldGain() const
const uint32_t & binNumber() const
const uint32_t & pllFine() const
const uint32_t & lldBias() const
const uint32_t & isha() const
const std::vector< uint32_t > & params() const
const sistrip::RunType & runType() const
const uint32_t & bx() const
sistrip::RunType runType_
const uint16_t & apveAddress() const
void commissioningInfo(const uint32_t *const buffer, const uint32_t &event)
const uint32_t & event() const
const uint32_t & nApvsErrors() const
const uint32_t & dcuId() const
How EventSelector::AcceptEvent() decides whether to accept an event for output otherwise it is excluding the probing of A single or multiple positive and the trigger will pass if any such matching triggers are PASS or EXCEPTION[A criterion thatmatches no triggers at all is detected and causes a throw.] A single negative with an expectation of appropriate bit checking in the decision and the trigger will pass if any such matching triggers are FAIL or EXCEPTION A wildcarded negative criterion that matches more than one trigger in the trigger but the state exists so we define the behavior If all triggers are the negative crieriion will lead to accepting the event(this again matches the behavior of"!*"before the partial wildcard feature was incorporated).The per-event"cost"of each negative criterion with multiple relevant triggers is about the same as!*was in the past
const uint32_t & nApvsInSync() const
const uint32_t & processId() const
const uint32_t & deviceId() const
const uint32_t & calSel() const
sistrip::ApvReadoutMode apvReadoutMode_
const uint32_t & vpspCcuChan() const
uint16_t triggerFed() const
const sistrip::FedReadoutMode & fedReadoutMode() const
const uint32_t & calChan() const
const sistrip::ApvReadoutMode & apvReadoutMode() const
const uint32_t & ttcrx() const
const uint32_t & vpsp() const
std::vector< uint32_t > params_
const uint32_t & processIp() const