Main Page
Related Pages
Modules
Namespaces
Classes
Files
Examples
File List
File Members
dunedataprep
dunedataprep
DataPrep
Utility
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
22
class
TickModTreeData
{
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.
34
Index
run
=
badIndex
();
35
Index
chan
=
badIndex
();
36
Index
femb
=
badIndex
();
37
Index
fembChan
=
badIndex
();
38
Index
itkm
=
badIndex
();
39
Float
pedestal
=0.0;
40
// Sticky code data for one tickmod.
41
Index
nsample
;
42
Index
maxAdc
;
43
Index
maxAdc2
;
44
Float
meanAdc
;
45
Float
meanAdc2
;
46
Float
maxFraction
;
47
Float
zeroFraction
;
48
Float
oneFraction
;
49
Float
highFraction
;
50
int
fitStatus
;
51
Float
fitMean
;
52
Float
fitSigma
;
53
Float
fitExcess
;
54
55
// Ctor.
56
TickModTreeData
();
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
StickyCodeMetrics
Definition:
StickyCodeMetrics.h:48
TickModTreeData::UShort
unsigned short UShort
Definition:
TickModTreeData.h:26
TickModTreeData::createBranches
void createBranches(TTree *ptree)
Definition:
TickModTreeData.cxx:57
TickModTreeData::fill
void fill(const StickyCodeMetrics &scm)
Definition:
TickModTreeData.cxx:39
reco_momentum_tuples.float
float
Definition:
reco_momentum_tuples.py:12
TickModTreeData::badIndex
static Index badIndex()
Definition:
TickModTreeData.h:30
TickModTreeData::maxAdc2
Index maxAdc2
Definition:
TickModTreeData.h:43
TickModTreeData::itkm
Index itkm
Definition:
TickModTreeData.h:38
TickModTreeData::nsample
Index nsample
Definition:
TickModTreeData.h:41
TickModTreeData::fitMean
Float fitMean
Definition:
TickModTreeData.h:51
TickModTreeData::Index
unsigned int Index
Definition:
TickModTreeData.h:27
TickModTreeData::oneFraction
Float oneFraction
Definition:
TickModTreeData.h:48
TickModTreeData::TickModTreeData
TickModTreeData()
Definition:
TickModTreeData.cxx:10
TickModTreeData::run
Index run
Definition:
TickModTreeData.h:34
TickModTreeData::maxAdc
Index maxAdc
Definition:
TickModTreeData.h:42
TickModTreeData::highFraction
Float highFraction
Definition:
TickModTreeData.h:49
TickModTreeData::femb
Index femb
Definition:
TickModTreeData.h:36
TickModTreeData
Definition:
TickModTreeData.h:22
TickModTreeData::chan
Index chan
Definition:
TickModTreeData.h:35
TickModTreeData::zeroFraction
Float zeroFraction
Definition:
TickModTreeData.h:47
TickModTreeData::fitSigma
Float fitSigma
Definition:
TickModTreeData.h:52
TickModTreeData::meanAdc
Float meanAdc
Definition:
TickModTreeData.h:44
keras_to_tensorflow.int
int
Definition:
keras_to_tensorflow.py:69
TickModTreeData::meanAdc2
Float meanAdc2
Definition:
TickModTreeData.h:45
TickModTreeData::pedestal
Float pedestal
Definition:
TickModTreeData.h:39
TickModTreeData::Float
float Float
Definition:
TickModTreeData.h:28
TickModTreeData::fitStatus
int fitStatus
Definition:
TickModTreeData.h:50
TickModTreeData::fembChan
Index fembChan
Definition:
TickModTreeData.h:37
TickModTreeData::fitExcess
Float fitExcess
Definition:
TickModTreeData.h:53
TickModTreeData::clear
void clear()
Definition:
TickModTreeData.cxx:16
TickModTreeData::maxFraction
Float maxFraction
Definition:
TickModTreeData.h:46
Generated by
1.8.11