/search.css" rel="stylesheet" type="text/css"/> /search.js">
| Classes | Job Modules | Data Objects | Services | Algorithms | Tools | Packages | Directories | Tracs |

In This Package:

Public Member Functions | Public Attributes
DsFastMuonStackAction::DECounter Class Reference

List of all members.

Public Member Functions

 DECounter (G4int maxcount=0, G4double aWeight=1, G4bool udw=false)
void operator++ (G4int)
void reset (G4bool all=false)
G4bool full ()
G4double weight ()

Public Attributes

G4int maxCount
G4int count
G4double nTracks
G4bool filled
G4double aweight
G4bool useDynWt

Detailed Description

Definition at line 46 of file DsFastMuonStackAction.h.


Constructor & Destructor Documentation

DsFastMuonStackAction::DECounter::DECounter ( G4int  maxcount = 0,
G4double  aWeight = 1,
G4bool  udw = false 
) [inline]

Definition at line 89 of file DsFastMuonStackAction.h.

    : maxCount(maxcount)
    , count(0)
    , nTracks(0.)
    , filled(false)
    , aweight(aWeight) 
    , useDynWt(udw)
{}

Member Function Documentation

void DsFastMuonStackAction::DECounter::operator++ ( G4int  ) [inline]

Definition at line 107 of file DsFastMuonStackAction.h.

                                                    {
    count++;
    if ( count>=maxCount ) filled=true;
}
void DsFastMuonStackAction::DECounter::reset ( G4bool  all = false) [inline]

Definition at line 98 of file DsFastMuonStackAction.h.

                                                    {
  if (all) { 
      filled=false; 
      count=0;
      nTracks=0.;
  }
  else if ( !filled ) count=0; 
}
G4bool DsFastMuonStackAction::DECounter::full ( ) [inline]

Definition at line 51 of file DsFastMuonStackAction.h.

{ return filled; }
G4double DsFastMuonStackAction::DECounter::weight ( ) [inline]

Definition at line 58 of file DsFastMuonStackAction.h.

                              { 
              return useDynWt ? G4double(count)/G4double(maxCount) 
                : aweight ; }

Member Data Documentation

Definition at line 52 of file DsFastMuonStackAction.h.

Definition at line 53 of file DsFastMuonStackAction.h.

Definition at line 54 of file DsFastMuonStackAction.h.

Definition at line 55 of file DsFastMuonStackAction.h.

Definition at line 56 of file DsFastMuonStackAction.h.

Definition at line 57 of file DsFastMuonStackAction.h.


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

Generated on Fri May 16 2014 10:17:58 for DetSim by doxygen 1.7.4