ATLAS Offline Software
Loading...
Searching...
No Matches
FCS_matchedcell Struct Reference

#include <FCS_Cell.h>

Collaboration diagram for FCS_matchedcell:

Public Member Functions

void clear ()
float scalingfactor ()
bool operator< (const FCS_matchedcell &rhs) const
void sorthit ()
void sortg4hit ()
void sort ()
void time_trim (float timing_cut)

Public Attributes

FCS_cell cell
std::vector< FCS_g4hitg4hit
std::vector< FCS_hithit

Detailed Description

Definition at line 56 of file FCS_Cell.h.

Member Function Documentation

◆ clear()

void FCS_matchedcell::clear ( )
inline

Definition at line 61 of file FCS_Cell.h.

61{g4hit.clear(); hit.clear();};
std::vector< FCS_g4hit > g4hit
Definition FCS_Cell.h:59
std::vector< FCS_hit > hit
Definition FCS_Cell.h:60

◆ operator<()

bool FCS_matchedcell::operator< ( const FCS_matchedcell & rhs) const
inline

Definition at line 63 of file FCS_Cell.h.

63{ return cell.energy > rhs.cell.energy;};
float energy
Definition FCS_Cell.h:26
FCS_cell cell
Definition FCS_Cell.h:58

◆ scalingfactor()

float FCS_matchedcell::scalingfactor ( )
inline

Definition at line 62 of file FCS_Cell.h.

62{float hitsum =0.; for (unsigned int i=0; i<hit.size(); i++){hitsum+=hit[i].hit_energy;}; return cell.energy/hitsum;}; //doesn't check for 0!

◆ sort()

void FCS_matchedcell::sort ( )
inline

Definition at line 66 of file FCS_Cell.h.

66{ sorthit(); sortg4hit();};
void sorthit()
Definition FCS_Cell.h:64
void sortg4hit()
Definition FCS_Cell.h:65

◆ sortg4hit()

void FCS_matchedcell::sortg4hit ( )
inline

Definition at line 65 of file FCS_Cell.h.

65{ std::sort(g4hit.begin(), g4hit.end());};
void sort(typename DataModel_detail::iterator< DVL > beg, typename DataModel_detail::iterator< DVL > end)
Specialization of sort for DataVector/List.

◆ sorthit()

void FCS_matchedcell::sorthit ( )
inline

Definition at line 64 of file FCS_Cell.h.

64{ std::sort(hit.begin(), hit.end());};

◆ time_trim()

void FCS_matchedcell::time_trim ( float timing_cut)
inline

Definition at line 67 of file FCS_Cell.h.

67{ hit.erase(std::remove_if(hit.begin(), hit.end(), [&timing_cut](const FCS_hit &rhs) { return rhs.hit_time>timing_cut;}), hit.end()); g4hit.erase(std::remove_if(g4hit.begin(), g4hit.end(), [&timing_cut](const FCS_g4hit &rhs) { return rhs.hit_time>timing_cut;}),g4hit.end());};
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.

Member Data Documentation

◆ cell

FCS_cell FCS_matchedcell::cell

Definition at line 58 of file FCS_Cell.h.

◆ g4hit

std::vector<FCS_g4hit> FCS_matchedcell::g4hit

Definition at line 59 of file FCS_Cell.h.

◆ hit

std::vector<FCS_hit> FCS_matchedcell::hit

Definition at line 60 of file FCS_Cell.h.


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