12 #include <Event/Event.h>
13 #include <Event/EventTypes.h>
14 #include <Event/packet.h>
32 M.
setMapNames(
"AutoPad-R1-RevA.sch.ChannelMapping.csv",
"AutoPad-R2-RevA-Pads.sch.ChannelMapping.csv",
"AutoPad-R3-RevA.sch.ChannelMapping.csv");
48 m_PacketTree =
new TTree(
"PacketTree",
"Each entry is one packet");
50 m_PacketTree->Branch(
"packet", &
m_packet,
"packet/I");
51 m_PacketTree->Branch(
"frame", &
m_frame,
"frame/I");
53 m_PacketTree->Branch(
"nTaggerInFrame", &
m_nTaggerInFrame,
"nTaggerInFrame/I");
54 m_PacketTree->Branch(
"maxFEECount", &
m_maxFEECount,
"maxFEECount/I");
56 m_SampleTree =
new TTree(
"SampleTree",
"Each entry is one waveform");
72 m_TaggerTree =
new TTree(
"TaggerTree",
"Each entry is one tagger for level 1 trigger or endat tag");
85 R1_hist =
new TH1F(
"R1_hist",
"R1_hist",1024,-0.5,1023.5);
86 R2_hist =
new TH1F(
"R2_hist",
"R2_hist",1024,-0.5,1023.5);
87 R3_hist =
new TH1F(
"R3_hist",
"R3_hist",1024,-0.5,1023.5);
89 R1_time =
new TH2F(
"R1_time",
"R1_time",360,-0.5,359.5,1024,-0.5,1023.5);
90 R2_time =
new TH2F(
"R2_time",
"R2_time",360,-0.5,359.5,1024,-0.5,1023.5);
91 R3_time =
new TH2F(
"R3_time",
"R3_time",360,-0.5,359.5,1024,-0.5,1023.5);
93 TotalFEE =
new TH1F(
"TotalFEE",
"Total FEE", 26, -0.5, 25.5);
94 TotalFEEsampa =
new TH1F(
"TotalFEEsampa",
"Total FEE + sampa", 26*8, -0.5, 25*8-.5);
95 TotalFRAME =
new TH1F(
"TotalFRAME",
"Total FRAME", 21, -0.5, 20.5);
113 Event *_event = findNode::getClass<Event>(topNode,
"PRDF");
114 if (_event ==
nullptr)
116 std::cout <<
"TpcRawDataTree::Process_Event Event not found" << std::endl;
130 std::cout << __PRETTY_FUNCTION__ <<
" : decoding packet " << packet << std::endl;
140 std::cout << __PRETTY_FUNCTION__ <<
" : missing packet " << packet << std::endl;
154 m_is_lvl1 = (uint8_t) (
p->lValue(
t,
"IS_LEVEL1_TRIGGER"));
155 m_bco = (uint64_t) (
p->lValue(
t,
"BCO"));
166 m_BCO =
p->iValue(wf,
"BCO");
168 m_fee =
p->iValue(wf,
"FEE");
185 else if(
m_fee == 11 ||
256 std::cout << __PRETTY_FUNCTION__ <<
" : completed saving to " <<
m_file->GetName() << std::endl;