RecoTree.cxx
Go to the documentation of this file.
1 /*
2  * RecoTree.cxx
3  *
4  * Created on: Feb 18, 2021
5  * Author: chilgenb
6  */
7 
8 #include "garana/Base/RecoTree.h"
9 
10 using namespace garana;
11 using std::vector;
12 
13 const float RecoTree::CalClustMaxDepositFrac(const size_t& icluster) const{
14  return CalClustMaxDeposit(icluster)/CalClustTrueEnergy(icluster);
15 }
16 
17 const float RecoTree::TrackMaxDepositFrac(const size_t& itrack) const{
18  //if
19  return TrackMaxDeposit(itrack)/TrackTrueEnergy(itrack);
20 }
21 
22 void RecoTree::GetTrackG4PIndices (const size_t& itrk, vector<UInt_t>& ig4ps ) const {
23  //std::cout << "filling given track to g4p vec with " << fTrackG4PIndices->at(itrk).size() << " entries" << std::endl;
24  ig4ps = fTrackG4PIndices->at(itrk);
25 }
26 
27 void RecoTree::GetVertexTrackIndices (const size_t& ivtx, vector<UInt_t>& itracks) const {
28  itracks = fVertTrackIndices->at(ivtx);
29 }
30 
31 void RecoTree::GetVeeTrackIndices (const size_t& ivee, vector<UInt_t>& itracks) const {
32  itracks = fVeeTrackIndices->at(ivee);
33 }
34 
35 void RecoTree::GetCalClusterTrackIndices(const size_t& iclust, vector<UInt_t>& itracks) const {
36  itracks = fCalClusterTrackIndices->at(iclust);
37 }
38 
39 void RecoTree::GetCalClusterG4Indices(const size_t& iclust, vector<UInt_t>& ig4ps) const {
40  ig4ps = fCalClusterG4Indices->at(iclust);
41 }
vector< vector< UInt_t > > * fTrackG4PIndices
Definition: RecoTree.h:108
void GetTrackG4PIndices(const size_t &itrk, vector< UInt_t > &ig4ps) const
given a track index, fill a given vector with matched G4 particle indices
Definition: RecoTree.cxx:22
vector< vector< UInt_t > > * fCalClusterTrackIndices
Definition: RecoTree.h:111
virtual const float CalClustMaxDeposit(const size_t &icluster) const =0
maximum true deposited energy from a single MCParticle
vector< vector< UInt_t > > * fVertTrackIndices
Definition: RecoTree.h:109
struct vector vector
void GetCalClusterTrackIndices(const size_t &iclust, vector< UInt_t > &itracks) const
given a calocluster index, fill a given vector with matched track indices
Definition: RecoTree.cxx:35
void GetVertexTrackIndices(const size_t &ivtx, vector< UInt_t > &itracks) const
given a vertex index, fill a given vector with matched track indices
Definition: RecoTree.cxx:27
virtual const float CalClustTrueEnergy(const size_t &icluster) const =0
total associated true energy deposited with ith cluster
const float CalClustMaxDepositFrac(const size_t &icluster) const
largest fraction of total energy contributed by single MCParticle
Definition: RecoTree.cxx:13
void GetVeeTrackIndices(const size_t &ivee, vector< UInt_t > &itracks) const
given a vee index, fill a given vector with matched G4 particle indices
Definition: RecoTree.cxx:31
vector< vector< UInt_t > > * fCalClusterG4Indices
Definition: RecoTree.h:112
ig4ps
Definition: tracks.py:192
virtual const float TrackTrueEnergy(const size_t &itrack) const =0
total associated true energy deposited with ith cluster
void GetCalClusterG4Indices(const size_t &iclust, vector< UInt_t > &ig4ps) const
given a calocluster index, fill a given vector with matched G4Particle indices
Definition: RecoTree.cxx:39
vector< vector< UInt_t > > * fVeeTrackIndices
Definition: RecoTree.h:110
virtual const float TrackMaxDeposit(const size_t &itrack) const =0
maximum true deposited energy from a single MCParticle
const float TrackMaxDepositFrac(const size_t &itrack) const
largest fraction of total energy contributed by single MCParticle
Definition: RecoTree.cxx:17