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 
2 #ifndef DataFormats_SiStripEventSummary_SiStripEventSummary_H
3 #define DataFormats_SiStripEventSummary_SiStripEventSummary_H
4 
6 #include <sstream>
7 #include <vector>
8 
10 
12 std::ostream& operator<< ( std::ostream&, const SiStripEventSummary& );
13 
23 
24  public:
25 
26  // ---------- Constructors, destructors ----------
27 
30 
33 
34  // ---------- General information ----------
35 
38  inline bool valid() const;
39 
41  inline uint16_t triggerFed() const;
42 
44  inline bool isSet() const;
45 
46  // ---------- Run and event-related info ----------
47 
49  inline const sistrip::RunType& runType() const;
50 
52  inline const uint32_t& event() const;
53 
55  inline const uint32_t& bx() const;
56 
57  // ---------- Hardware-related info ----------
58 
60  inline const sistrip::FedReadoutMode& fedReadoutMode() const;
61 
63  inline const sistrip::ApvReadoutMode& apvReadoutMode() const;
64 
66  inline const uint16_t& apveAddress() const;
67 
69  inline const uint32_t& nApvsInSync() const;
70 
72  inline const uint32_t& nApvsOutOfSync() const;
73 
75  inline const uint32_t& nApvsErrors() const;
76 
77  // ---------- Commissioning info ----------
78 
80  inline bool nullParams() const;
81 
83  inline const std::vector<uint32_t>& params() const;
84 
86  inline const uint32_t& binNumber() const;
87 
89  inline const uint32_t& pllCoarse() const;
90 
92  inline const uint32_t& pllFine() const;
93 
95  inline const uint32_t& latency() const;
96 
98  inline const uint32_t& calChan() const;
99 
101  inline const uint32_t& calSel() const;
102 
104  inline const uint32_t& isha() const;
105 
107  inline const uint32_t& vfs() const;
108 
110  inline const uint32_t& ttcrx() const;
111 
113  inline const uint32_t& vpsp() const;
114 
116  inline const uint32_t& vpspCcuChan() const;
117 
119  inline const uint32_t& lldGain() const;
120 
122  inline const uint32_t& lldBias() const;
123 
125  inline const uint32_t& deviceId() const;
126 
128  inline const uint32_t& processId() const;
129 
131  inline const uint32_t& processIp() const;
132 
134  inline const uint32_t& dcuId() const;
135 
137  inline const uint32_t& layerScanned() const;
138 
139  // ---------- Setter methods ----------
140 
142  void commissioningInfo( const uint32_t* const buffer,
143  const uint32_t& event );
144 
146  void commissioningInfo( const uint32_t& daq_register1,
147  const uint32_t& daq_register2 );
148 
150  inline void triggerFed( const int16_t& );
151 
153  void fedReadoutMode( const uint16_t& );
154 
156  inline void event( const uint32_t& );
157 
159  inline void bx( const uint32_t& );
160 
161  inline void apveAddress( uint16_t& addr );
162  inline void nApvsInSync( uint32_t& napvs_in_sync );
163  inline void nApvsOutOfSync( uint32_t& napvs_out_of_sync );
164  inline void nApvsErrors( uint32_t& napvs_with_errors );
165 
166  private:
167 
168  // ---------- General info ----------
169 
171  bool valid_;
172 
174  uint16_t triggerFed_;
175 
176 
177  // ---------- Run- and event-related info ----------
178 
181 
183  uint32_t event_;
184 
186  uint32_t bx_;
187 
189  uint32_t spillNumber_;
190 
192  uint32_t nDataSenders_;
193 
194  // ---------- Hardware-related info ----------
195 
198 
201 
203  uint16_t apveAddress_;
204 
206  uint32_t nApvsInSync_;
207 
209  uint32_t nApvsOutOfSync_;
210 
212  uint32_t nApvsErrors_;
213 
215  std::vector<uint32_t> params_;
216 
217 };
218 
219 // ---------- inline methods ----------
220 
221 bool SiStripEventSummary::valid() const { return valid_; }
222 uint16_t SiStripEventSummary::triggerFed() const { return triggerFed_; }
223 bool SiStripEventSummary::isSet() const { return ( /* triggerFed_ > 0 && */ runType_ != sistrip::UNDEFINED_RUN_TYPE ); }
224 
226 const uint32_t& SiStripEventSummary::event() const { return event_; }
227 const uint32_t& SiStripEventSummary::bx() const { return bx_; }
228 
231 
232 const uint16_t& SiStripEventSummary::apveAddress() const { return apveAddress_; }
233 const uint32_t& SiStripEventSummary::nApvsInSync() const { return nApvsInSync_; }
234 const uint32_t& SiStripEventSummary::nApvsOutOfSync() const { return nApvsOutOfSync_; }
235 const uint32_t& SiStripEventSummary::nApvsErrors() const { return nApvsErrors_; }
236 
237 bool SiStripEventSummary::nullParams() const { return ( !params_[0] && !params_[1] && !params_[2] && !params_[3] ); }
238 const std::vector<uint32_t>& SiStripEventSummary::params() const { return params_; }
239 const uint32_t& SiStripEventSummary::binNumber() const { return params_[0]; }
240 const uint32_t& SiStripEventSummary::pllCoarse() const { return params_[0]; }
241 const uint32_t& SiStripEventSummary::pllFine() const { return params_[1]; }
242 const uint32_t& SiStripEventSummary::latency() const { return params_[0]; }
243 const uint32_t& SiStripEventSummary::calChan() const { return params_[1]; }
244 const uint32_t& SiStripEventSummary::calSel() const { return params_[2]; }
245 const uint32_t& SiStripEventSummary::isha() const { return params_[3]; }
246 const uint32_t& SiStripEventSummary::vfs() const { return params_[4]; }
247 const uint32_t& SiStripEventSummary::ttcrx() const { return params_[2]; }
248 const uint32_t& SiStripEventSummary::vpsp() const { return params_[0]; }
249 const uint32_t& SiStripEventSummary::vpspCcuChan() const { return params_[1]; }
250 const uint32_t& SiStripEventSummary::lldGain() const { return params_[0]; }
251 const uint32_t& SiStripEventSummary::lldBias() const { return params_[1]; }
252 const uint32_t& SiStripEventSummary::deviceId() const { return params_[0]; }
253 const uint32_t& SiStripEventSummary::processId() const { return params_[1]; }
254 const uint32_t& SiStripEventSummary::processIp() const { return params_[2]; }
255 const uint32_t& SiStripEventSummary::dcuId() const { return params_[3]; }
256 const uint32_t& SiStripEventSummary::layerScanned() const { return params_[3]; }
257 
258 void SiStripEventSummary::triggerFed( const int16_t& fed ) { fed < 0 ? triggerFed_ = 0 : triggerFed_ = fed; }
259 void SiStripEventSummary::event( const uint32_t& event ) { event_ = event; }
260 void SiStripEventSummary::bx( const uint32_t& bx ) { bx_ = bx; }
261 
262 void SiStripEventSummary::apveAddress( uint16_t& addr ) { apveAddress_ = addr; }
263 void SiStripEventSummary::nApvsInSync( uint32_t& napvs_in_sync ) { nApvsInSync_ = napvs_in_sync; }
264 void SiStripEventSummary::nApvsOutOfSync( uint32_t& napvs_out_of_sync ) { nApvsOutOfSync_ = napvs_out_of_sync; }
265 void SiStripEventSummary::nApvsErrors( uint32_t& napvs_with_errors ) { nApvsErrors_ = napvs_with_errors; }
266 
267 #endif // DataFormats_SiStripEventSummary_SiStripEventSummary_H
268 
269 
270 
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:188
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