#include <Gridlet.h>
Public Types | |
typedef Deposits< double, 2 > | DepositsType |
typedef std::pair< DepositsType::ConstIter, DepositsType::ConstIter > | DepIterPair |
Public Methods | |
Gridlet (double eta, double phi) | |
initialise a gridlet with incoming particle eta, phi. | |
~Gridlet () | |
void | normalise (double) const |
scale all energy deposits | |
const DepIterPair & | eIters () const |
access to the deposit data structure via const iterators | |
const DepIterPair & | hIters () const |
std::size_t | dimension () const |
define e/hcal elements | |
std::vector< GridletElement * > | eElements () const |
std::vector< GridletElement * > | hElements () const |
double | phi0 () const |
get center phi, eta of the hit cell | |
double | eta0 () const |
double | phi (int index) const |
find the phi, eta coordinates for an index | |
double | eta (int index) const |
double | eSumE () const |
calculate gridlet's e/h calo Sum E (not ET) | |
double | hSumE () const |
double | eSumEt () const |
calculate gridlet's e/h calo Sum ET (not E) | |
double | hSumEt () const |
Private Methods | |
IDeposits & | emDeposits () |
access to the deposit data structure | |
IDeposits & | hadDeposits () |
Private Attributes | |
const double | m_eta0 |
phi, eta for hit cell | |
const double | m_phi0 |
DepositsType | m_eDeps |
DepositsType | m_hDeps |
DepIterPair | m_eDepIters |
DepIterPair | m_hDepIters |
Static Private Attributes | |
const double | s_phiStep |
Coordinates of cell0 Center and cell size. | |
const double | s_etaStep |
Friends | |
class | Showerer |
|
|
|
Definition at line 54 of file Gridlet.h. Referenced by eElements(), and hElements(). |
|
initialise a gridlet with incoming particle eta, phi.
Definition at line 15 of file Gridlet.cxx.
00015 : 00016 m_eta0 ( eta ), 00017 m_phi0 ( phi ), 00018 m_eDeps ( DepositsType() ), 00019 m_hDeps ( DepositsType() ), 00020 m_eDepIters( m_eDeps.begin(), m_eDeps.end() ), 00021 m_hDepIters( m_hDeps.begin(), m_hDeps.end() ) 00022 { 00023 } |
|
Definition at line 58 of file Gridlet.h.
00058 {}; |
|
scale all energy deposits
|
|
access to the deposit data structure via const iterators
Definition at line 117 of file Gridlet.h. References m_eDepIters. Referenced by eElements(), and FastShower::operator<<().
00117 {return m_eDepIters;} |
|
Definition at line 119 of file Gridlet.h. References m_hDepIters. Referenced by hElements(), and FastShower::operator<<().
00119 {return m_hDepIters;} |
|
define e/hcal elements
Definition at line 115 of file Gridlet.h. References m_eDeps. Referenced by eta(), FastShower::operator<<(), and phi().
00115 {return m_eDeps.dimension();} |
|
Definition at line 62 of file Gridlet.cxx. References DepIterPair, and eIters(). Referenced by eSumE(), and eSumEt().
00062 { 00063 00064 DepIterPair dip = this->eIters(); 00065 00066 FillGridletElementVector fv( this); 00067 00068 return ( (std::for_each(dip.first, dip.second, fv)).elements() ); 00069 } |
|
Definition at line 71 of file Gridlet.cxx. References DepIterPair, and hIters(). Referenced by hSumE(), and hSumEt().
00071 { 00072 00073 DepIterPair dip = this->hIters(); 00074 00075 FillGridletElementVector fv( this); 00076 00077 return ( (std::for_each(dip.first, dip.second, fv)).elements() ); 00078 } |
|
get center phi, eta of the hit cell
Definition at line 25 of file Gridlet.cxx. References m_phi0. Referenced by FastShower::operator<<().
00025 { return m_phi0;} |
|
Definition at line 27 of file Gridlet.cxx. References m_eta0. Referenced by FastShower::operator<<().
00027 { return m_eta0;} |
|
find the phi, eta coordinates for an index
Definition at line 29 of file Gridlet.cxx. References dimension(), m_phi0, and s_phiStep. Referenced by FastShower::FillGridletElementVector::operator()().
|
|
Definition at line 34 of file Gridlet.cxx. References dimension(), m_eta0, and s_etaStep. Referenced by FastShower::FillGridletElementVector::operator()().
|
|
calculate gridlet's e/h calo Sum E (not ET)
Definition at line 81 of file Gridlet.cxx. References eElements(). Referenced by FastShower::ShowererPtr::shower().
00081 { 00082 double sum = 0.0; 00083 std::vector<GridletElement*> elements = eElements(); 00084 std::vector<GridletElement*>::const_iterator itr, end; 00085 itr = elements.begin(); 00086 end = elements.end(); 00087 while (itr != end) 00088 sum += (*itr++)->e(); 00089 return sum; 00090 } |
|
Definition at line 91 of file Gridlet.cxx. References hElements(). Referenced by FastShower::ShowererPtr::shower().
00091 { 00092 double sum = 0.0; 00093 std::vector<GridletElement*> elements = hElements(); 00094 std::vector<GridletElement*>::const_iterator itr, end; 00095 itr = elements.begin(); 00096 end = elements.end(); 00097 while (itr != end) 00098 sum += (*itr++)->e(); 00099 return sum; 00100 } |
|
calculate gridlet's e/h calo Sum ET (not E)
Definition at line 103 of file Gridlet.cxx. References eElements(). Referenced by FastShower::operator<<().
00103 { 00104 double sum = 0.0; 00105 std::vector<GridletElement*> elements = eElements(); 00106 std::vector<GridletElement*>::const_iterator itr, end; 00107 itr = elements.begin(); 00108 end = elements.end(); 00109 while (itr != end) 00110 sum += (*itr++)->et(); 00111 return sum; 00112 } |
|
Definition at line 113 of file Gridlet.cxx. References hElements(). Referenced by FastShower::operator<<().
00113 { 00114 double sum = 0.0; 00115 std::vector<GridletElement*> elements = hElements(); 00116 std::vector<GridletElement*>::const_iterator itr, end; 00117 itr = elements.begin(); 00118 end = elements.end(); 00119 while (itr != end) 00120 sum += (*itr++)->et(); 00121 return sum; 00122 } |
|
access to the deposit data structure
Definition at line 113 of file Gridlet.h. References m_eDeps. Referenced by FastShower::Showerer::shower().
00113 {return m_eDeps;} |
|
Definition at line 114 of file Gridlet.h. References m_hDeps. Referenced by FastShower::Showerer::shower().
00114 {return m_hDeps;} |
|
|
|
Coordinates of cell0 Center and cell size.
Referenced by phi(). |
|
Referenced by eta(). |
|
phi, eta for hit cell
|
|
|
|
Definition at line 102 of file Gridlet.h. Referenced by dimension(), and emDeposits(). |
|
Definition at line 103 of file Gridlet.h. Referenced by hadDeposits(). |
|
Definition at line 105 of file Gridlet.h. Referenced by eIters(). |
|
Definition at line 106 of file Gridlet.h. Referenced by hIters(). |