1#ifndef BMNTOF701RAW2DIGIT_H
2#define BMNTOF701RAW2DIGIT_H
8#include "TClonesArray.h"
19#include <unordered_map>
23#define TOF701_LEFT true
24#define TOF701_RIGHT false
26#define TOF701_CHANNEL_NUMBER 64
27#define TOF701_BIN_NUMBER 1024
28#define TOF701_MAX_TIME (24.)
29#define TOF701_TDC_TYPE (0xD3)
30#define TOF701_TDCVXS_TYPE (0xD0)
65 Bool_t
setRun(Int_t nPerion, Int_t nRun);
75 void FillEvent(TClonesArray* data, unordered_map<UInt_t, Long64_t>* mapTS, TClonesArray* Tof701digit);
82 Int_t RunIndex, PeriodIndex, fVerbose;
84 std::map<std::pair<UInt_t, UChar_t>, UInt_t> PlacementMap;
85 std::map<UInt_t, BmnTof701TDCParameters>
87 void plmap_insert(UInt_t Serial, UChar_t Slot, UInt_t TDCSerial);
virtual ~BmnTof701Raw2Digit()
BmnTof701Raw2Digit(Int_t nPeriod, Int_t nRun, Int_t verbose)
Bool_t setMapFromFile(TString placementMapFile, TString mapFile)
void saveINLToFile(std::string INLFile, unsigned int TDCSerial)
void setVerbose(Int_t verbose)
void FillEvent(TClonesArray *data, unordered_map< UInt_t, Long64_t > *mapTS, TClonesArray *Tof701digit)
static UShort_t ToGlobalChannel(UChar_t HptdcId, UChar_t channel)
Bool_t setRun(Int_t nPerion, Int_t nRun)
void saveMapToFile(std::string placementMapFile, std::string mapFile)
void setINLFromFile(std::string INLFile)
#define TOF701_CHANNEL_NUMBER
#define TOF701_BIN_NUMBER
BmnTof701Map2(Short_t, Short_t, Bool_t)
BmnTof701Map2 ChannelMap[TOF701_CHANNEL_NUMBER]
double INL[TOF701_CHANNEL_NUMBER][TOF701_BIN_NUMBER]
double t[TOF701_CHANNEL_NUMBER]
bool operator()(const BmnTDCDigit &a, const BmnTDCDigit &b) const