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

Public Member Functions

 HitSimulationTupleObj ()
 
void setBranches (TTree *tree)
 
void fill ()
 
void clear ()
 
void fillSimInfo (int ticksSimChannel, int ticksSimChanMost, float totDepEne, float totNumElectrons, float bestDepEne, float bestNumElectrons, float maxDepEneTick)
 
void fillMixedInfo (int hitWidth, int ticksToMax, int deltaTicks)
 
void fillHitInfo (const recob::Hit *hit, int hitOrder)
 

Public Attributes

std::vector< int > fTicksSimChannelVec
 
std::vector< int > fTicksSimChanMostVec
 
std::vector< int > fTicksTotHitVec
 
std::vector< int > fTicksMaxSimRelVec
 
std::vector< int > fTicksDiffSimHitVec
 
std::vector< float > fEneTotDepHitVec
 
std::vector< float > fNElecTotHitVec
 
std::vector< float > fEneBestDepHitVec
 
std::vector< float > fNElecBestHitVec
 
std::vector< float > fEneMaxDepHitVec
 
std::vector< int > fNDFHitVec
 
std::vector< int > fMultiplicityHitVec
 
std::vector< int > fLocalIndexHitVec
 
std::vector< int > fTimeOrderHitVec
 
std::vector< float > fChiSquareHitVec
 
std::vector< float > fSummedADCHitVec
 
std::vector< float > fIntegralHitVec
 
std::vector< float > fPHHitVec
 
std::vector< float > fRMSHitVec
 
std::vector< float > fPHFractionVec
 
std::vector< int > fPHOrderHitVec
 

Private Attributes

TTree * fTree
 

Detailed Description

Definition at line 176 of file SpacePointAnalysisMC_tool.cc.

Constructor & Destructor Documentation

SpacePointAnalysisMC::HitSimulationTupleObj::HitSimulationTupleObj ( )
inline

Member Function Documentation

void SpacePointAnalysisMC::HitSimulationTupleObj::clear ( )
inline

Definition at line 216 of file SpacePointAnalysisMC_tool.cc.

217  {
218  fTicksSimChannelVec.clear();
219  fTicksSimChanMostVec.clear();
220  fTicksTotHitVec.clear();
221  fTicksMaxSimRelVec.clear();
222  fTicksDiffSimHitVec.clear();
223  fEneTotDepHitVec.clear();
224  fNElecTotHitVec.clear();
225  fEneBestDepHitVec.clear();
226  fNElecBestHitVec.clear();
227  fEneMaxDepHitVec.clear();
228  fNDFHitVec.clear();
229  fMultiplicityHitVec.clear();
230  fLocalIndexHitVec.clear();
231  fTimeOrderHitVec.clear();
232  fChiSquareHitVec.clear();
233  fSummedADCHitVec.clear();
234  fIntegralHitVec.clear();
235  fPHHitVec.clear();
236  fRMSHitVec.clear();
237  fPHFractionVec.clear();
238 
239  fPHOrderHitVec.clear();
240  }
void SpacePointAnalysisMC::HitSimulationTupleObj::fill ( )
inline

Definition at line 211 of file SpacePointAnalysisMC_tool.cc.

212  {
213  if (fTree) fTree->Fill();
214  }
void SpacePointAnalysisMC::HitSimulationTupleObj::fillHitInfo ( const recob::Hit hit,
int  hitOrder 
)
inline

Definition at line 269 of file SpacePointAnalysisMC_tool.cc.

270  {
271  fNDFHitVec.emplace_back(hit->DegreesOfFreedom());
272  fMultiplicityHitVec.emplace_back(hit->Multiplicity());
273  fLocalIndexHitVec.emplace_back(hit->LocalIndex());
274  fTimeOrderHitVec.emplace_back(hitOrder);
275  fChiSquareHitVec.emplace_back(hit->GoodnessOfFit());
276  fSummedADCHitVec.emplace_back(hit->SummedADC());
277  fIntegralHitVec.emplace_back(hit->Integral());
278  fPHHitVec.emplace_back(hit->PeakAmplitude());
279  fRMSHitVec.emplace_back(hit->RMS());
280  }
short int LocalIndex() const
How well do we believe we know this hit?
Definition: Hit.h:227
float RMS() const
RMS of the hit shape, in tick units.
Definition: Hit.h:220
int DegreesOfFreedom() const
Definition: Hit.h:229
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 SummedADC() const
The sum of calibrated ADC counts of the hit (0. by default)
Definition: Hit.h:223
void SpacePointAnalysisMC::HitSimulationTupleObj::fillMixedInfo ( int  hitWidth,
int  ticksToMax,
int  deltaTicks 
)
inline

Definition at line 260 of file SpacePointAnalysisMC_tool.cc.

263  {
264  fTicksTotHitVec.emplace_back(hitWidth);
265  fTicksMaxSimRelVec.emplace_back(ticksToMax);
266  fTicksDiffSimHitVec.emplace_back(deltaTicks);
267  }
void SpacePointAnalysisMC::HitSimulationTupleObj::fillSimInfo ( int  ticksSimChannel,
int  ticksSimChanMost,
float  totDepEne,
float  totNumElectrons,
float  bestDepEne,
float  bestNumElectrons,
float  maxDepEneTick 
)
inline

Definition at line 242 of file SpacePointAnalysisMC_tool.cc.

250  {
251  fTicksSimChannelVec.emplace_back(ticksSimChannel);
252  fTicksSimChanMostVec.emplace_back(ticksSimChanMost);
253  fEneTotDepHitVec.emplace_back(totDepEne);
254  fNElecTotHitVec.emplace_back(totNumElectrons);
255  fEneBestDepHitVec.emplace_back(bestDepEne);
256  fNElecBestHitVec.emplace_back(bestNumElectrons);
257  fEneMaxDepHitVec.emplace_back(maxDepEneTick);
258  }
void SpacePointAnalysisMC::HitSimulationTupleObj::setBranches ( TTree *  tree)
inline

Definition at line 181 of file SpacePointAnalysisMC_tool.cc.

182  {
183  tree->Branch("TicksSimChannel", "std::vector<int>", &fTicksSimChannelVec);
184  tree->Branch("TicksSimChanMost", "std::vector<int>", &fTicksSimChanMostVec);
185  tree->Branch("TicksTotHit", "std::vector<int>", &fTicksTotHitVec);
186  tree->Branch("TicksMaxSimRel", "std::vector<int>", &fTicksMaxSimRelVec);
187  tree->Branch("TicksDiffSimHit", "std::vector<int>", &fTicksDiffSimHitVec);
188  tree->Branch("EneTotDepHit", "std::vector<float>", &fEneTotDepHitVec);
189  tree->Branch("NElecTotalHit", "std::vector<float>", &fNElecTotHitVec); //< Total number elecrons (all sources) for hit
190  tree->Branch("EneBestDepHit", "std::vector<float>", &fEneBestDepHitVec);
191  tree->Branch("NElecBestHit", "std::vector<float>", &fNElecBestHitVec); //< # electrons from primary track
192  tree->Branch("EneMaxDepHit", "std::vector<float>", &fEneMaxDepHitVec);
193  tree->Branch("NDF", "std::vector<int>", &fNDFHitVec); //< Number of degrees of freedom of hit fit
194  tree->Branch("Multiplicity", "std::vector<int>", &fMultiplicityHitVec); //< Multiplicity of the snippet the hit is on
195  tree->Branch("LocalIndex", "std::vector<int>", &fLocalIndexHitVec); //< The index of the hit within the snippet
196  tree->Branch("TimeOrder", "std::vector<int>", &fTimeOrderHitVec); //< Time order of the hit (selection variable)
197  tree->Branch("ChiSquare", "std::vector<float>", &fChiSquareHitVec); //< Chi square of fit
198  tree->Branch("SummedADC", "std::vector<float>", &fSummedADCHitVec); //< Sum of all ADC values start/end of snippet
199  tree->Branch("Integral", "std::vector<float>", &fIntegralHitVec); //< Integrated charge +/- n sigma about peak center
200  tree->Branch("PulseHeight", "std::vector<float>", &fPHHitVec); //< Pulse height of hit
201  tree->Branch("RMS", "std::vector<float>", &fRMSHitVec); //< RMS of hit (from fit)
202  tree->Branch("PHFraction", "std::vector<float>", &fPHFractionVec); //< Fraction of max pulse height this snippet
203 
204  tree->Branch("PulseHeightOrder", "std::vector<int>", &fPHOrderHitVec); //< Local index ordered by pulse height
205 
206  fTree = tree;
207 
208  return;
209  }

Member Data Documentation

std::vector<float> SpacePointAnalysisMC::HitSimulationTupleObj::fChiSquareHitVec

Definition at line 297 of file SpacePointAnalysisMC_tool.cc.

std::vector<float> SpacePointAnalysisMC::HitSimulationTupleObj::fEneBestDepHitVec

Definition at line 290 of file SpacePointAnalysisMC_tool.cc.

std::vector<float> SpacePointAnalysisMC::HitSimulationTupleObj::fEneMaxDepHitVec

Definition at line 292 of file SpacePointAnalysisMC_tool.cc.

std::vector<float> SpacePointAnalysisMC::HitSimulationTupleObj::fEneTotDepHitVec

Definition at line 288 of file SpacePointAnalysisMC_tool.cc.

std::vector<float> SpacePointAnalysisMC::HitSimulationTupleObj::fIntegralHitVec

Definition at line 299 of file SpacePointAnalysisMC_tool.cc.

std::vector<int> SpacePointAnalysisMC::HitSimulationTupleObj::fLocalIndexHitVec

Definition at line 295 of file SpacePointAnalysisMC_tool.cc.

std::vector<int> SpacePointAnalysisMC::HitSimulationTupleObj::fMultiplicityHitVec

Definition at line 294 of file SpacePointAnalysisMC_tool.cc.

std::vector<int> SpacePointAnalysisMC::HitSimulationTupleObj::fNDFHitVec

Definition at line 293 of file SpacePointAnalysisMC_tool.cc.

std::vector<float> SpacePointAnalysisMC::HitSimulationTupleObj::fNElecBestHitVec

Definition at line 291 of file SpacePointAnalysisMC_tool.cc.

std::vector<float> SpacePointAnalysisMC::HitSimulationTupleObj::fNElecTotHitVec

Definition at line 289 of file SpacePointAnalysisMC_tool.cc.

std::vector<float> SpacePointAnalysisMC::HitSimulationTupleObj::fPHFractionVec

Definition at line 303 of file SpacePointAnalysisMC_tool.cc.

std::vector<float> SpacePointAnalysisMC::HitSimulationTupleObj::fPHHitVec

Definition at line 300 of file SpacePointAnalysisMC_tool.cc.

std::vector<int> SpacePointAnalysisMC::HitSimulationTupleObj::fPHOrderHitVec

Definition at line 304 of file SpacePointAnalysisMC_tool.cc.

std::vector<float> SpacePointAnalysisMC::HitSimulationTupleObj::fRMSHitVec

Definition at line 301 of file SpacePointAnalysisMC_tool.cc.

std::vector<float> SpacePointAnalysisMC::HitSimulationTupleObj::fSummedADCHitVec

Definition at line 298 of file SpacePointAnalysisMC_tool.cc.

std::vector<int> SpacePointAnalysisMC::HitSimulationTupleObj::fTicksDiffSimHitVec

Definition at line 287 of file SpacePointAnalysisMC_tool.cc.

std::vector<int> SpacePointAnalysisMC::HitSimulationTupleObj::fTicksMaxSimRelVec

Definition at line 286 of file SpacePointAnalysisMC_tool.cc.

std::vector<int> SpacePointAnalysisMC::HitSimulationTupleObj::fTicksSimChanMostVec

Definition at line 284 of file SpacePointAnalysisMC_tool.cc.

std::vector<int> SpacePointAnalysisMC::HitSimulationTupleObj::fTicksSimChannelVec

Definition at line 283 of file SpacePointAnalysisMC_tool.cc.

std::vector<int> SpacePointAnalysisMC::HitSimulationTupleObj::fTicksTotHitVec

Definition at line 285 of file SpacePointAnalysisMC_tool.cc.

std::vector<int> SpacePointAnalysisMC::HitSimulationTupleObj::fTimeOrderHitVec

Definition at line 296 of file SpacePointAnalysisMC_tool.cc.

TTree* SpacePointAnalysisMC::HitSimulationTupleObj::fTree
private

Definition at line 307 of file SpacePointAnalysisMC_tool.cc.


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