1 #ifndef EventFilter_CSCRawToDigi_CSCPACKERCOMPARE_H
2 #define EventFilter_CSCRawToDigi_CSCPACKERCOMPARE_H
15 std::cerr <<
"Mismatch:\n" << t1 <<
"\n" << t2 << std::endl;
23 boost::dynamic_bitset<> firstPack = t.pack();
24 unsigned char data[10000];
26 return T((
unsigned short int *)data);
32 boost::dynamic_bitset<> firstPack = t.pack();
33 unsigned char data[1000];
35 T newObject((
unsigned short int *)data);
36 boost::dynamic_bitset<> secondPack = newObject.pack();
37 if (firstPack != secondPack) {
bool cscClassPackerCompare(T &t)
void printWords(const boost::dynamic_bitset<> &bs)
void bitsetToChar(const boost::dynamic_bitset<> &bs, unsigned char *result)
this method takes bitset obj and returns char * array
bool cscPackerCompare(const T &t1, const T &t2)
char data[epos_bytes_allocation]