CheckTime.h
Go to the documentation of this file.
1 ////////////////////////////////////////////////////////////////////////
2 // File: PennToOffline.cc
3 // Author: Karl Warburton (Oct 2015)
4 //
5 // Utility to provide methods for reformatting the raw online PENN data
6 // into a structure which can be used in the splitter.
7 // Heavily uses lbne-artdaq/OnlineMonitoring/DataReformatter.cxx as a base
8 ////////////////////////////////////////////////////////////////////////
9 
10 #ifndef CheckTime_h
11 #define CheckTime_h
12 
13 //lbne-artdaq includes
14 #include "lbne-raw-data/Overlays/TpcMilliSliceFragment.hh"
15 #include "lbne-raw-data/Overlays/SSPFragment.hh"
16 #include "lbne-raw-data/Overlays/anlTypes.hh"
17 #include "lbne-raw-data/Overlays/PennMilliSlice.hh"
18 #include "lbne-raw-data/Overlays/PennMicroSlice.hh"
19 #include "lbne-raw-data/Overlays/PennMilliSliceFragment.hh"
20 #include "artdaq-core/Data/Fragment.hh"
23 
24 #include <memory>
25 #include <bitset>
26 #include <iostream>
27 #include <fstream>
28 #include <sstream>
29 #include "TTree.h"
30 
31 namespace DAQToOffline {
32 
33  void GetRCEFirstTimestamp( artdaq::Fragments const& Fragments, int &ConsistRCE, int &NumADCs, long long &RCETime );
34  void GetSSPFirstTimestamp( artdaq::Fragments const& Fragments, int &nSSPPayloads, long long &SSPTime );
35  void GetPTBFirstTimestamp( artdaq::Fragments const& PTBrawFragments, int &nPTBPayloads, long long &PTBTime );
36 }
37 #endif
void GetSSPFirstTimestamp(artdaq::Fragments const &Fragments, int &nSSPPayloads, long long &SSPTime)
Definition: CheckTime.cc:58
Definition of basic raw digits.
void GetPTBFirstTimestamp(artdaq::Fragments const &PTBrawFragments, int &nPTBPayloads, long long &PTBTime)
Definition: CheckTime.cc:74
void GetRCEFirstTimestamp(artdaq::Fragments const &Fragments, int &ConsistRCE, int &NumADCs, long long &RCETime)
Definition: CheckTime.cc:14