#ifndef _EVIO2ROOT_ #define _EVIO2ROOT_ #define F1_BLOCK_HEAD 16 #define F1_BLOCK_TRAIL 17 #define F1_EVENT_HEAD 18 #define F1_TRIG_TIME 19 #define F1_MEAS 23 #define F1_CHIP_HEAD 24 #define F1_NOT_VALID 30 #define F1_FILLER 31 #define F1_SLOT 0x7C00000 #define F1_ID 0x3C0000 #define F1_BLOCK 0x3FF00 #define F1_NEVT_BLOCK 0xFF #define F1_TRIG_NUMB 0x3FFFFF #define F1_TDE 0xFFFF #define F1_CHIP 0x380000 #define F1_CHAN 0x70000 #define F1_TIME 0xFFFF TFile* ROOTfile; TTree* tree1; TTree* tree2; static int crate = -1; const int max_crates = 12; const int fadc_tag = 6; static const Int_t max_fadc_crate = 12; static const Int_t max_fadc_board = 22; //unsigned int fadc_raw[2][16][200]; //unsigned int fadc_pulse[2][16][200]; // root tree const int root_tree = 1; const int window_size = 100; // Playback //const int max_hits = 1600; const int max_hits = 2900; const int max_hits_tdc = 1000; int nhit; int hcrate[max_hits]; int hslot[max_hits]; int hch[max_hits]; int nsamp[max_hits]; int samp[max_hits][100]; int ntdc; int tdc_bd[max_hits_tdc]; int tdc_ch[max_hits_tdc]; int tdc_time[max_hits_tdc]; TH1F *ped[max_fadc_crate][max_fadc_board][16]; TProfile *raw[max_fadc_crate][max_fadc_board][16]; int n_evt; TH1F* qdc0, *qdc1, *qdc4; TH1F* htac_amp; TProfile *fadc[max_fadc_board][16]; // Pulse integral mode TProfile *fadc_pulse_raw[max_fadc_board][16]; #endif // _EVIO2ROOT_