1#ifndef BMNTOF1RAW2DIGIT_H
2#define BMNTOF1RAW2DIGIT_H
8#include "TClonesArray.h"
19#include <unordered_map>
24#define TOF1_RIGHT false
26#define TOF1_CHANNEL_NUMBER 72
27#define TOF1_BIN_NUMBER 1024
28#define TOF1_MAX_TIME (24.)
29#define TOF1_TDC_TYPE (0x12)
30#define TOF1_TDCVXS_TYPE (0xD0)
64 Bool_t
setRun(Int_t nPerion, Int_t nRun);
74 void FillEvent(TClonesArray* data, unordered_map<UInt_t, Long64_t>* mapTS, TClonesArray* tof1digit);
81 Int_t RunIndex, PeriodIndex, fVerbose;
83 std::map<std::pair<UInt_t, UChar_t>, UInt_t> PlacementMap;
84 std::map<UInt_t, BmnTof1TDCParameters>
86 void plmap_insert(UInt_t Serial, UChar_t Slot, UInt_t TDCSerial);
BmnTof1Raw2Digit(Int_t nPeriod, Int_t nRun, Int_t verbose)
static UShort_t ToGlobalChannel(UChar_t HptdcId, UChar_t channel)
void setVerbose(Int_t verbose)
Bool_t setRun(Int_t nPerion, Int_t nRun)
void saveINLToFile(std::string INLFile, unsigned int TDCSerial)
Bool_t setMapFromFile(TString placementMapFile, TString mapFile)
void setINLFromFile(std::string INLFile)
void FillEvent(TClonesArray *data, unordered_map< UInt_t, Long64_t > *mapTS, TClonesArray *tof1digit)
void saveMapToFile(std::string placementMapFile, std::string mapFile)
virtual ~BmnTof1Raw2Digit()
#define TOF1_CHANNEL_NUMBER
BmnTof1Map2(Short_t, Short_t, Bool_t)
BmnTof1Map2 ChannelMap[TOF1_CHANNEL_NUMBER]
double t[TOF1_CHANNEL_NUMBER]
double INL[TOF1_CHANNEL_NUMBER][TOF1_BIN_NUMBER]
bool operator()(const BmnTDCDigit &a, const BmnTDCDigit &b) const