ATLAS Offline Software
Public Member Functions | Public Attributes | List of all members
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 58 of file FCS_Cell.h.

Member Function Documentation

◆ clear()

void FCS_matchedcell::clear ( )
inline

Definition at line 63 of file FCS_Cell.h.

63 {g4hit.clear(); hit.clear();};

◆ operator<()

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

Definition at line 65 of file FCS_Cell.h.

65 { return cell.energy > rhs.cell.energy;};

◆ scalingfactor()

float FCS_matchedcell::scalingfactor ( )
inline

Definition at line 64 of file FCS_Cell.h.

64 {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 68 of file FCS_Cell.h.

68 { sorthit(); sortg4hit();};

◆ sortg4hit()

void FCS_matchedcell::sortg4hit ( )
inline

Definition at line 67 of file FCS_Cell.h.

67 { std::sort(g4hit.begin(), g4hit.end());};

◆ sorthit()

void FCS_matchedcell::sorthit ( )
inline

Definition at line 66 of file FCS_Cell.h.

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

◆ time_trim()

void FCS_matchedcell::time_trim ( float  timing_cut)
inline

Definition at line 69 of file FCS_Cell.h.

69 { /*std::cout <<"Cutting: "<<timing_cut<<" from: "<<hit.size()<<" "<<g4hit.size()<<std::endl;*/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());/*std::cout <<"remaining: "<<hit.size()<<" "<<g4hit.size()<<std::endl;*/};

Member Data Documentation

◆ cell

FCS_cell FCS_matchedcell::cell

Definition at line 60 of file FCS_Cell.h.

◆ g4hit

std::vector<FCS_g4hit> FCS_matchedcell::g4hit

Definition at line 61 of file FCS_Cell.h.

◆ hit

std::vector<FCS_hit> FCS_matchedcell::hit

Definition at line 62 of file FCS_Cell.h.


The documentation for this struct was generated from the following file:
FCS_matchedcell::cell
FCS_cell cell
Definition: FCS_Cell.h:60
FCS_g4hit
Definition: FCS_Cell.h:48
FCS_hit
Definition: FCS_Cell.h:34
FCS_matchedcell::sortg4hit
void sortg4hit()
Definition: FCS_Cell.h:67
FCS_matchedcell::g4hit
std::vector< FCS_g4hit > g4hit
Definition: FCS_Cell.h:61
FCS_matchedcell::sorthit
void sorthit()
Definition: FCS_Cell.h:66
lumiFormat.i
int i
Definition: lumiFormat.py:92
FCS_cell::energy
float energy
Definition: FCS_Cell.h:34
std::sort
void sort(typename std::reverse_iterator< DataModel_detail::iterator< DVL > > beg, typename std::reverse_iterator< DataModel_detail::iterator< DVL > > end, const Compare &comp)
Specialization of sort for DataVector/List.
Definition: DVL_algorithms.h:623
FCS_matchedcell::hit
std::vector< FCS_hit > hit
Definition: FCS_Cell.h:62