CMS 3D CMS Logo

CSCDCCEventData.h
Go to the documentation of this file.
1 
3 #ifndef EventFilter_CSCRawToDigi_CSCDCCEventData_h
4 #define EventFilter_CSCRawToDigi_CSCDCCEventData_h
5 
6 #include <vector>
7 #include <boost/dynamic_bitset.hpp>
12 
14 public:
15  CSCDCCEventData(int sourceId, int nDDUs, int bx, int l1a);
18  explicit CSCDCCEventData(const uint16_t* buf, CSCDCCExaminer* examiner = nullptr);
19 
21 
22  static void setDebug(bool value) { debug = value; }
23 
25  const std::vector<CSCDDUEventData>& dduData() const { return theDDUData; }
26  std::vector<CSCDDUEventData>& dduData() { return theDDUData; }
27 
28  CSCDCCHeader dccHeader() const { return theDCCHeader; }
30 
32  //void add(CSCEventData &);
33 
34  bool check() const;
35 
38  int sizeInWords() const { return theSizeInWords; }
39 
40  void addChamber(
41  CSCEventData& chamber, int dduID, int dduSlot, int dduInput, int dmbID, uint16_t format_version = 2005);
42 
44  boost::dynamic_bitset<> pack();
45 
46 #ifdef LOCAL_UNPACK
47  static bool debug;
48 #else
49  static std::atomic<bool> debug;
50 #endif
51 
52 protected:
53  void unpack_data(const uint16_t* buf, CSCDCCExaminer* examiner = nullptr);
55  // DDUData is unpacked and stored in this vector
56  std::vector<CSCDDUEventData> theDDUData;
59 };
60 
61 #endif
CSCDCCEventData::theDCCHeader
CSCDCCHeader theDCCHeader
Definition: CSCDCCEventData.h:54
CSCEventData
Definition: CSCEventData.h:29
CSCDCCEventData::debug
static std::atomic< bool > debug
Definition: CSCDCCEventData.h:49
CSCDCCHeader.h
CSCDCCEventData::dduData
const std::vector< CSCDDUEventData > & dduData() const
accessor to dduData
Definition: CSCDCCEventData.h:25
CSCDCCEventData::check
bool check() const
for making events. Sets the bxnum and lvl1num inside the chamber event
Definition: CSCDCCEventData.cc:86
CSCDCCEventData::~CSCDCCEventData
~CSCDCCEventData()
Definition: CSCDCCEventData.cc:28
CSCDCCEventData
01/20/05 A.Tumanov
Definition: CSCDCCEventData.h:13
l1GtPatternGenerator_cfi.bx
bx
Definition: l1GtPatternGenerator_cfi.py:18
CSCDCCTrailer
Definition: CSCDCCTrailer.h:14
CSCDCCEventData::theSizeInWords
int theSizeInWords
Definition: CSCDCCEventData.h:58
CSCDDUEventData.h
CSCDCCHeader
Definition: CSCDCCHeader.h:13
CSCDCCEventData::dduData
std::vector< CSCDDUEventData > & dduData()
Definition: CSCDCCEventData.h:26
CSCDCCEventData::addChamber
void addChamber(CSCEventData &chamber, int dduID, int dduSlot, int dduInput, int dmbID, uint16_t format_version=2005)
Definition: CSCDCCEventData.cc:95
CSCDCCEventData::dccHeader
CSCDCCHeader dccHeader() const
Definition: CSCDCCEventData.h:28
CSCDCCEventData::pack
boost::dynamic_bitset pack()
packs data into bits
Definition: CSCDCCEventData.cc:121
CSCDCCEventData::theDCCTrailer
CSCDCCTrailer theDCCTrailer
Definition: CSCDCCEventData.h:57
CSCDCCExaminer
Definition: CSCDCCExaminer.h:15
value
Definition: value.py:1
CSCDCCEventData::CSCDCCEventData
CSCDCCEventData(int sourceId, int nDDUs, int bx, int l1a)
Definition: CSCDCCEventData.cc:22
visDQMUpload.buf
buf
Definition: visDQMUpload.py:154
CSCDCCEventData::sizeInWords
int sizeInWords() const
Definition: CSCDCCEventData.h:38
objects.autophobj.sourceId
sourceId
Definition: autophobj.py:239
CSCDCCExaminer.h
relativeConstraints.value
value
Definition: relativeConstraints.py:53
CSCDCCEventData::theDDUData
std::vector< CSCDDUEventData > theDDUData
Definition: CSCDCCEventData.h:56
CSCDCCEventData::dccTrailer
CSCDCCTrailer dccTrailer() const
Definition: CSCDCCEventData.h:29
relativeConstraints.chamber
chamber
Definition: relativeConstraints.py:53
CSCDCCTrailer.h
CSCDCCEventData::unpack_data
void unpack_data(const uint16_t *buf, CSCDCCExaminer *examiner=nullptr)
Definition: CSCDCCEventData.cc:30
CSCDCCEventData::setDebug
static void setDebug(bool value)
Definition: CSCDCCEventData.h:22