1 #ifndef __PHG4SHOWER_V1_H__
2 #define __PHG4SHOWER_V1_H__
22 void identify(std::ostream& os = std::cout)
const;
38 float get_x()
const {
return _pos[0];}
39 void set_x(
float x) {_pos[0] = x;}
41 float get_y()
const {
return _pos[1];}
42 void set_y(
float y) {_pos[1] = y;}
44 float get_z()
const {
return _pos[2];}
45 void set_z(
float z) {_pos[2] = z;}
50 float get_covar(
unsigned int i,
unsigned int j)
const;
51 void set_covar(
unsigned int i,
unsigned int j,
float entry);
54 void set_nhits(
int volume,
unsigned int nhits) {_nhits[volume] = nhits;}
57 void set_edep(
int volume,
float edep) {_edep[volume] = edep;}
60 void set_eion(
int volume,
float eion) {_eion[volume] = eion;}
63 void set_light_yield(
int volume,
float light_yield) {_light_yield[volume] = light_yield;}
66 void set_eh_ratio(
int volume,
float eh_ratio) {_eh_ratio[volume] = eh_ratio;}
104 unsigned int covar_index(
unsigned int i,
unsigned int j)
const;
107 int _parent_particle_id;
108 int _parent_shower_id;
111 std::map<int, unsigned int> _nhits;
112 std::map<int, float> _edep;
113 std::map<int, float> _eion;
114 std::map<int, float> _light_yield;
115 std::map<int, float> _eh_ratio;
118 std::set<int> _g4particle_ids;
119 std::set<int> _g4vertex_ids;
120 std::map<int,std::set<PHG4HitDefs::keytype> > _g4hit_ids;
HitIdMap::const_iterator HitIdConstIter
ParticleIdSet::iterator ParticleIdIter
HitIdMap::iterator HitIdIter
VertexIdSet::iterator VertexIdIter
ParticleIdSet::const_iterator ParticleIdConstIter
VertexIdSet::const_iterator VertexIdConstIter
int isValid() const
isValid returns non zero if object contains vailid data
size_t size_g4hit_id() const
void set_position(unsigned int coor, float xi)
PHG4Shower::VertexIdConstIter begin_g4vertex_id() const
PHG4Shower::ParticleIdConstIter end_g4particle_id() const
bool empty_g4vertex_id() const
PHG4Shower::HitIdIter begin_g4hit_id()
PHG4Shower::VertexIdIter end_g4vertex_id()
bool empty_g4hit_id() const
int get_parent_particle_id() const
void set_eion(int volume, float eion)
int get_parent_shower_id() const
void add_g4vertex_id(int id)
PHG4Shower::ParticleIdConstIter begin_g4particle_id() const
void set_nhits(int volume, unsigned int nhits)
void set_edep(int volume, float edep)
size_t remove_g4particle_id(int id)
PHG4Shower::HitIdIter find_g4hit_id(int volume)
float get_light_yield(int volume) const
float get_edep(int volume) const
unsigned int get_nhits(int volume) const
PHG4Shower::ParticleIdIter begin_g4particle_id()
void set_parent_shower_id(int parent_shower_id)
PHG4Shower::VertexIdIter begin_g4vertex_id()
void set_light_yield(int volume, float light_yield)
bool empty_g4particle_id() const
PHG4Shower::HitIdIter end_g4hit_id()
float get_covar(unsigned int i, unsigned int j) const
PHG4Shower::ParticleIdIter end_g4particle_id()
PHG4Shower::HitIdConstIter end_g4hit_id() const
float get_eh_ratio(int volume) const
void identify(std::ostream &os=std::cout) const
float get_position(unsigned int coor) const
PHG4Shower::HitIdConstIter find_g4hit_id(int volume) const
void clear_g4particle_id()
size_t remove_g4vertex_id(int id)
size_t remove_g4hit_id(int volume, int id)
PHG4Shower * Clone() const
PHG4Shower::HitIdConstIter begin_g4hit_id() const
size_t size_g4particle_id() const
void set_parent_particle_id(int parent_particle_id)
PHG4Shower::VertexIdConstIter end_g4vertex_id() const
void add_g4particle_id(int id)
void add_g4hit_id(int volume, PHG4HitDefs::keytype id)
void set_covar(unsigned int i, unsigned int j, float entry)
size_t size_g4vertex_id() const
void set_eh_ratio(int volume, float eh_ratio)
float get_eion(int volume) const
size_t remove_g4hit_volume(int volume)