Atlfast::TryToShower Class Reference

#include <TryToShower.h>

Collaboration diagram for Atlfast::TryToShower:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 TryToShower (Calorimeter *c)
bool operator() (const ITransportedParticle *)

Private Attributes

Calorimeterm_calorimeter

Detailed Description

Definition at line 16 of file TryToShower.h.


Constructor & Destructor Documentation

Atlfast::TryToShower::TryToShower ( Calorimeter c  ) 

Definition at line 20 of file TryToShower.cxx.

00020                                         :m_calorimeter(c){
00021   }


Member Function Documentation

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   }  


Member Data Documentation

Calorimeter* Atlfast::TryToShower::m_calorimeter [private]

Definition at line 21 of file TryToShower.h.


The documentation for this class was generated from the following files:
Generated on Mon Sep 24 14:19:42 2007 for AtlfastAlgs by  doxygen 1.5.1