All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Public Member Functions | Public Attributes | Private Attributes | List of all members
SpacePointAnalysis::HitTupleObj Class Reference

Public Member Functions

 HitTupleObj ()
 
void setBranches (TTree *tree)
 
void fill ()
 
void clear ()
 
void fillHitInfo (const recob::Hit *hit, int hitWidth, int clusterSize)
 

Public Attributes

std::vector< int > fCryostatVec
 
std::vector< int > fTPCVec
 
std::vector< int > fTicksTotHitVec
 
std::vector< int > fTicksVec
 
std::vector< int > fNDFHitVec
 
std::vector< int > fMultiplicityHitVec
 
std::vector< int > fLocalIndexHitVec
 
std::vector< float > fChiSquareHitVec
 
std::vector< float > fSummedADCHitVec
 
std::vector< float > fIntegralHitVec
 
std::vector< float > fPHHitVec
 
std::vector< float > fRMSHitVec
 
std::vector< int > fPHOrderHitVec
 
std::vector< int > fClusterSizeVec
 

Private Attributes

TTree * fTree
 

Detailed Description

Definition at line 65 of file SpacePointAnalysis_tool.cc.

Constructor & Destructor Documentation

SpacePointAnalysis::HitTupleObj::HitTupleObj ( )
inline

Definition at line 68 of file SpacePointAnalysis_tool.cc.

Member Function Documentation

void SpacePointAnalysis::HitTupleObj::clear ( )
inline

Definition at line 96 of file SpacePointAnalysis_tool.cc.

97  {
98  fCryostatVec.clear();
99  fTPCVec.clear();
100  fTicksTotHitVec.clear();
101  fTicksVec.clear();
102  fNDFHitVec.clear();
103  fMultiplicityHitVec.clear();
104  fLocalIndexHitVec.clear();
105  fChiSquareHitVec.clear();
106  fSummedADCHitVec.clear();
107  fIntegralHitVec.clear();
108  fPHHitVec.clear();
109  fRMSHitVec.clear();
110  fPHOrderHitVec.clear();
111  fClusterSizeVec.clear();
112  }
void SpacePointAnalysis::HitTupleObj::fill ( )
inline

Definition at line 91 of file SpacePointAnalysis_tool.cc.

92  {
93  if (fTree) fTree->Fill();
94  }
void SpacePointAnalysis::HitTupleObj::fillHitInfo ( const recob::Hit hit,
int  hitWidth,
int  clusterSize 
)
inline

Definition at line 114 of file SpacePointAnalysis_tool.cc.

115  {
116  fCryostatVec.emplace_back(hit->WireID().Cryostat);
117  fTPCVec.emplace_back(hit->WireID().TPC);
118  fTicksTotHitVec.emplace_back(hitWidth);
119  fTicksVec.emplace_back(hit->PeakTime());
120  fNDFHitVec.emplace_back(hit->DegreesOfFreedom());
121  fMultiplicityHitVec.emplace_back(hit->Multiplicity());
122  fLocalIndexHitVec.emplace_back(hit->LocalIndex());
123  fChiSquareHitVec.emplace_back(hit->GoodnessOfFit());
124  fSummedADCHitVec.emplace_back(hit->SummedADC());
125  fIntegralHitVec.emplace_back(hit->Integral());
126  fPHHitVec.emplace_back(hit->PeakAmplitude());
127  fRMSHitVec.emplace_back(hit->RMS());
128  fClusterSizeVec.emplace_back(clusterSize);
129  }
short int LocalIndex() const
How well do we believe we know this hit?
Definition: Hit.h:227
geo::WireID WireID() const
Definition: Hit.h:233
float RMS() const
RMS of the hit shape, in tick units.
Definition: Hit.h:220
int DegreesOfFreedom() const
Definition: Hit.h:229
CryostatID_t Cryostat
Index of cryostat.
Definition: geo_types.h:212
float Integral() const
Integral under the calibrated signal waveform of the hit, in tick x ADC units.
Definition: Hit.h:224
float GoodnessOfFit() const
Degrees of freedom in the determination of the hit signal shape (-1 by default)
Definition: Hit.h:228
short int Multiplicity() const
How many hits could this one be shared with.
Definition: Hit.h:226
float PeakAmplitude() const
The estimated amplitude of the hit at its peak, in ADC units.
Definition: Hit.h:221
float PeakTime() const
Time of the signal peak, in tick units.
Definition: Hit.h:218
float SummedADC() const
The sum of calibrated ADC counts of the hit (0. by default)
Definition: Hit.h:223
TPCID_t TPC
Index of the TPC within its cryostat.
Definition: geo_types.h:406
void SpacePointAnalysis::HitTupleObj::setBranches ( TTree *  tree)
inline

Definition at line 70 of file SpacePointAnalysis_tool.cc.

71  {
72  tree->Branch("Cryostat", "std::vector<int>", &fCryostatVec);
73  tree->Branch("TPC", "std::vector<int>", &fTPCVec);
74  tree->Branch("TicksTotHit", "std::vector<int>", &fTicksTotHitVec);
75  tree->Branch("Tick", "std::vector<int>", &fTicksVec);
76  tree->Branch("NDF", "std::vector<int>", &fNDFHitVec); //< Number of degrees of freedom of hit fit
77  tree->Branch("Multiplicity", "std::vector<int>", &fMultiplicityHitVec); //< Multiplicity of the snippet the hit is on
78  tree->Branch("LocalIndex", "std::vector<int>", &fLocalIndexHitVec); //< The index of the hit within the snippet
79  tree->Branch("ChiSquare", "std::vector<float>", &fChiSquareHitVec); //< Chi square of fit
80  tree->Branch("SummedADC", "std::vector<float>", &fSummedADCHitVec); //< Sum of all ADC values start/end of snippet
81  tree->Branch("Integral", "std::vector<float>", &fIntegralHitVec); //< Integrated charge +/- n sigma about peak center
82  tree->Branch("PulseHeight", "std::vector<float>", &fPHHitVec); //< Pulse height of hit
83  tree->Branch("RMS", "std::vector<float>", &fRMSHitVec); //< RMS of hit (from fit)
84  tree->Branch("ClusterSize", "std::vector<int>", &fClusterSizeVec); //< Number space points in cluster for this hit
85 
86  fTree = tree;
87 
88  return;
89  }

Member Data Documentation

std::vector<float> SpacePointAnalysis::HitTupleObj::fChiSquareHitVec

Definition at line 139 of file SpacePointAnalysis_tool.cc.

std::vector<int> SpacePointAnalysis::HitTupleObj::fClusterSizeVec

Definition at line 146 of file SpacePointAnalysis_tool.cc.

std::vector<int> SpacePointAnalysis::HitTupleObj::fCryostatVec

Definition at line 132 of file SpacePointAnalysis_tool.cc.

std::vector<float> SpacePointAnalysis::HitTupleObj::fIntegralHitVec

Definition at line 141 of file SpacePointAnalysis_tool.cc.

std::vector<int> SpacePointAnalysis::HitTupleObj::fLocalIndexHitVec

Definition at line 138 of file SpacePointAnalysis_tool.cc.

std::vector<int> SpacePointAnalysis::HitTupleObj::fMultiplicityHitVec

Definition at line 137 of file SpacePointAnalysis_tool.cc.

std::vector<int> SpacePointAnalysis::HitTupleObj::fNDFHitVec

Definition at line 136 of file SpacePointAnalysis_tool.cc.

std::vector<float> SpacePointAnalysis::HitTupleObj::fPHHitVec

Definition at line 142 of file SpacePointAnalysis_tool.cc.

std::vector<int> SpacePointAnalysis::HitTupleObj::fPHOrderHitVec

Definition at line 145 of file SpacePointAnalysis_tool.cc.

std::vector<float> SpacePointAnalysis::HitTupleObj::fRMSHitVec

Definition at line 143 of file SpacePointAnalysis_tool.cc.

std::vector<float> SpacePointAnalysis::HitTupleObj::fSummedADCHitVec

Definition at line 140 of file SpacePointAnalysis_tool.cc.

std::vector<int> SpacePointAnalysis::HitTupleObj::fTicksTotHitVec

Definition at line 134 of file SpacePointAnalysis_tool.cc.

std::vector<int> SpacePointAnalysis::HitTupleObj::fTicksVec

Definition at line 135 of file SpacePointAnalysis_tool.cc.

std::vector<int> SpacePointAnalysis::HitTupleObj::fTPCVec

Definition at line 133 of file SpacePointAnalysis_tool.cc.

TTree* SpacePointAnalysis::HitTupleObj::fTree
private

Definition at line 149 of file SpacePointAnalysis_tool.cc.


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