Import Geant4 5.0.0 source tree
This commit is contained in:
@@ -0,0 +1,62 @@
|
||||
//
|
||||
// ********************************************************************
|
||||
// * 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. *
|
||||
// ********************************************************************
|
||||
//
|
||||
///////////////////////////////////////////////////////////////////////////////
|
||||
// File: CCalSensitiveConfiguration.h
|
||||
// Description: This singleton holds the information given in the file
|
||||
// g4geometry.conf
|
||||
// Use getInstance to retrieve it.
|
||||
///////////////////////////////////////////////////////////////////////////////
|
||||
#ifndef CCalSensitiveConfiguration_h
|
||||
#define CCalSensitiveConfiguration_h 1
|
||||
|
||||
#include "g4std/map"
|
||||
#include "CCalutils.hh"
|
||||
|
||||
class CCalSensitiveConfiguration {
|
||||
|
||||
struct GCInfo {
|
||||
G4String FileName;
|
||||
int SensitiveFlag;
|
||||
};
|
||||
|
||||
typedef G4std::map<G4String, GCInfo, G4std::less<G4String> > CCalSensitiveConfTable;
|
||||
typedef G4std::map<G4String, GCInfo, G4std::less<G4String> >::iterator CCalSensitiveConfIterator;
|
||||
|
||||
|
||||
public:
|
||||
~CCalSensitiveConfiguration() {}
|
||||
|
||||
static CCalSensitiveConfiguration* getInstance();
|
||||
|
||||
int getSensitiveFlag(const G4String& n) /*const*/;
|
||||
G4String getFileName(const G4String& n) /*const*/;
|
||||
|
||||
private:
|
||||
CCalSensitiveConfiguration();
|
||||
|
||||
private:
|
||||
static CCalSensitiveConfiguration* instance;
|
||||
CCalSensitiveConfTable theConfiguration;
|
||||
};
|
||||
|
||||
#endif
|
||||
Reference in New Issue
Block a user