#include <TryToShower.h>
Collaboration diagram for Atlfast::TryToShower:
Public Member Functions | |
TryToShower (Calorimeter *c) | |
bool | operator() (const ITransportedParticle *) |
Private Attributes | |
Calorimeter * | m_calorimeter |
Definition at line 16 of file TryToShower.h.
Atlfast::TryToShower::TryToShower | ( | Calorimeter * | c | ) |
bool Atlfast::TryToShower::operator() | ( | const ITransportedParticle * | ) |
Definition at line 22 of file TryToShower.cxx.
00022 { 00023 00024 const GridletForger* gf = m_calorimeter->gridletForger(); 00025 if(gf == 0) return false; 00026 00027 const HepMC::GenParticle* particle = tp->particle(); 00028 00029 ParticleInfo pi( tp->phi(), 00030 tp->eta(), 00031 tp->E(), 00032 particle->pdg_id() 00033 ); 00034 Gridlet* gridlet = gf->makeGridlet(pi); 00035 00036 if(!gridlet) { 00037 // log<<MSG::DEBUG<<"Particle refused by Showerer "<<endl; 00038 return false; 00039 } 00040 // Give the gridlets to the calorimeter 00041 m_calorimeter->addGridlet(gridlet); 00042 00043 return true; 00044 }
Calorimeter* Atlfast::TryToShower::m_calorimeter [private] |
Definition at line 21 of file TryToShower.h.