15 template <
class Coll,
class DetIdClass>
20 typename Coll::const_iterator
i =
pt->find(DetIdClass(did));
57 constexpr
int CORFormatVersion = 1;
63 spigots[spigot].
allocate(CORFormatVersion);
67 for (
int fiber = 1; fiber <= 12; fiber++)
68 for (
int fiberchan = 0; fiberchan < 3; fiberchan++) {
69 int linear = (fiber - 1) * 3 + fiberchan;
77 if (!emap.
lookup(partialEid, fullEid, genId))
83 int mysamples = findSamples(genId,
inputs, database, mypresamples);
87 else if (
samples != mysamples) {
88 edm::LogError(
"CASTOR") <<
"Mismatch of samples in a single COR (unsupported) " << mysamples
96 edm::LogError(
"CASTOR") <<
"Mismatch of presamples in a single COR (unsupported) " << mypresamples
106 spigots[spigot].
pack(&(preclen[0]), &(precdata[0]), &(triglen[0]), &(trigdata[0]),
true);
107 constexpr
int pipeline = 0x22;
108 constexpr
int firmwareRev = 0;
110 submodule |= (exampleEId.
htrSlot() & 0x1F) << 1;
117 for (
int spigot = 0; spigot < 2; spigot++) {
118 theSize += spigots[spigot].
getRawLength() *
sizeof(
unsigned short);
123 theSize += mergerdata.
getRawLength() *
sizeof(
unsigned short);
126 theSize += (8 - (theSize % 8)) % 8;
135 for (
int spigot = 0; spigot < 2; spigot++) {
136 if (spigots[spigot].getRawLength() > 0)