#include "parser/CalibHR1Parser.hh"
#include "parser/AcquisitionParser.hh"
#include "event/Event.hh"
#include "geometry/Detector.hh"
#include "geometry/Dif.hh"
#include "geometry/Board.hh"
#include "geometry/Chip.hh"
#include "geometry/Hardroc1Chip.hh"
#include "geometry/Chamber.hh"
#include "tools/MicroException.hh"
#include "tools/Toolbox.hh"
#include "tools/SteerDesc.hh"
#include "tools/Log.hh"
#include <iostream>
#include <iomanip>
#include <fstream>
#include <string>
#include <cstdio>
#include "math.h"
Include dependency graph for CalibHR1Parser.cpp:
Go to the source code of this file.
Defines | |
#define | bigTolittle Toolbox::bigTolittle |
Functions | |
static unsigned int | grayToBinary2 (unsigned int gray) |
#define bigTolittle Toolbox::bigTolittle |
static unsigned int grayToBinary2 | ( | unsigned int | gray | ) | [static] |
Definition at line 41 of file CalibHR1Parser.cpp.
00041 { 00042 // loop for always 32 bits 00043 unsigned int bin = ((gray >> 31) & 1) << 31; 00044 for (int bit = 30; bit >= 0; --bit) 00045 bin += ( ((gray >> bit) & 1) ^ ((bin >> (bit + 1)) & 1) ) << bit; 00046 00047 return(bin); 00048 } // grayToBinar