64 lines
2.4 KiB
C++
64 lines
2.4 KiB
C++
//
|
|
// ********************************************************************
|
|
// * DISCLAIMER *
|
|
// * *
|
|
// * The following disclaimer summarizes all the specific disclaimers *
|
|
// * of contributors to this software. The specific disclaimers,which *
|
|
// * govern, are listed with their locations in: *
|
|
// * http://cern.ch/geant4/license *
|
|
// * *
|
|
// * Neither the authors of this software system, nor their employing *
|
|
// * institutes,nor the agencies providing financial support for this *
|
|
// * work make any representation or warranty, express or implied, *
|
|
// * regarding this software system or assume any liability for its *
|
|
// * use. *
|
|
// * *
|
|
// * This code implementation is the intellectual property of the *
|
|
// * GEANT4 collaboration. *
|
|
// * By copying, distributing or modifying the Program (or any work *
|
|
// * based on the Program) you indicate your acceptance of this *
|
|
// * statement, and all its terms. *
|
|
// ********************************************************************
|
|
//
|
|
// $Id: ProcessesCount.hh,v 1.2 2004/09/29 10:37:55 maire Exp $
|
|
// GEANT4 tag $Name: geant4-08-00 $
|
|
//
|
|
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
|
|
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
|
|
|
|
#ifndef ProcessesCount_HH
|
|
#define ProcessesCount_HH
|
|
|
|
#include "globals.hh"
|
|
#include <vector>
|
|
|
|
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
|
|
|
|
class OneProcessCount
|
|
{
|
|
public:
|
|
OneProcessCount(G4String name) {Name=name; Counter=0;};
|
|
~OneProcessCount() {};
|
|
|
|
public:
|
|
G4String GetName() {return Name;};
|
|
G4int GetCounter() {return Counter;};
|
|
void Count() {Counter++;};
|
|
|
|
private:
|
|
G4String Name; // process name
|
|
G4int Counter; // process counter
|
|
};
|
|
|
|
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
|
|
|
|
typedef std::vector<OneProcessCount*> ProcessesCount;
|
|
|
|
#endif
|
|
|
|
|
|
|
|
|
|
|
|
|