Main Page   Namespace List   Class Hierarchy   Compound List   File List   Compound Members   File Members  

DigitizerInterface.cxx

Go to the documentation of this file.
00001 // $Id: DigitizerInterface.cxx,v 1.1.1.1 1999/12/20 22:28:41 burnett Exp $
00002 // Project: gismo
00003 //  Author: Toby Burnett
00004 
00005 #ifdef __GNUG__
00006 #pragma implementation
00007 #endif
00008 
00009 #include "gismo/DigitizerInterface.h"
00010 #include "gismo/MCParticle.h"
00011 
00012 void
00013 DigitizerInterface::score(MCParticle* track)
00014 {
00015     float deltaE = track->energyLoss();
00016     if( deltaE<=0 || track->mass()==0 && track->status()==MCParticle::ALIVE)
00017           return;
00018 
00019     // pass track info on to the digitizer
00020     const Ray* line = track->segment();
00021     if( line )
00022         m_digitizer.addHit(*line, deltaE);
00023     else
00024         m_digitizer.addHit(Ray(track->position(),track->direction()), deltaE);
00025 
00026     return;
00027 }
00028 
00029 GeomObject&
00030 DigitizerInterface::transform(const CoordTransform& t)
00031 {
00032   return m_digitizer.transform(t);
00033 }
00034 
00035 void
00036 DigitizerInterface::clear() {
00037   m_digitizer.clear();
00038 }
00039 
00040 void
00041 DigitizerInterface::printOn( std::ostream& o) const {
00042   m_digitizer.printOn(o);
00043 }

Generated at Mon Nov 26 18:18:32 2001 by doxygen1.2.3 written by Dimitri van Heesch, © 1997-2000