#include <CastorCtdcPacker.h>
Public Member Functions | |
void | pack (int fedid, int dccnumber, int nl1a, int orbitn, int bcn, const CastorCollections &inputs, const CastorElectronicsMap &emap, FEDRawData &output) |
Private Member Functions | |
int | findSamples (const DetId &did, const CastorCollections &inputs, unsigned short *buffer, int &presamples) |
Definition at line 13 of file CastorCtdcPacker.h.
|
private |
Definition at line 28 of file CastorCtdcPacker.cc.
References DetId::Calo, CastorCollections::castorCont, DetId::det(), and findQualityFiles::size.
void CastorCtdcPacker::pack | ( | int | fedid, |
int | dccnumber, | ||
int | nl1a, | ||
int | orbitn, | ||
int | bcn, | ||
const CastorCollections & | inputs, | ||
const CastorElectronicsMap & | emap, | ||
FEDRawData & | output | ||
) |
pack into CastorCORData
Definition at line 40 of file CastorCtdcPacker.cc.
References CastorCORData::allocate(), CastorCORData::CHANNELS_PER_SPIGOT, hitfit::char, CastorCTDCHeader::clear(), evf::compute_crc(), CastorCTDCHeader::copyMergerData(), CastorCTDCHeader::copySpigotData(), FEDRawData::data(), CastorCORData::getRawLength(), CastorMergerData::getRawLength(), CastorElectronicsId::htrSlot(), CastorElectronicsId::htrTopBottom(), linear(), CastorElectronicsMap::lookup(), CastorCORData::MAXIMUM_SAMPLES_PER_CHANNEL, CastorCORData::pack(), CastorCORData::packHeaderTrailer(), CastorElectronicsId::readoutVMECrateId(), FEDRawData::resize(), FEDTrailer::set(), CastorCTDCHeader::setHeader(), FEDRawData::size(), and CastorCTDCHeader::SPIGOT_COUNT.
Referenced by pyrootRender.interactiveRender::draw(), and CastorDigiToRaw::produce().