Import Geant4 7.1.0 source tree

This commit is contained in:
Gabriele Cosmo
2016-06-09 12:11:21 +02:00
parent 516dbf1a58
commit d93e1e39a9
5384 changed files with 125662 additions and 82444 deletions
@@ -20,8 +20,8 @@
// * statement, and all its terms. *
// ********************************************************************
//
// $Id: G4DigitRootIO.cc,v 1.4 2002/12/13 14:45:42 gunter Exp $
// GEANT4 tag $Name: geant4-07-00-cand-01 $
// $Id: G4DigitRootIO.cc,v 1.5 2005/04/22 16:26:47 gcosmo Exp $
// GEANT4 tag $Name: geant4-07-01 $
//
// File: G4DigitRootIO.cc
//
@@ -51,13 +51,13 @@ G4DigitRootIO* G4DigitRootIO::GetDigitRootIO()
}
// Implementation of Store
bool G4DigitRootIO::Store(const G4DCofThisEvent* dcevt)
bool G4DigitRootIO::Store(const G4DCofThisEvent*)
{
return true;
}
// Implementation of Retrieve
bool G4DigitRootIO::Retrieve(G4DCofThisEvent*& dcevt)
bool G4DigitRootIO::Retrieve(G4DCofThisEvent*&)
{
return true;
}
@@ -20,8 +20,8 @@
// * statement, and all its terms. *
// ********************************************************************
//
// $Id: G4EventRootIO.cc,v 1.3 2002/12/13 14:45:42 gunter Exp $
// GEANT4 tag $Name: geant4-07-00-cand-01 $
// $Id: G4EventRootIO.cc,v 1.4 2005/04/22 16:26:47 gcosmo Exp $
// GEANT4 tag $Name: geant4-07-01 $
//
// File: G4EventRootIO.cc
//
@@ -41,8 +41,8 @@ G4EventRootIO::G4EventRootIO( G4PersistencyManager* pc )
}
// Implementation of Store
// G4bool G4EventRootIO::Store( HepMC::GenEvent* hepevt, G4MCTEvent* mctevt, const G4Event* g4evt)
G4bool G4EventRootIO::Store( HepMC::GenEvent* hepevt, const G4Event* g4evt)
// G4bool G4EventRootIO::Store( HepMC::GenEvent* hepevt, const G4Event* g4evt)
G4bool G4EventRootIO::Store( HepMC::GenEvent*, const G4Event*)
{
// if (hepevt == 0) return false; // no event generated...
@@ -52,19 +52,19 @@ G4bool G4EventRootIO::Store( HepMC::GenEvent* hepevt, const G4Event* g4evt)
}
// Implementation of Store
G4bool G4EventRootIO::Store( const G4Event* anEvent )
G4bool G4EventRootIO::Store( const G4Event* )
{
return true;
}
// Implementation of Retrieve
G4bool G4EventRootIO::Retrieve( G4Pevent*& anEvent )
G4bool G4EventRootIO::Retrieve( G4Pevent*& )
{
return true;
}
// Implementation of Retrieve
G4bool G4EventRootIO::Retrieve( G4Event*& anEvent )
G4bool G4EventRootIO::Retrieve( G4Event*& )
{
return true;
}
@@ -20,8 +20,8 @@
// * statement, and all its terms. *
// ********************************************************************
//
// $Id: G4HepMCRootIO.cc,v 1.4 2002/12/13 14:45:42 gunter Exp $
// GEANT4 tag $Name: geant4-07-00-cand-01 $
// $Id: G4HepMCRootIO.cc,v 1.5 2005/04/22 16:26:47 gcosmo Exp $
// GEANT4 tag $Name: geant4-07-01 $
//
// File: G4HepMCRootIO.cc
//
@@ -31,7 +31,7 @@
#include "G4HepMCRootIO.hh"
// Implementation of Store
bool G4HepMCRootIO::Store(HepMC::GenEvent* evt)
bool G4HepMCRootIO::Store(HepMC::GenEvent*)
{
// G4RootIOManager* pm =
// (G4RootIOManager*) G4PersistencyCenter::GetPersistencyCenter()
@@ -43,7 +43,7 @@ bool G4HepMCRootIO::Store(HepMC::GenEvent* evt)
}
// Implementation of Retrieve
bool G4HepMCRootIO::Retrieve(HepMC::GenEvent*& evt, int id)
bool G4HepMCRootIO::Retrieve(HepMC::GenEvent*& evt, int)
{
// bool st = false;
evt = 0;
@@ -21,7 +21,7 @@
// ********************************************************************
//
// $Id: G4HitRootIO.cc,v 1.4 2002/12/13 14:45:42 gunter Exp $
// GEANT4 tag $Name: geant4-07-00-cand-01 $
// GEANT4 tag $Name: geant4-07-01 $
//
// File: G4HitRootIO.cc
//
@@ -20,8 +20,8 @@
// * statement, and all its terms. *
// ********************************************************************
//
// $Id: G4MCTruthRootIO.cc,v 1.4 2002/12/13 14:45:42 gunter Exp $
// GEANT4 tag $Name: geant4-07-00-cand-01 $
// $Id: G4MCTruthRootIO.cc,v 1.5 2005/04/22 16:26:47 gcosmo Exp $
// GEANT4 tag $Name: geant4-07-01 $
//
// File: G4MCTruthRootIO.cc
//
@@ -33,13 +33,13 @@
G4MCTruthRootIO* G4MCTruthRootIO::thePointer=G4MCTruthRootIO::GetMCTruthRootIO();
// Implementation of Store
bool G4MCTruthRootIO::Store(G4MCTEvent* mctevent)
bool G4MCTruthRootIO::Store(G4MCTEvent*)
{
return true;
}
// Implementation of Retrieve
bool G4MCTruthRootIO::Retrieve(G4MCTEvent* & mctevent)
bool G4MCTruthRootIO::Retrieve(G4MCTEvent* &)
{
return true;
}
@@ -20,8 +20,8 @@
// * statement, and all its terms. *
// ********************************************************************
//
// $Id: G4RootEvent.cc,v 1.3 2002/12/13 14:45:42 gunter Exp $
// GEANT4 tag $Name: geant4-07-00-cand-01 $
// $Id: G4RootEvent.cc,v 1.4 2005/04/22 16:26:47 gcosmo Exp $
// GEANT4 tag $Name: geant4-07-01 $
//
// File: G4RootEvent.cc
//
@@ -46,7 +46,7 @@ G4RootEvent::~G4RootEvent()
G4Pevent* G4RootEvent::MakeTransientObject()
{
HepMC::GenEvent* hepevt = 0;
G4MCTEvent* mctevt = 0;
// G4MCTEvent* mctevt = 0;
G4Event* g4evt = 0;
// G4Pevent* anEvt = new G4Pevent(hepevt, mctevt, g4evt);
G4Pevent* anEvt = new G4Pevent(hepevt, g4evt);
@@ -21,7 +21,7 @@
// ********************************************************************
//
// $Id: G4RootIOManager.cc,v 1.4 2002/12/13 14:45:42 gunter Exp $
// GEANT4 tag $Name: geant4-07-00-cand-01 $
// GEANT4 tag $Name: geant4-07-01 $
//
// File: G4RootIOManager.cc
//
@@ -20,8 +20,8 @@
// * statement, and all its terms. *
// ********************************************************************
//
// $Id: G4RootTransManager.cc,v 1.4 2002/12/13 14:45:42 gunter Exp $
// GEANT4 tag $Name: geant4-07-00-cand-01 $
// $Id: G4RootTransManager.cc,v 1.5 2005/04/22 16:26:47 gcosmo Exp $
// GEANT4 tag $Name: geant4-07-01 $
//
// File: G4RootTransManager.cc
//
@@ -44,7 +44,7 @@ G4RootTransManager::G4RootTransManager()
}
// Implementation of SelectReadFile
bool G4RootTransManager::SelectReadFile(std::string obj, std::string file)
bool G4RootTransManager::SelectReadFile(std::string, std::string file)
{
// obtain TFile pointer for "file" for reading
TFile* tfile = LookUp(file, "READ");
@@ -65,7 +65,7 @@ bool G4RootTransManager::SelectReadFile(std::string obj, std::string file)
}
// Implementation of SelectWriteFile
bool G4RootTransManager::SelectWriteFile(std::string obj, std::string file)
bool G4RootTransManager::SelectWriteFile(std::string, std::string file)
{
// obtain TFile pointer for "obj" and "file" for writing
TFile* tfile = LookUp(file, "WRITE");
@@ -120,7 +120,7 @@ int G4RootTransManager::BufferSize()
}
// Implementation of LookUp
TFile* G4RootTransManager::LookUp(string file, string mode)
TFile* G4RootTransManager::LookUp(std::string file, std::string mode)
{
if ( (*(f_catalog.find(file))).second != 0 ) {
return f_catalog[file];
@@ -128,16 +128,16 @@ TFile* G4RootTransManager::LookUp(string file, string mode)
if ( mode == "WRITE" ) {
f_catalog[file] = new TFile(file.c_str(), "UPDATE");
cout << "LookUp: File: " << file << " for write" << endl;
G4cout << "LookUp: File: " << file << " for write" << G4endl;
f_catalog[file]->SetCompressionLevel(f_comp);
return f_catalog[file];
} else if ( mode == "READ" ) {
f_catalog[file] = new TFile(file.c_str(), "READ");
cout << "LookUp: File: " << file << " for read" << endl;
G4cout << "LookUp: File: " << file << " for read" << G4endl;
return f_catalog[file];
} else {
cout << "LookUp: File: " << file << ", f_catalog=0" << endl;
G4cout << "LookUp: File: " << file << ", f_catalog=0" << G4endl;
return 0;
}
}