| Classes | Job Modules | Data Objects | Services | Algorithms | Tools | Packages | Directories | Tracs |

In This Package:

VolumeIntersectionIntervals::AccumulateIntersections Class Reference

accumulation utility to accumulate the total length of intersections More...

#include <VolumeIntersectionIntervals.h>

List of all members.


Public Member Functions

double operator() (double &Length, const ILVolume::Intersection &intersection) const

Detailed Description

accumulation utility to accumulate the total length of intersections

Author:
Vanya Belyaev Ivan.Belyaev@itep.ru

Definition at line 159 of file VolumeIntersectionIntervals.h.


Member Function Documentation

double VolumeIntersectionIntervals::AccumulateIntersections::operator() ( double &  Length,
const ILVolume::Intersection intersection 
) const [inline]

Definition at line 164 of file VolumeIntersectionIntervals.h.

00165     {
00166       const  Material*  mat          = intersection.second;     
00167       const  ILVolume::Interval& Int = intersection.first;   
00168       return 
00169         ( Length += ( ( 0 == mat ) ? 0 : 
00170                       (Int.second-Int.first) / mat->radiationLength() ) ) ; 
00171     }


The documentation for this class was generated from the following file:
| Classes | Job Modules | Data Objects | Services | Algorithms | Tools | Packages | Directories | Tracs |

Generated on Mon Apr 11 20:00:22 2011 for DetDesc by doxygen 1.4.7