11#include <TLorentzVector.h>
60 std::vector<FCS_hit>
hit;
62 inline float scalingfactor(){
float hitsum =0.;
for (
unsigned int i=0; i<
hit.size(); i++){hitsum+=
hit[i].hit_energy;};
return cell.energy/hitsum;};
75 inline std::vector<FCS_matchedcell>
GetLayer(
int layer){std::vector<FCS_matchedcell> ret;
for (
unsigned i=0; i<
m_vector.size(); i++) {
if (
m_vector[i].cell.sampling == layer) ret.push_back(
m_vector[i]);};
return ret;};
83 inline float scalingfactor(){
float cellsum=0.;
float hitsum=0.;
for (
unsigned int i=0; i<
m_vector.size(); i++){cellsum+=
m_vector[i].cell.energy;
for (
unsigned int j=0; j<
m_vector[i].hit.size(); j++){hitsum+=
m_vector[i].hit[j].hit_energy;};};
return cellsum/hitsum;};
void sort(typename DataModel_detail::iterator< DVL > beg, typename DataModel_detail::iterator< DVL > end)
Specialization of sort for DataVector/List.
DataModel_detail::iterator< DVL > remove_if(typename DataModel_detail::iterator< DVL > beg, typename DataModel_detail::iterator< DVL > end, Predicate pred)
Specialization of remove_if for DataVector/List.
bool operator<(const FCS_cell &rhs) const
bool operator<(const FCS_g4hit &rhs) const
bool operator<(const FCS_hit &rhs) const
std::vector< FCS_g4hit > g4hit
std::vector< FCS_hit > hit
bool operator<(const FCS_matchedcell &rhs) const
void time_trim(float timing_cut)
void time_trim(float timing_cut)
std::vector< FCS_matchedcell > m_vector
void push_back(const FCS_matchedcell &cell)
FCS_matchedcell operator[](unsigned int place)
std::vector< FCS_matchedcell > GetLayer(int layer)