CMS 3D CMS Logo

Counters.h
Go to the documentation of this file.
1 // Class for Block of Counters
2 
3 #ifndef __l1t_emtf_Counters_h__
4 #define __l1t_emtf_Counters_h__
5 
6 #include <boost/cstdint.hpp>
7 
8 namespace l1t {
9  namespace emtf {
10  class Counters {
11  public:
12 
13  explicit Counters(uint64_t dataword);
14 
15  // rpc_counter not yet implemented in FW - AWB 31.01.16
16  Counters() :
17  track_counter(-99), orbit_counter(-99), rpc_counter(-99), format_errors(0), dataword(-99)
18  {};
19 
20  Counters(int int_track_counter, int int_orbit_counter, int int_rpc_counter) :
21  track_counter(int_track_counter), orbit_counter(int_orbit_counter), rpc_counter(int_rpc_counter), format_errors(0), dataword(-99)
22  {};
23 
24  virtual ~Counters() {};
25 
30  void set_dataword(uint64_t bits) { dataword = bits; }
31 
32  int Track_counter() const { return track_counter; }
33  int Orbit_counter() const { return orbit_counter; }
34  int RPC_counter() const { return rpc_counter; }
35  int Format_Errors() const { return format_errors; }
36  uint64_t Dataword() const { return dataword; }
37 
38  private:
44 
45  }; // End of class Counters
46 
47  } // End of namespace emtf
48 } // End of namespace l1t
49 
50 #endif /* define __l1t_emtf_Counters_h__ */
uint64_t dataword
Definition: Counters.h:43
uint64_t Dataword() const
Definition: Counters.h:36
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 bits
void set_track_counter(int bits)
Definition: Counters.h:26
Definition: Event.h:15
delete x;
Definition: CaloConfig.h:22
int Format_Errors() const
Definition: Counters.h:35
int Track_counter() const
Definition: Counters.h:32
void add_format_error()
Definition: Counters.h:29
Counters(int int_track_counter, int int_orbit_counter, int int_rpc_counter)
Definition: Counters.h:20
int RPC_counter() const
Definition: Counters.h:34
void set_orbit_counter(int bits)
Definition: Counters.h:27
void set_dataword(uint64_t bits)
Definition: Counters.h:30
unsigned long long uint64_t
Definition: Time.h:15
void set_rpc_counter(int bits)
Definition: Counters.h:28
int Orbit_counter() const
Definition: Counters.h:33
virtual ~Counters()
Definition: Counters.h:24