20 class CSCComparatorOutput;
34 #include <boost/dynamic_bitset.hpp>
56 bool isALCT(
const short unsigned int * buf);
59 bool isTMB(
const short unsigned int * buf);
71 std::vector<CSCStripDigi>
stripDigis(
unsigned idlayer,
unsigned icfeb)
const;
75 std::vector< std::vector<CSCStripDigi> >
stripDigis()
const;
78 std::vector<CSCWireDigi>
wireDigis(
unsigned ilayer)
const;
80 std::vector< std::vector<CSCWireDigi> >
wireDigis()
const;
118 void add(
const std::vector<CSCALCTDigi> &);
119 void add(
const std::vector<CSCCLCTDigi> &);
120 void add(
const std::vector<CSCCorrelatedLCTDigi> &);
128 boost::dynamic_bitset<>
pack();
void setEventInformation(int bxnum, int lvl1num)
bool isALCT(const short unsigned int *buf)
if dealing with ALCT data
unsigned short * alctZSErecovered
Auxiliary bufer to recove the ALCT raw payload from zero suppression.
int nclct() const
the number of CLCTs
std::vector< std::vector< CSCStripDigi > > stripDigis() const
deprecated. Use the above methods instead
void checkALCTClasses()
makes new ALCT classes, if needed
std::vector< std::vector< CSCWireDigi > > wireDigis() const
deprecated. Use the above method instead.
const CSCDMBTrailer * dmbTrailer() const
DMB trailer.
void addALCTStructures()
adds an empty ALCTHeader, trailer, and anode data
void checkTMBClasses()
makes new TMB classes, if needed
std::ostream & operator<<(std::ostream &out, const ALILine &li)
CSCAnodeData * alctData() const
user must check if nalct > 0
CSCALCTHeader * alctHeader() const
user must check if nalct > 0
int nalct() const
the flag for existence of ALCT data
CSCDMBHeader theDMBHeader
CSCCLCTData * clctData() const
user must check if nclct > 0
CSCALCTTrailer * alctTrailer() const
user must check if nalct > 0
CSCALCTHeader * theALCTHeader
CSCTMBData * tmbData() const
user must check in nclct > 0
CSCDMBHeader * dmbHeader()
CSCDMBTrailer theDMBTrailer
void unpack_data(unsigned short *buf)
CSCEventData operator=(const CSCEventData &data)
CSCALCTTrailer * theALCTTrailer
bool isTMB(const short unsigned int *buf)
if dealing with TMB data
void copy(const CSCEventData &)
unsigned short size() const
size of the data buffer used, in bytes
void add(const CSCStripDigi &, int layer)
routines to add digis to the data
CSCTMBHeader * tmbHeader() const
user must check if nclct > 0
char data[epos_bytes_allocation]
void addComparatorInformation(std::vector< CSCStripDigi > &, int layer) const
adds the comparators to the strip digis
CSCCFEBData * cfebData(unsigned icfeb) const
unpacked in long mode: has overflow and error bits decoded
int chamberType() const
might not be set in real data
boost::dynamic_bitset pack()
returns the packed event data.
const CSCDMBHeader * dmbHeader() const
the DAQ motherboard header. A good place for event and chamber info
static void setDebug(const bool value)
CSCAnodeData * theAnodeData
CSCCFEBData * theCFEBData[5]
for up to 5 CFEB boards