Import Geant4 10.6.0 source tree

This commit is contained in:
Gabriele Cosmo
2019-12-06 15:12:28 +01:00
parent b2a62ae692
commit 5baee230e9
2997 changed files with 141580 additions and 98673 deletions
@@ -0,0 +1,53 @@
//
// ********************************************************************
// * License and Disclaimer *
// * *
// * The Geant4 software is copyright of the Copyright Holders of *
// * the Geant4 Collaboration. It is provided under the terms and *
// * conditions of the Geant4 Software License, included in the file *
// * LICENSE and available at http://cern.ch/geant4/license . These *
// * include a list of copyright holders. *
// * *
// * 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. Please see the license in the file LICENSE and URL above *
// * for the full disclaimer and the limitation of liability. *
// * *
// * This code implementation is the result of the scientific and *
// * technical work of the GEANT4 collaboration. *
// * By using, copying, modifying or distributing the software (or *
// * any work based on the software) you agree to acknowledge its *
// * use in resulting scientific publications, and indicate your *
// * acceptance of all terms of the Geant4 Software license. *
// ********************************************************************
//
//
/// \file ExGflashActionInitialization.hh
/// \brief Definition of the ExGflashActionInitialization class
#ifndef ExGflashActionInitialization_h
#define ExGflashActionInitialization_h 1
#include "G4VUserActionInitialization.hh"
/// Action initialization class.
class ExGflashDetectorConstruction;
class ExGflashActionInitialization : public G4VUserActionInitialization
{
public:
ExGflashActionInitialization(ExGflashDetectorConstruction* det);
virtual ~ExGflashActionInitialization();
virtual void BuildForMaster() const;
virtual void Build() const;
private:
ExGflashDetectorConstruction* fDetector;
};
#endif
@@ -0,0 +1,97 @@
// ********************************************************************
// * License and Disclaimer *
// * *
// * The Geant4 software is copyright of the Copyright Holders of *
// * the Geant4 Collaboration. It is provided under the terms and *
// * conditions of the Geant4 Software License, included in the file *
// * LICENSE and available at http://cern.ch/geant4/license . These *
// * include a list of copyright holders. *
// * *
// * 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. Please see the license in the file LICENSE and URL above *
// * for the full disclaimer and the limitation of liability. *
// * *
// * This code implementation is the result of the scientific and *
// * technical work of the GEANT4 collaboration. *
// * By using, copying, modifying or distributing the software (or *
// * any work based on the software) you agree to acknowledge its *
// * use in resulting scientific publications, and indicate your *
// * acceptance of all terms of the Geant4 Software license. *
// ********************************************************************
//
//
/// \file ExGflashDetectorConstruction.hh
/// \brief Definition of the ExGflashDetectorConstruction class
//
#ifndef ExGflashDetectorConstruction_h
#define ExGflashDetectorConstruction_h 1
#include "G4VUserDetectorConstruction.hh"
#include "ExGflashSensitiveDetector.hh"
#include "G4ThreeVector.hh"
#include "G4Cache.hh"
#include "globals.hh"
class G4LogicalVolume;
class G4VPhysicalVolume;
class G4Material;
class G4Region;
class GFlashHomoShowerParameterisation;
class GFlashShowerModel;
class GFlashHitMaker;
class GFlashParticleBounds;
class ExGflashMessenger;
class ExGflashDetectorConstruction : public G4VUserDetectorConstruction
{
public:
ExGflashDetectorConstruction();
~ExGflashDetectorConstruction();
virtual G4VPhysicalVolume* Construct();
virtual void ConstructSDandField();
void SetLBining (G4ThreeVector);
void SetRBining (G4ThreeVector);
void SetVerbose(G4int val) {fVerbose = val;}
void SetMaterial(G4String mat);
G4int GetVerbose() const {return fVerbose;}
G4int GetnLtot() const {return fNLtot;}
G4int GetnRtot() const {return fNRtot;}
G4double GetdLradl() const {return fDLradl;}
G4double GetdRradl() const {return fDRradl;}
G4double GetSDRadLen() const {return fSDRadLen;}
private:
G4int fNbOfCrystals; // cube of nb x nb crystals
G4double fCrystalWidth; // x,y size
G4double fCrystalLength;// z size
G4LogicalVolume* fCrystal_log;
G4Material* fDetMat;
G4Region* fRegion;
G4double fSDRadLen; // SD material Rad Lenght
G4int fVerbose;
G4int fNLtot, fNRtot; // nb of bins: longitudinal and radial
G4double fDLradl, fDRradl; // bin thickness (in radl unit)
ExGflashMessenger* fGflashMessenger;
static G4ThreadLocal GFlashShowerModel* fFastShowerModel;
static G4ThreadLocal GFlashHomoShowerParameterisation* fParameterisation;
static G4ThreadLocal GFlashParticleBounds* fParticleBounds;
static G4ThreadLocal GFlashHitMaker* fHitMaker;
};
#endif
@@ -0,0 +1,51 @@
//
// ********************************************************************
// * License and Disclaimer *
// * *
// * The Geant4 software is copyright of the Copyright Holders of *
// * the Geant4 Collaboration. It is provided under the terms and *
// * conditions of the Geant4 Software License, included in the file *
// * LICENSE and available at http://cern.ch/geant4/license . These *
// * include a list of copyright holders. *
// * *
// * 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. Please see the license in the file LICENSE and URL above *
// * for the full disclaimer and the limitation of liability. *
// * *
// * This code implementation is the result of the scientific and *
// * technical work of the GEANT4 collaboration. *
// * By using, copying, modifying or distributing the software (or *
// * any work based on the software) you agree to acknowledge its *
// * use in resulting scientific publications, and indicate your *
// * acceptance of all terms of the Geant4 Software license. *
// ********************************************************************
//
//
/// \file ExGflashEventAction.hh
/// \brief Definition of the ExGflashEventAction class
//
#ifndef ExGflashEventAction_h
#define ExGflashEventAction_h
#include "G4UserEventAction.hh"
#include "globals.hh"
class ExGflashDetectorConstruction;
class ExGflashEventAction: public G4UserEventAction {
public:
ExGflashEventAction(ExGflashDetectorConstruction* det);
~ExGflashEventAction();
virtual void BeginOfEventAction(const G4Event*);
virtual void EndOfEventAction(const G4Event*);
private:
G4int fCalorimeterCollectionId;
ExGflashDetectorConstruction* fDet;
};
#endif
@@ -0,0 +1,64 @@
//
// ********************************************************************
// * License and Disclaimer *
// * *
// * The Geant4 software is copyright of the Copyright Holders of *
// * the Geant4 Collaboration. It is provided under the terms and *
// * conditions of the Geant4 Software License, included in the file *
// * LICENSE and available at http://cern.ch/geant4/license . These *
// * include a list of copyright holders. *
// * *
// * 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. Please see the license in the file LICENSE and URL above *
// * for the full disclaimer and the limitation of liability. *
// * *
// * This code implementation is the result of the scientific and *
// * technical work of the GEANT4 collaboration. *
// * By using, copying, modifying or distributing the software (or *
// * any work based on the software) you agree to acknowledge its *
// * use in resulting scientific publications, and indicate your *
// * acceptance of all terms of the Geant4 Software license. *
// ********************************************************************
//
//
/// \file ExGflashHistoManager.hh
/// \brief Definition of the ExGflasHistoManager class
#ifndef ExGflashHistoManager_h
#define ExGflashHistoManager_h 1
#include "globals.hh"
#include "g4root.hh"
class ExGflashDetectorConstruction;
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
class ExGflashHistoManager
{
public:
ExGflashHistoManager(ExGflashDetectorConstruction* myDet);
~ExGflashHistoManager();
void InitializePerEvent();
void FillPerEvent();
inline void FillPerTrack(G4double,G4double);
inline void FillPerStep (G4double,G4int,G4int);
private:
void Book();
G4String fFileName;
ExGflashDetectorConstruction* fDet;
G4int fVerbose;
};
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
#endif
@@ -0,0 +1,93 @@
//
// ********************************************************************
// * License and Disclaimer *
// * *
// * The Geant4 software is copyright of the Copyright Holders of *
// * the Geant4 Collaboration. It is provided under the terms and *
// * conditions of the Geant4 Software License, included in the file *
// * LICENSE and available at http://cern.ch/geant4/license . These *
// * include a list of copyright holders. *
// * *
// * 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. Please see the license in the file LICENSE and URL above *
// * for the full disclaimer and the limitation of liability. *
// * *
// * This code implementation is the result of the scientific and *
// * technical work of the GEANT4 collaboration. *
// * By using, copying, modifying or distributing the software (or *
// * any work based on the software) you agree to acknowledge its *
// * use in resulting scientific publications, and indicate your *
// * acceptance of all terms of the Geant4 Software license. *
// ********************************************************************
//
//
/// \file ExGflashHit.hh
/// \brief Definition of the ExGflashHit class
//
#ifndef ExGflashHit_h
#define ExGflashHit_h 1
#include "G4VHit.hh"
#include "G4THitsCollection.hh"
#include "G4Allocator.hh"
#include "G4ThreeVector.hh"
#include "G4RotationMatrix.hh"
class G4LogicalVolume;
class ExGflashHit : public G4VHit
{
public:
ExGflashHit();
~ExGflashHit();
ExGflashHit(const ExGflashHit &right);
const ExGflashHit& operator=(const ExGflashHit &right);
G4bool operator==(const ExGflashHit &right) const;
inline void *operator new(size_t);
inline void operator delete(void *aHit);
void *operator new(size_t,void*p){return p;}
#ifndef G4NOT_ISO_DELETES
void operator delete(void *,void*){}
#endif
virtual void Draw();
virtual void Print();
private:
G4double fEdep;
G4ThreeVector fPos;
public:
inline void SetEdep(G4double de)
{ fEdep = de; };
inline void AddEdep(G4double de)
{ fEdep += de; };
inline G4double GetEdep()
{ return fEdep; };
inline void SetPos(G4ThreeVector xyz)
{ fPos = xyz; };
inline G4ThreeVector GetPos()
{ return fPos; };
};
typedef G4THitsCollection<ExGflashHit> ExGflashHitsCollection;
extern G4ThreadLocal G4Allocator<ExGflashHit>* ExGflashHitAllocator;
inline void* ExGflashHit::operator new(size_t)
{
if(!ExGflashHitAllocator) ExGflashHitAllocator = new G4Allocator<ExGflashHit>;
return (void *) ExGflashHitAllocator->MallocSingle();
}
inline void ExGflashHit::operator delete(void *aHit)
{
ExGflashHitAllocator->FreeSingle((ExGflashHit*) aHit);
}
#endif
@@ -0,0 +1,148 @@
//
// ********************************************************************
// * License and Disclaimer *
// * *
// * The Geant4 software is copyright of the Copyright Holders of *
// * the Geant4 Collaboration. It is provided under the terms and *
// * conditions of the Geant4 Software License, included in the file *
// * LICENSE and available at http://cern.ch/geant4/license . These *
// * include a list of copyright holders. *
// * *
// * 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. Please see the license in the file LICENSE and URL above *
// * for the full disclaimer and the limitation of liability. *
// * *
// * This code implementation is the result of the scientific and *
// * technical work of the GEANT4 collaboration. *
// * By using, copying, modifying or distributing the software (or *
// * any work based on the software) you agree to acknowledge its *
// * use in resulting scientific publications, and indicate your *
// * acceptance of all terms of the Geant4 Software license. *
// ********************************************************************
//
//
/// \file ExGflashHomoShowerTuning.hh
/// \brief Definition of the ExGflashHomoShowerTuning class
//
// ---------------------------------------------------------------
// GEANT 4 class header file
//
// ExGflashHomoShowerTuning
//
// Class description:
//
// Tuning class for GFlash homogeneous shower parameterisation.
// Definitions:
// <t>: shower center of gravity
// T: Depth at shower maximum
// Ec: Critical energy
// X0: Radiation length
// y = E/Ec
//
// Homogeneous media:
// Average shower profile
// (1/E)(dE(t)/dt) = f(t)
// = (beta*t)**(alpha-1)*beta*std::exp(-beta*t)/Gamma(alpha)
// where Gamma is the Gamma function
//
// <t> = alpha/beta
// T = (alpha-1)/beta
// and
// T = ln(y) + t1
// alpha = a1+(a2+a3/Z)ln(y)
// Author: J.P. Wellisch - October 2004
//---------------------------------------------------------------
#ifndef ExGflashHomoShowerTuning_hh
#define ExGflashHomoShowerTuning_hh
#include "GVFlashHomoShowerTuning.hh"
class ExGflashHomoShowerTuning : public GVFlashHomoShowerTuning
{
public:
ExGflashHomoShowerTuning() {}
virtual ~ExGflashHomoShowerTuning() {}
public: // with description
G4double ParAveT1(){ return -0.812;} // t1
G4double ParAveA1(){ return 0.81; } // a1
G4double ParAveA2(){ return 0.458; } // a2
G4double ParAveA3(){ return 2.26; } // a3
G4double ParSigLogT1(){ return -1.4;} // t1
G4double ParSigLogT2(){ return 1.26;} // t2
// std::sqrt(var(ln(T))) = 1/(t+t2*ln(y))
G4double ParSigLogA1(){ return -0.58;} // a1
G4double ParSigLogA2(){ return 0.86; } // a2
// std::sqrt(var(ln(alpha))) = 1/(a1+a2*ln(y))
G4double ParRho1(){ return 0.705; } // r1
G4double ParRho2(){ return -0.023;} // r2
// Correlation(ln(T),ln(alpha))=r1+r2*ln(y)
// Radial profiles
// f(r) := (1/dE(t))(dE(t,r)/dr)
// Ansatz:
// f(r) = p(2*r*Rc**2)/(r**2+Rc**2)**2+(1-p)*(2*r*Rt**2)/(r**2+Rt**2)**2,
// 0<p<1
G4double ParRC1(){ return 0.0251; } // c1
G4double ParRC2(){ return 0.00319; } // c2
G4double ParRC3(){ return 0.1162; } // c3
G4double ParRC4(){ return -0.000381;} // c4
// Rc (t/T)= z1 +z2*t/T
// z1 = c1+c2*ln(E/GeV)
// z2 = c3+c4*Z
G4double ParRT1(){ return 0.659; } // t1
G4double ParRT2(){ return -0.00309;} // t2
G4double ParRT3(){ return 0.645; } // k2
G4double ParRT4(){ return -2.59; } // k3
G4double ParRT5(){ return 0.3585; } // t5
G4double ParRT6(){ return 0.0412; } // t6
// Rt (t/T)= k1*(std::exp(k3*(t/T-k2))+std::exp(k4*(t/T-k2)))
// k1 = t1+t2*Z
// k4 = t5+t6*ln(E/GeV)
G4double ParWC1(){ return 2.632; } // c1
G4double ParWC2(){ return -0.00094;} // c2
G4double ParWC3(){ return 0.401; } // c3
G4double ParWC4(){ return 0.00187; } // c4
G4double ParWC5(){ return 1.313; } // c5
G4double ParWC6(){ return -0.0686; } // c6
// p(t/T) = p1*std::exp((p2-t/T)/p3 - std::exp((p2-t/T)/p3))
// p1 = c1+c2*Z
// p2 = c3+c4*Z
// p3 = c5 + c6*ln(E/GeV)
G4double ParSpotN1(){ return 93.; } // n1
G4double ParSpotN2(){ return 0.876;} // n2
// Fluctuations on radial profiles through number of spots
// The total number of spots needed for a shower is
// Ns = n1*ln(Z)(E/GeV)**n2
// The number of spots per longitudinal interval is:
// (1/Ns)(dNs(t)/dt) = f(t)
// = (beta*t)**(alpha-1)*beta*std::exp(-beta*t)/Gamma(alpha)
// <t> = alpha_s/beta_s
// Ts = (alpha_s-1)/beta_s
// and
// Ts = T*(t1+t2*Z)
// alpha_s = alpha*(a1+a2*Z)
G4double ParSpotT1(){ return 0.698; } // t1
G4double ParSpotT2(){ return 0.00212;} // t2
G4double ParSpotA1(){ return 0.639; } //a1
G4double ParSpotA2(){ return 0.00334;} //a2
};
#endif
@@ -0,0 +1,68 @@
//
// ********************************************************************
// * License and Disclaimer *
// * *
// * The Geant4 software is copyright of the Copyright Holders of *
// * the Geant4 Collaboration. It is provided under the terms and *
// * conditions of the Geant4 Software License, included in the file *
// * LICENSE and available at http://cern.ch/geant4/license . These *
// * include a list of copyright holders. *
// * *
// * 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. Please see the license in the file LICENSE and URL above *
// * for the full disclaimer and the limitation of liability. *
// * *
// * This code implementation is the result of the scientific and *
// * technical work of the GEANT4 collaboration. *
// * By using, copying, modifying or distributing the software (or *
// * any work based on the software) you agree to acknowledge its *
// * use in resulting scientific publications, and indicate your *
// * acceptance of all terms of the Geant4 Software license. *
// ********************************************************************
//
/// \file ExGflashMessenger.hh
/// \brief Definition of the ExGflashMessenger class
//
//
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
#ifndef ExGflashMessenger_h
#define ExGflashMessenger_h 1
#include "globals.hh"
#include "G4UImessenger.hh"
class ExGflashDetectorConstruction;
class G4UIdirectory;
class G4UIcmdWithAString;
class G4UIcmdWithAnInteger;
class G4UIcmdWith3Vector;
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
class ExGflashMessenger: public G4UImessenger
{
public:
ExGflashMessenger(ExGflashDetectorConstruction* );
virtual ~ExGflashMessenger();
virtual void SetNewValue(G4UIcommand*, G4String);
private:
ExGflashDetectorConstruction* fDetector;
G4UIdirectory* fExGflashDir;
G4UIcmdWithAnInteger* fVerbose;
G4UIdirectory* fDetDir;
G4UIcmdWithAString* fMaterCmd;
G4UIcmdWith3Vector* fLBinCmd;
G4UIcmdWith3Vector* fRBinCmd;
};
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
#endif
@@ -0,0 +1,50 @@
//
// ********************************************************************
// * License and Disclaimer *
// * *
// * The Geant4 software is copyright of the Copyright Holders of *
// * the Geant4 Collaboration. It is provided under the terms and *
// * conditions of the Geant4 Software License, included in the file *
// * LICENSE and available at http://cern.ch/geant4/license . These *
// * include a list of copyright holders. *
// * *
// * 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. Please see the license in the file LICENSE and URL above *
// * for the full disclaimer and the limitation of liability. *
// * *
// * This code implementation is the result of the scientific and *
// * technical work of the GEANT4 collaboration. *
// * By using, copying, modifying or distributing the software (or *
// * any work based on the software) you agree to acknowledge its *
// * use in resulting scientific publications, and indicate your *
// * acceptance of all terms of the Geant4 Software license. *
// ********************************************************************
//
//
/// \file ExGflashPrimaryGeneratorAction.hh
/// \brief Definition of the ExGflashPrimaryGeneratorAction class
//
#ifndef ExGflashPrimaryGeneratorAction_h
#define ExGflashPrimaryGeneratorAction_h
#include "G4VUserPrimaryGeneratorAction.hh"
class G4Event;
class G4GeneralParticleSource;
class ExGflashPrimaryGeneratorAction : public G4VUserPrimaryGeneratorAction
{
public:
ExGflashPrimaryGeneratorAction();
~ExGflashPrimaryGeneratorAction();
virtual void GeneratePrimaries(G4Event* anEvent);
private:
G4GeneralParticleSource* fParticleGun;
};
#endif
@@ -0,0 +1,57 @@
//
// ********************************************************************
// * License and Disclaimer *
// * *
// * The Geant4 software is copyright of the Copyright Holders of *
// * the Geant4 Collaboration. It is provided under the terms and *
// * conditions of the Geant4 Software License, included in the file *
// * LICENSE and available at http://cern.ch/geant4/license . These *
// * include a list of copyright holders. *
// * *
// * 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. Please see the license in the file LICENSE and URL above *
// * for the full disclaimer and the limitation of liability. *
// * *
// * This code implementation is the result of the scientific and *
// * technical work of the GEANT4 collaboration. *
// * By using, copying, modifying or distributing the software (or *
// * any work based on the software) you agree to acknowledge its *
// * use in resulting scientific publications, and indicate your *
// * acceptance of all terms of the Geant4 Software license. *
// ********************************************************************
//
//
/// \file ExGflashRunAction.hh
/// \brief Definition of the ExGflashRunAction class
//
#ifndef ExGflashRunAction_h
#define ExGflashRunAction_h
#include "G4UserRunAction.hh"
#include "ExGflashHistoManager.hh"
#include "G4Timer.hh"
class G4Run;
class ExGflashDetectorConstruction;
class ExGflashRunAction : public G4UserRunAction
{
public:
ExGflashRunAction(ExGflashDetectorConstruction* det);
~ExGflashRunAction();
virtual void BeginOfRunAction(const G4Run* aRun);
virtual void EndOfRunAction(const G4Run* aRun);
private:
// G4int fRunID;
ExGflashHistoManager* fHistoManager;
ExGflashDetectorConstruction* fDetector;
G4Timer fRunTimer;
};
#endif
@@ -0,0 +1,62 @@
//
// ********************************************************************
// * License and Disclaimer *
// * *
// * The Geant4 software is copyright of the Copyright Holders of *
// * the Geant4 Collaboration. It is provided under the terms and *
// * conditions of the Geant4 Software License, included in the file *
// * LICENSE and available at http://cern.ch/geant4/license . These *
// * include a list of copyright holders. *
// * *
// * 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. Please see the license in the file LICENSE and URL above *
// * for the full disclaimer and the limitation of liability. *
// * *
// * This code implementation is the result of the scientific and *
// * technical work of the GEANT4 collaboration. *
// * By using, copying, modifying or distributing the software (or *
// * any work based on the software) you agree to acknowledge its *
// * use in resulting scientific publications, and indicate your *
// * acceptance of all terms of the Geant4 Software license. *
// ********************************************************************
//
//
/// \file ExGflashSensitiveDetector.hh
/// \brief Definition of the ExGflashSensitiveDetector class
//
#ifndef EXGFLASHSENSITIVEDETECTOR_H
#define EXGFLASHSENSITIVEDETECTOR_H
#include "G4VSensitiveDetector.hh"
#include "G4VGFlashSensitiveDetector.hh"
#include "ExGflashHit.hh"
#include "globals.hh"
class G4GFlashSpot;
class ExGflashDetectorConstruction;
class G4Step;
class G4HCofThisEvent;
class G4TouchableHistory;
class ExGflashSensitiveDetector: public G4VSensitiveDetector,
public G4VGFlashSensitiveDetector {
public:
ExGflashSensitiveDetector(G4String, ExGflashDetectorConstruction* det);
~ExGflashSensitiveDetector();
virtual void Initialize(G4HCofThisEvent*);
virtual G4bool ProcessHits(G4Step*,G4TouchableHistory*);
virtual G4bool ProcessHits(G4GFlashSpot*aSpot,G4TouchableHistory*);
virtual void EndOfEvent(G4HCofThisEvent*);
private:
ExGflashHitsCollection* fCaloHitsCollection;
// ExGflashDetectorConstruction* fDetector;
G4int fHCID;
};
#endif