Import Geant4 6.1.0 source tree
This commit is contained in:
@@ -22,7 +22,7 @@
|
||||
//
|
||||
//
|
||||
// $Id: G4CellScoreComposer.cc,v 1.1 2003/10/03 10:10:41 gcosmo Exp $
|
||||
// GEANT4 tag $Name: geant4-06-00 $
|
||||
// GEANT4 tag $Name: geant4-06-00-patch-01 $
|
||||
//
|
||||
// ----------------------------------------------------------------------
|
||||
// GEANT 4 class source file
|
||||
|
||||
@@ -22,7 +22,7 @@
|
||||
//
|
||||
//
|
||||
// $Id: G4CellStoreScorer.cc,v 1.1 2003/10/03 10:10:56 gcosmo Exp $
|
||||
// GEANT4 tag $Name: geant4-06-00 $
|
||||
// GEANT4 tag $Name: geant4-06-00-patch-01 $
|
||||
//
|
||||
// ----------------------------------------------------------------------
|
||||
// GEANT 4 class source file
|
||||
|
||||
@@ -21,11 +21,12 @@
|
||||
// ********************************************************************
|
||||
//
|
||||
//
|
||||
// $Id: G4HCtable.cc,v 1.1 2003/10/03 10:11:12 gcosmo Exp $
|
||||
// GEANT4 tag $Name: geant4-06-00 $
|
||||
// $Id: G4HCtable.cc,v 1.3 2004/03/15 19:16:07 asaim Exp $
|
||||
// GEANT4 tag $Name: geant4-06-01 $
|
||||
//
|
||||
|
||||
#include "G4HCtable.hh"
|
||||
#include "G4VSensitiveDetector.hh"
|
||||
|
||||
G4HCtable::G4HCtable() {;}
|
||||
|
||||
@@ -40,7 +41,7 @@ G4int G4HCtable::Registor(G4String SDname,G4String HCname)
|
||||
return HClist.size();
|
||||
}
|
||||
|
||||
G4int G4HCtable::GetCollectionID(G4String HCname)
|
||||
G4int G4HCtable::GetCollectionID(G4String HCname) const
|
||||
{
|
||||
G4int i = -1;
|
||||
if(HCname.index("/")==std::string::npos) // HCname only
|
||||
@@ -71,4 +72,29 @@ G4int G4HCtable::GetCollectionID(G4String HCname)
|
||||
return i;
|
||||
}
|
||||
|
||||
G4int G4HCtable::GetCollectionID(G4VSensitiveDetector* aSD) const
|
||||
{
|
||||
if(aSD->GetNumberOfCollections()<1)
|
||||
{
|
||||
G4cerr << "Sensitive detector <" << aSD->GetName()
|
||||
<< "> does not have a registered hits collection."
|
||||
<< G4endl;
|
||||
return -1;
|
||||
}
|
||||
if(aSD->GetNumberOfCollections()>1)
|
||||
{
|
||||
G4cerr << "Sensitive detector <" << aSD->GetName()
|
||||
<< "> has more than one registered hits collections."
|
||||
<< G4endl;
|
||||
G4cerr << "Candidates are : ";
|
||||
for(G4int j=0;j<aSD->GetNumberOfCollections();j++)
|
||||
{ G4cerr << aSD->GetCollectionName(j) << " "; }
|
||||
G4cerr << G4endl;
|
||||
return -1;
|
||||
}
|
||||
for(size_t k=0;k<SDlist.size();k++)
|
||||
{ if(SDlist[k]==aSD->GetName()) return k; }
|
||||
return -1;
|
||||
}
|
||||
|
||||
|
||||
|
||||
@@ -22,7 +22,7 @@
|
||||
//
|
||||
//
|
||||
// $Id: G4SDManager.cc,v 1.1 2003/10/03 10:11:26 gcosmo Exp $
|
||||
// GEANT4 tag $Name: geant4-06-00 $
|
||||
// GEANT4 tag $Name: geant4-06-00-patch-01 $
|
||||
//
|
||||
|
||||
#include "G4SDManager.hh"
|
||||
|
||||
@@ -22,7 +22,7 @@
|
||||
//
|
||||
//
|
||||
// $Id: G4SDStructure.cc,v 1.1 2003/10/03 10:11:40 gcosmo Exp $
|
||||
// GEANT4 tag $Name: geant4-06-00 $
|
||||
// GEANT4 tag $Name: geant4-06-00-patch-01 $
|
||||
//
|
||||
|
||||
// G4SDStructure
|
||||
|
||||
@@ -22,7 +22,7 @@
|
||||
//
|
||||
//
|
||||
// $Id: G4SDmessenger.cc,v 1.1 2003/10/03 10:11:54 gcosmo Exp $
|
||||
// GEANT4 tag $Name: geant4-06-00 $
|
||||
// GEANT4 tag $Name: geant4-06-00-patch-01 $
|
||||
//
|
||||
// ---------------------------------------------------------------------
|
||||
|
||||
|
||||
@@ -22,7 +22,7 @@
|
||||
//
|
||||
//
|
||||
// $Id: G4SensitiveVolumeList.cc,v 1.1 2003/10/03 10:12:09 gcosmo Exp $
|
||||
// GEANT4 tag $Name: geant4-06-00 $
|
||||
// GEANT4 tag $Name: geant4-06-00-patch-01 $
|
||||
//
|
||||
// --------------------------------------------------------------
|
||||
// GEANT 4 class implementation file
|
||||
|
||||
@@ -22,7 +22,7 @@
|
||||
//
|
||||
//
|
||||
// $Id: G4TrackLogger.cc,v 1.1 2003/10/03 10:12:26 gcosmo Exp $
|
||||
// GEANT4 tag $Name: geant4-06-00 $
|
||||
// GEANT4 tag $Name: geant4-06-00-patch-01 $
|
||||
//
|
||||
// ----------------------------------------------------------------------
|
||||
// GEANT 4 class source file
|
||||
|
||||
@@ -22,7 +22,7 @@
|
||||
//
|
||||
//
|
||||
// $Id: G4VReadOutGeometry.cc,v 1.1 2003/10/03 10:12:41 gcosmo Exp $
|
||||
// GEANT4 tag $Name: geant4-06-00 $
|
||||
// GEANT4 tag $Name: geant4-06-00-patch-01 $
|
||||
//
|
||||
|
||||
#include "G4VReadOutGeometry.hh"
|
||||
|
||||
@@ -22,7 +22,7 @@
|
||||
//
|
||||
//
|
||||
// $Id: G4VSensitiveDetector.cc,v 1.1 2003/10/03 10:12:56 gcosmo Exp $
|
||||
// GEANT4 tag $Name: geant4-06-00 $
|
||||
// GEANT4 tag $Name: geant4-06-00-patch-01 $
|
||||
//
|
||||
// G4VSensitiveDetector
|
||||
#include "G4VSensitiveDetector.hh"
|
||||
|
||||
Reference in New Issue
Block a user