Go to the documentation of this file. 1 #ifndef EventFilter_CSCRawToDigi_CSCEventData_h
2 #define EventFilter_CSCRawToDigi_CSCEventData_h
24 #include <boost/dynamic_bitset.hpp>
60 std::vector<CSCStripDigi>
stripDigis(
unsigned idlayer,
unsigned icfeb)
const;
63 std::vector<std::vector<CSCStripDigi> >
stripDigis()
const;
65 std::vector<CSCWireDigi>
wireDigis(
unsigned ilayer)
const;
67 std::vector<std::vector<CSCWireDigi> >
wireDigis()
const;
105 void add(
const std::vector<CSCALCTDigi> &);
106 void add(
const std::vector<CSCCLCTDigi> &);
107 void add(
const std::vector<CSCCorrelatedLCTDigi> &);
108 void add(
const std::vector<GEMPadDigiCluster> &,
const GEMDetId &);
115 boost::dynamic_bitset<>
pack();
unsigned short size() const
size of the data buffer used, in bytes
#define MAX_CFEB
Maximum available CFEBs per chamber (for old system 5, for new ME11 should be 7)
void checkTMBClasses()
makes new TMB classes, if needed
boost::dynamic_bitset pack()
returns the packed event data.
CSCALCTHeader * alctHeader() const
user must check if nalct > 0
CSCTMBData * tmbData() const
user must check in nclct > 0
const CSCCFEBData * cfebData(unsigned icfeb) const
unpacked in long mode: has overflow and error bits decoded
static void setDebug(const bool value)
CSCTMBHeader * tmbHeader() const
user must check if nclct > 0
CSCDMBHeader theDMBHeader
bool isALCT(const uint16_t *buf)
if dealing with ALCT data
void unpack_data(const uint16_t *buf)
unsigned int calcALCTcrc(std::vector< std::pair< unsigned int, unsigned short * > > &vec)
unsigned short * alctZSErecovered
Auxiliary bufer to recove the ALCT raw payload from zero suppression.
CSCALCTHeader * theALCTHeader
const CSCDMBHeader * dmbHeader() const
the DAQ motherboard header. A good place for event and chamber info
void addComparatorInformation(std::vector< CSCStripDigi > &, int layer) const
adds the comparators to the strip digis
CSCDMBHeader * dmbHeader()
const CSCDMBTrailer * dmbTrailer() const
DMB trailer.
void addALCTStructures()
adds an empty ALCTHeader, trailer, and anode data
CSCEventData operator=(const CSCEventData &data)
std::ostream & operator<<(std::ostream &os, const CSCEventData &evt)
CSCAnodeData * alctData() const
user must check if nalct > 0
constexpr std::array< uint8_t, layerIndexSize > layer
CSCComparatorData * comparatorData() const
user must check if nclct > 0
CSCALCTTrailer * alctTrailer() const
user must check if nalct > 0
int nalct() const
the flag for existence of ALCT data
void add(const CSCStripDigi &, int layer)
routines to add digis to the data
int nclct() const
the number of CLCTs
static std::atomic< bool > debug
std::vector< std::vector< CSCWireDigi > > wireDigis() const
deprecated. Use the above method instead.
uint16_t getFormatVersion() const
CSCDMBTrailer theDMBTrailer
int chamberType() const
might not be set in real data
CSCCFEBData * theCFEBData[7]
for up to MAX_CFEB CFEB boards
CSCAnodeData * theAnodeData
void copy(const CSCEventData &)
CSCALCTTrailer * theALCTTrailer
char data[epos_bytes_allocation]
void setEventInformation(int bxnum, int lvl1num)
uint16_t theFormatVersion
Output Format Version (2005, 2013)
void checkALCTClasses()
makes new ALCT classes, if needed
std::vector< std::vector< CSCStripDigi > > stripDigis() const
deprecated. Use the above methods instead
bool isTMB(const uint16_t *buf)
if dealing with TMB data