#include <Cell.h>
Inheritance diagram for Atlfast::Cell:
Public Methods | |
Cell () | |
Default Constructor. | |
Cell (const CellDescriptor &cellID) | |
Copy Constructor from CellDescriptor. | |
Cell (const Cell &) | |
Copy Constructor from Cell. | |
Cell & | operator= (const Cell &) |
Assignment Operator. | |
virtual | ~Cell () |
Default Destructor. | |
virtual const CLID & | clID () const |
Athena contained object method. | |
void | newHit (const GenParticle *part) |
Deposits HepMC::GenParticle within itself. | |
void | newHit (const EPileupDeposit *) |
Energy Pileup deposited into cell. | |
void | setPt (HepLorentzVector &) |
Set pT to a new value. | |
void | reset () |
Resets itself to an 'empty' state. | |
virtual HepLorentzVector | momentum () const |
IKinematic interface method. | |
virtual double | eta () const |
IKinematic interface method. | |
virtual double | phi () const |
IKinematic interface method. | |
virtual double | pT () const |
IKinematic interface method. | |
virtual double | eT () const |
IKinematic interface method. | |
virtual double | mT () const |
IKinematic interface method. | |
int | numberOfHits () const |
Returns number of hits. | |
std::vector< const GenParticle * > | particles () const |
Returns a vector of HepMC::GenParticles which have been deposited in the cell. | |
Static Public Methods | |
const CLID & | classID () |
Athena contained object method. | |
Private Attributes | |
CellDescriptor | m_id |
Cell identifier. | |
double | m_ptSum |
Pt sum in cell. | |
HepLorentzVector | m_momentum |
std::vector< const GenParticle * > | m_particles |
Vector of HepMC::GenParticles which have deposited energy. |
Cells honour the IKinematic interface and thus contain the documented kinematic methods.
Definition at line 53 of file Cell.h.
|
Default Constructor.
Definition at line 13 of file Cell.cxx.
00013 : 00014 ContainedObject(), 00015 AssociationManager(), 00016 m_id(), 00017 m_ptSum(0.), 00018 m_momentum(0.), 00019 m_particles(){ 00020 } |
|
Copy Constructor from CellDescriptor.
Definition at line 21 of file Cell.cxx.
00021 : 00022 ContainedObject(), 00023 AssociationManager(), 00024 m_id(cellID), 00025 m_ptSum(0.), 00026 m_momentum(0.), 00027 m_particles(){ 00028 } |
|
Copy Constructor from Cell.
Definition at line 42 of file Cell.cxx.
00042 : 00043 ContainedObject(), 00044 IKinematic(), 00045 AssociationManager(){ 00046 *this=otherCell; //no deep copy of vector of pointers as is a 00047 //ContainedObject 00048 } |
|
Default Destructor.
Definition at line 67 of file Cell.h.
00067 { } |
|
Athena contained object method.
Definition at line 69 of file Cell.h.
00069 { return CLID_ATLFAST_CELL; }
|
|
Athena contained object method.
Definition at line 71 of file Cell.h.
00071 { return CLID_ATLFAST_CELL; }
|
|
IKinematic interface method.
Implements Atlfast::IKinematic. Definition at line 108 of file Cell.h. References m_ptSum.
00108 {return m_ptSum;} |
|
IKinematic interface method.
Implements Atlfast::IKinematic. Definition at line 96 of file Cell.h. References Atlfast::CellDescriptor::eta(), and m_id.
00096 {return m_id.eta();} |
|
IKinematic interface method.
Implements Atlfast::IKinematic. Definition at line 50 of file Cell.cxx. References Atlfast::CellDescriptor::eta(), m_id, Atlfast::CellDescriptor::phi(), and pT().
|
|
IKinematic interface method.
Implements Atlfast::IKinematic. Definition at line 112 of file Cell.h.
00112 {return 0;} // HTP FIXME!!!! |
|
Energy Pileup deposited into cell.
Definition at line 67 of file Cell.cxx. References Atlfast::EPileupDeposit::energyDeposit(), and m_ptSum.
00067 { 00068 m_ptSum += part->energyDeposit(); 00069 } |
|
Deposits HepMC::GenParticle within itself.
Definition at line 62 of file Cell.cxx. References m_particles, and m_ptSum.
00062 { 00063 m_ptSum += part->momentum().perp(); 00064 m_particles.push_back(part); 00065 } |
|
Returns number of hits.
Definition at line 117 of file Cell.h. References m_particles.
00117 {return m_particles.size();} |
|
Assignment Operator.
Definition at line 30 of file Cell.cxx. References m_id, m_particles, and m_ptSum.
00030 { 00031 00032 if (this!=&otherCell){ 00033 this->m_id=otherCell.m_id; 00034 this->m_ptSum=otherCell.m_ptSum; 00035 this->m_particles=otherCell.m_particles;//m_particles is a 00036 //ContainedObject therefore do not deep copy 00037 } 00038 00039 return *this; 00040 } |
|
Returns a vector of HepMC::GenParticles which have been deposited in the cell.
Definition at line 79 of file Cell.cxx. References m_particles, and particles(). Referenced by particles().
00079 { 00080 std::vector<const GenParticle*> particles; 00081 //std::copy(m_particles.begin(),m_particles.end(),particles.begin()); 00082 //for(DataVector<const GenParticle>::const_iterator itr = m_particles.begin(); 00083 // itr != m_particles.end();++itr) particles.push_back(*itr); 00084 return m_particles; 00085 } |
|
IKinematic interface method.
Implements Atlfast::IKinematic. Definition at line 100 of file Cell.h. References m_id, and Atlfast::CellDescriptor::phi().
00100 {return m_id.phi();} |
|
IKinematic interface method.
Implements Atlfast::IKinematic. Definition at line 104 of file Cell.h. References m_ptSum. Referenced by momentum().
00104 {return m_ptSum;} |
|
Resets itself to an 'empty' state.
Reimplemented from Atlfast::AssociationManager. Definition at line 71 of file Cell.cxx. References m_particles, and m_ptSum.
00071 { 00072 m_ptSum=0.0; 00073 m_particles.erase(m_particles.begin(), m_particles.end()); 00074 } |
|
Set pT to a new value.
Definition at line 75 of file Cell.cxx. References m_ptSum.
00075 { 00076 m_ptSum=vec.perp(); 00077 } |
|
Cell identifier.
Definition at line 130 of file Cell.h. Referenced by eta(), momentum(), operator=(), and phi(). |
|
|
|
Vector of HepMC::GenParticles which have deposited energy.
Definition at line 140 of file Cell.h. Referenced by newHit(), numberOfHits(), operator=(), particles(), and reset(). |
|
Pt sum in cell.
Definition at line 134 of file Cell.h. Referenced by eT(), newHit(), operator=(), pT(), reset(), and setPt(). |