FACT++  1.0
template<typename T >
array<T, 42> EventBuilderWrapper::CompareBits ( const FAD::EventHeader *  h,
const T *  t 
)
inline

Definition at line 1307 of file EventBuilderWrapper.h.

References first, gi_NumConnect, i, and t.

1308  {
1309  const int offset = reinterpret_cast<const char *>(t) - reinterpret_cast<const char *>(h);
1310 
1311  T val = 0;
1312  T rc = 0;
1313 
1314  array<T, 42> vec;
1315 
1316  bool first = true;
1317 
1318  for (int i=0; i<40; i++)
1319  {
1320  const char *base = reinterpret_cast<const char*>(&fVecHeader[i]);
1321  const T *ref = reinterpret_cast<const T*>(base+offset);
1322 
1323  vec[i+2] = *ref;
1324 
1325  if (gi_NumConnect[i]==0)
1326  {
1327  vec[i+2] = 0;
1328  continue;
1329  }
1330 
1331  if (first)
1332  {
1333  first = false;
1334  val = *ref;
1335  rc = 0;
1336  }
1337 
1338  rc |= val^*ref;
1339  }
1340 
1341  vec[0] = rc;
1342  vec[1] = val;
1343 
1344  return vec;
1345  }
array< FAD::EventHeader, 40 > fVecHeader
int i
Definition: db_dim_client.c:21
uint gi_NumConnect[NBOARDS]
Definition: EventBuilder.cc:82
int64_t first
Size of this column in the tile.
Definition: zofits.h:26
TT t
Definition: test_client.c:26