TickModTreeData.h
Go to the documentation of this file.
1 // TickModTreeData.h
2 
3 // David Adams
4 // July 2018
5 //
6 // Class to describe the data in a tickmod tree.
7 // See dunetpc/dune/DataPRep/Tool/AdcTickModViewer.
8 //
9 // If the layout of this class is changed, then the dictionary
10 // cxx and pcm files in this directory must be regenerated with
11 // rm TickModTreeData_Dict.cxx; rootcint TickModTreeData_Dict.cxx TickModTreeData.h
12 // after incrementing the version in the ClassDef macro below.
13 
14 #ifndef TickModTreeData_H
15 #define TickModTreeData_H
16 
17 #include "Rtypes.h"
18 
19 class StickyCodeMetrics;
20 class TTree;
21 
23 
24 public:
25 
26  using UShort = unsigned short;
27  using Index = unsigned int;
28  using Float = float;
29 
30  static Index badIndex() { return 999999; }
31 
32  // Identifiers that specify the channel, tickmod and
33  // run conditions.
40  // Sticky code data for one tickmod.
50  int fitStatus;
54 
55  // Ctor.
57 
58  // Clear the data.
59  void clear();
60 
61  // Fill the sticky code data.
62  void fill(const StickyCodeMetrics& scm);
63 
64  // Add the data here as branches on a tree.
65  void createBranches(TTree* ptree);
66 
67 };
68 
69 
70 #endif
unsigned short UShort
void createBranches(TTree *ptree)
void fill(const StickyCodeMetrics &scm)
static Index badIndex()
unsigned int Index