ProtoDUNEDataUtils.h
Go to the documentation of this file.
1 #ifndef PROTODUNE_DATA_UTILS_H
2 #define PROTODUNE_DATA_UTILS_H
3 
4 ///////////////////////////////////////////////////////////////
5 // ProtoDUNEDataUtils
6 // - Class to help analysers access useful beam data
7 // information
8 //
9 // Leigh Whitehead - leigh.howard.whitehead@cern.ch
10 ///////////////////////////////////////////////////////////////
11 
13 #include "fhiclcpp/ParameterSet.h"
15 #include <set>
16 #include "RtypesCore.h"
17 #include <stdint.h>
18 
19 namespace protoana {
20 
22 
23  public:
24 
27 
28  void reconfigure(fhicl::ParameterSet const &pset);
29 
30  /**
31  * Returns true if the ProtoDUNE trigger says this is a beam trigger
32  */
33  bool IsBeamTrigger(art::Event const & evt) const;
34 
35  /// Get number of active fembs in an APA
36  int GetNActiveFembsForAPA(art::Event const & evt, int apa) const;
37 
38  /// Check for consistency of timestamp values for a set of APAs. True if consistent, false if there are mismatches
39  bool CheckTimeStampConsistencyForAPAs(art::Event const & evt, std::set<int> apas,
40  ULong64_t &timestamp, ULong64_t &timestamp2,
41  int &apainconsist) const;
42 
43  private:
44 
48 
49  };
50 
51 }
52 
53 #endif
54 
ProtoDUNEDataUtils(fhicl::ParameterSet const &pset)
int GetNActiveFembsForAPA(art::Event const &evt, int apa) const
Get number of active fembs in an APA.
bool CheckTimeStampConsistencyForAPAs(art::Event const &evt, std::set< int > apas, ULong64_t &timestamp, ULong64_t &timestamp2, int &apainconsist) const
Check for consistency of timestamp values for a set of APAs. True if consistent, false if there are m...
void reconfigure(fhicl::ParameterSet const &pset)
TCEvent evt
Definition: DataStructs.cxx:7
bool IsBeamTrigger(art::Event const &evt) const