TickModTreeData.cxx
Go to the documentation of this file.
1 // TickModTreeData.cxx
2 
3 #include "TickModTreeData.h"
5 
6 #include "TTree.h"
7 
8 //**********************************************************************
9 
11  clear();
12 }
13 
14 //**********************************************************************
15 
17  run = badIndex();
18  chan = badIndex();
19  femb = badIndex();
20  fembChan = badIndex();
21  itkm = badIndex();
22  nsample = 0;
23  maxAdc = badIndex();
24  maxAdc2 = badIndex();
25  meanAdc = -1.0;
26  meanAdc2 = -1.0;
27  maxFraction = -1.0;
28  zeroFraction = -1.0;
29  oneFraction = -1.0;
30  highFraction = -1.0;
31  fitStatus = -1;
32  fitMean = -1.0;
33  fitSigma = -1.0;
34  fitExcess = -1.0;
35 }
36 
37 //**********************************************************************
38 
40  nsample = scm.nsample();
41  maxAdc = scm.maxAdc();
42  maxAdc2 = scm.maxAdc2();
43  meanAdc = scm.meanAdc();
44  meanAdc2 = scm.meanAdc2();
45  maxFraction = scm.maxFraction();
46  zeroFraction = scm.zeroFraction();
47  oneFraction = scm.oneFraction();
48  highFraction = scm.highFraction();
49  fitStatus = scm.fitStatus();
50  fitMean = scm.fitMean();
51  fitSigma = scm.fitSigma();
52  fitExcess = scm.fitExcess();
53 }
54 
55 //**********************************************************************
56 
57 void TickModTreeData::createBranches(TTree* ptree) {
58  ptree->Branch("run", &run);
59  ptree->Branch("chan", &chan);
60 }
61 
62 //**********************************************************************
AdcIndex maxAdc2() const
double meanAdc() const
void createBranches(TTree *ptree)
void fill(const StickyCodeMetrics &scm)
static Index badIndex()
int fitStatus() const
double fitExcess() const
double fitMean() const
double oneFraction() const
Index nsample() const
AdcIndex maxAdc() const
double highFraction() const
double maxFraction() const
double fitSigma() const
double zeroFraction() const
double meanAdc2() const