Public Types | Public Member Functions | Static Public Member Functions | Public Attributes | List of all members
TickModTreeData Class Reference

#include <TickModTreeData.h>

Public Types

using UShort = unsigned short
 
using Index = unsigned int
 
using Float = float
 

Public Member Functions

 TickModTreeData ()
 
void clear ()
 
void fill (const StickyCodeMetrics &scm)
 
void createBranches (TTree *ptree)
 

Static Public Member Functions

static Index badIndex ()
 

Public Attributes

Index run =badIndex()
 
Index chan =badIndex()
 
Index femb =badIndex()
 
Index fembChan =badIndex()
 
Index itkm =badIndex()
 
Float pedestal =0.0
 
Index nsample
 
Index maxAdc
 
Index maxAdc2
 
Float meanAdc
 
Float meanAdc2
 
Float maxFraction
 
Float zeroFraction
 
Float oneFraction
 
Float highFraction
 
int fitStatus
 
Float fitMean
 
Float fitSigma
 
Float fitExcess
 

Detailed Description

Definition at line 22 of file TickModTreeData.h.

Member Typedef Documentation

using TickModTreeData::Float = float

Definition at line 28 of file TickModTreeData.h.

using TickModTreeData::Index = unsigned int

Definition at line 27 of file TickModTreeData.h.

using TickModTreeData::UShort = unsigned short

Definition at line 26 of file TickModTreeData.h.

Constructor & Destructor Documentation

TickModTreeData::TickModTreeData ( )

Definition at line 10 of file TickModTreeData.cxx.

10  {
11  clear();
12 }

Member Function Documentation

static Index TickModTreeData::badIndex ( )
inlinestatic

Definition at line 30 of file TickModTreeData.h.

30 { return 999999; }
void TickModTreeData::clear ( )

Definition at line 16 of file TickModTreeData.cxx.

16  {
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 }
static Index badIndex()
void TickModTreeData::createBranches ( TTree *  ptree)

Definition at line 57 of file TickModTreeData.cxx.

57  {
58  ptree->Branch("run", &run);
59  ptree->Branch("chan", &chan);
60 }
void TickModTreeData::fill ( const StickyCodeMetrics scm)

Definition at line 39 of file TickModTreeData.cxx.

39  {
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 }
AdcIndex maxAdc2() const
double meanAdc() const
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

Member Data Documentation

Index TickModTreeData::chan =badIndex()

Definition at line 35 of file TickModTreeData.h.

Index TickModTreeData::femb =badIndex()

Definition at line 36 of file TickModTreeData.h.

Index TickModTreeData::fembChan =badIndex()

Definition at line 37 of file TickModTreeData.h.

Float TickModTreeData::fitExcess

Definition at line 53 of file TickModTreeData.h.

Float TickModTreeData::fitMean

Definition at line 51 of file TickModTreeData.h.

Float TickModTreeData::fitSigma

Definition at line 52 of file TickModTreeData.h.

int TickModTreeData::fitStatus

Definition at line 50 of file TickModTreeData.h.

Float TickModTreeData::highFraction

Definition at line 49 of file TickModTreeData.h.

Index TickModTreeData::itkm =badIndex()

Definition at line 38 of file TickModTreeData.h.

Index TickModTreeData::maxAdc

Definition at line 42 of file TickModTreeData.h.

Index TickModTreeData::maxAdc2

Definition at line 43 of file TickModTreeData.h.

Float TickModTreeData::maxFraction

Definition at line 46 of file TickModTreeData.h.

Float TickModTreeData::meanAdc

Definition at line 44 of file TickModTreeData.h.

Float TickModTreeData::meanAdc2

Definition at line 45 of file TickModTreeData.h.

Index TickModTreeData::nsample

Definition at line 41 of file TickModTreeData.h.

Float TickModTreeData::oneFraction

Definition at line 48 of file TickModTreeData.h.

Float TickModTreeData::pedestal =0.0

Definition at line 39 of file TickModTreeData.h.

Index TickModTreeData::run =badIndex()

Definition at line 34 of file TickModTreeData.h.

Float TickModTreeData::zeroFraction

Definition at line 47 of file TickModTreeData.h.


The documentation for this class was generated from the following files: