99 lines
3.6 KiB
C++
99 lines
3.6 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. *
|
|
// ********************************************************************
|
|
//
|
|
#include "G4VUserEventInformation.hh"
|
|
#include "G4ThreeVector.hh"
|
|
#include "globals.hh"
|
|
|
|
#ifndef LXeUserEventInformation_h
|
|
#define LXeUserEventInformation_h 1
|
|
|
|
class LXeUserEventInformation : public G4VUserEventInformation
|
|
{
|
|
public:
|
|
LXeUserEventInformation();
|
|
~LXeUserEventInformation();
|
|
|
|
inline void Print()const{};
|
|
|
|
void IncPhotonCount_Scint(){photonCount_Scint++;}
|
|
void IncPhotonCount_Ceren(){photonCount_Ceren++;}
|
|
void IncEDep(G4double dep){totE+=dep;}
|
|
void IncAbsorption(){absorptionCount++;}
|
|
void IncBoundaryAbsorption(){boundaryAbsorptionCount++;}
|
|
void IncHitCount(G4int i=1){hitCount+=i;}
|
|
|
|
void SetEWeightPos(const G4ThreeVector& p){eWeightPos=p;}
|
|
void SetReconPos(const G4ThreeVector& p){reconPos=p;}
|
|
void SetConvPos(const G4ThreeVector& p){convPos=p;convPosSet=true;}
|
|
void SetPosMax(const G4ThreeVector& p,G4double edep){posMax=p;edepMax=edep;}
|
|
|
|
G4int GetPhotonCount_Scint()const {return photonCount_Scint;}
|
|
G4int GetPhotonCount_Ceren()const {return photonCount_Ceren;}
|
|
G4int GetHitCount()const {return hitCount;}
|
|
G4double GetEDep()const {return totE;}
|
|
G4int GetAbsorptionCount()const {return absorptionCount;}
|
|
G4int GetBoundaryAbsorptionCount() const {return boundaryAbsorptionCount;}
|
|
|
|
G4ThreeVector GetEWeightPos(){return eWeightPos;}
|
|
G4ThreeVector GetReconPos(){return reconPos;}
|
|
G4ThreeVector GetConvPos(){return convPos;}
|
|
G4ThreeVector GetPosMax(){return posMax;}
|
|
G4double GetEDepMax(){return edepMax;}
|
|
G4double IsConvPosSet(){return convPosSet;}
|
|
|
|
//Gets the total photon count produced
|
|
G4int GetPhotonCount(){return photonCount_Scint+photonCount_Ceren;}
|
|
|
|
void IncPMTSAboveThreshold(){pmtsAboveThreshold++;}
|
|
G4int GetPMTSAboveThreshold(){return pmtsAboveThreshold;}
|
|
|
|
private:
|
|
|
|
G4int hitCount;
|
|
G4int photonCount_Scint;
|
|
G4int photonCount_Ceren;
|
|
G4int absorptionCount;
|
|
G4int boundaryAbsorptionCount;
|
|
|
|
G4double totE;
|
|
|
|
//These only have meaning if totE > 0
|
|
//If totE = 0 then these wont be set by EndOfEventAction
|
|
G4ThreeVector eWeightPos;
|
|
G4ThreeVector reconPos; //Also relies on hitCount>0
|
|
G4ThreeVector convPos;//true (initial) converstion position
|
|
G4bool convPosSet;
|
|
G4ThreeVector posMax;
|
|
G4double edepMax;
|
|
|
|
G4int pmtsAboveThreshold;
|
|
|
|
};
|
|
|
|
#endif
|
|
|
|
|
|
|
|
|
|
|