4#include <TClonesArray.h>
9#include "FairEventHeader.h"
30 virtual InitStatus
Init();
33 virtual void Exec(Option_t* opt);
44 void debugMapping(std::string board,
int tofpetID,
int tofpetChannel);
46 double qdc_calibration(
int board_id,
int tofpet_id,
int channel,
int tac,
47 uint16_t v_coarse, uint16_t v_fine, uint16_t tf);
48 double qdc_chi2(
int board_id,
int tofpet_id,
int channel,
int tac,
int TDC);
49 double qdc_sat(
int board_id,
int tofpet_id,
int channel,
int tac, uint16_t v_fine);
51 int64_t t_coarse, uint16_t t_fine,
int TDC);
52 std::tuple<double, double, double, double>
comb_calibration(
int board_id,
int tofpet_id,
54 uint16_t v_coarse, uint16_t v_fine,
55 int64_t t_coarse, uint16_t t_fine,
56 double GQDC ,
int TDC);
61 int channel_func(
int tofpet_id,
int tofpet_channel,
int position);
71 std::map<std::vector<int>, std::map<std::string, double> >
X_qdc{};
72 std::map<std::vector<int>, std::map<std::string, double> >
X_tdc{};
73 std::map<std::string, std::map<std::string, std::map<std::string, int>> >
boardMaps{};
75 std::map<int, std::string >
slots = { {0,
"A"}, {1,
"A"}, {2,
"B"}, {3,
"B"},
76 {4,
"C"}, {5,
"C"}, {6,
"D"}, {7,
"D"} };
78 std::map<std::string, std::map<std::string, std::map<std::string, std::string>> >
boardMapsMu{};
79 std::map<std::string, std::vector<int> >
offMap{};
81 std::map<std::string, double>
counters = { {
"N",0}, {
"event",0}, {
"qdc",0}, {
"tdc",0}, {
"chi2",0},
82 {
"make",0}, {
"storage",0}, {
"createScifi",0}, {
"createMufi",0} };
89 std::map<std::string, TTree*>
boards{};
map< string, map< string, map< string, int > > > boardMaps
map< string, map< string, map< string, string > > > boardMapsMu
double qdc_chi2(int board_id, int tofpet_id, int channel, int tac, int TDC)
FairEventHeader * fEventHeader
void debugMapping(std::string board, int tofpetID, int tofpetChannel)
double qdc_calibration(int board_id, int tofpet_id, int channel, int tac, uint16_t v_coarse, uint16_t v_fine, uint16_t tf)
double time_calibration(int board_id, int tofpet_id, int channel, int tac, int64_t t_coarse, uint16_t t_fine, int TDC)
std::map< std::string, double > counters
virtual void Exec(Option_t *opt)
TClonesArray * fDigiMuFilter
std::map< std::string, std::vector< int > > offMap
void DetMapping(std::string path)
virtual InitStatus Init()
void StartTimeofRun(std::string path)
std::tuple< double, double, double, double > comb_calibration(int board_id, int tofpet_id, int channel, int tac, uint16_t v_coarse, uint16_t v_fine, int64_t t_coarse, uint16_t t_fine, double GQDC, int TDC)
std::map< int, MuFilterHit * > digiMuFilterStore
std::map< int, std::string > slots
ConvRawData(const ConvRawData &)
TClonesArray * fDigiSciFi
void checkBoardMapping(std::string path)
std::map< int, std::map< int, int > > MufiSystem
double qdc_sat(int board_id, int tofpet_id, int channel, int tac, uint16_t v_fine)
std::map< std::vector< int >, std::map< std::string, double > > X_qdc
SNDLHCEventHeader * fSNDLHCEventHeader
ConvRawData & operator=(const ConvRawData &)
std::map< std::string, TTree * > boards
std::map< std::vector< int >, std::map< std::string, double > > X_tdc
std::map< int, sndScifiHit * > digiSciFiStore
int channel_func(int tofpet_id, int tofpet_channel, int position)
std::map< int, std::map< int, int > > TofpetMap
void read_csv(std::string path)
std::map< double, std::pair< double, double > > calibrationReport()