10 #include <Event/Event.h>
11 #include <Event/EventTypes.h>
12 #include <Event/packet.h>
48 auto event = findNode::getClass<Event>(topNode,
"PRDF");
52 if(
event->getEvtType() >= 8)
59 std::unique_ptr<Packet> packet(
event->getPacket(packet_id) );
64 { std::cout <<
"MicromegasRawDataCalibration::process_event - event contains no TPOT data" << std::endl; }
69 const auto n_waveforms = packet->iValue(0,
"NR_WF" );
71 { std::cout <<
"MicromegasRawDataCalibration::process_event - n_waveforms: " << n_waveforms << std::endl; }
73 for(
int i=0;
i<n_waveforms; ++
i )
75 auto channel = packet->iValue(
i,
"CHANNEL" );
76 int fee = packet->iValue(
i,
"FEE" );
77 int samples = packet->iValue(
i,
"SAMPLES" );
81 <<
"MicromegasRawDataCalibration::process_event -"
85 <<
" samples: " << samples
96 profile->SetErrorOption(
"s" );
98 }
else profile =
piter->second;
102 { profile->Fill(
channel, packet->iValue(
i,is) ); }
116 std::cout <<
"MicromegasRawDataCalibration::End - no data" << std::endl;
123 for(
int i = 0;
i <
profile->GetNbinsX(); ++
i )