|
ATLAS Offline Software
|
Go to the documentation of this file.
5 #ifndef LARG4CODE_LARG4SIMPLESD_H
6 #define LARG4CODE_LARG4SIMPLESD_H
8 #include "G4VSensitiveDetector.hh"
13 #include "CLHEP/Units/SystemOfUnits.h"
14 #include <gtest/gtest_prod.h>
58 const std::string&
type=
"Default",
68 G4bool
ProcessHits(G4Step* a_step, G4TouchableHistory*)
override;
113 typedef std::set< LArHit*, LessHit >
hits_t;
FRIEND_TEST(SDWrappertest, addSD)
void EndOfAthenaEvent(LArHitContainer *hitContnainer)
End of athena event processing.
LArG4SimpleSD::LArHitTimeBins m_timeBinType
G4int getTimeBin(G4double time) const
Helper method for time info.
Common sensitive detector class for LAr systems.
Helper class for LArHEC offline identifiers.
FRIEND_TEST(LArG4SimpleSDtest, setupHelpers)
FRIEND_TEST(SDWrappertest, EndOfAthenaEvent)
FRIEND_TEST(LArG4SimpleSDtest, ProcessHits)
FRIEND_TEST(LArG4SimpleSDtest, getTimeBin)
LArG4SimpleSD(G4String a_name, StoreGateSvc *detStore)
Alternative constructor, particularly for fast simulations.
The Athena Transient Store API.
const LArFCAL_ID * m_larFcalID
timeBins_t m_timeBins
The map of hit sets binned in time.
std::map< G4int, hits_t * > timeBins_t
G4float m_timeBinWidth
Width of the time bins for summing hits - for the uniform binning.
ILArCalculatorSvc * m_calculator
Member variable - the calculator we'll use.
FRIEND_TEST(LArG4SimpleSDtest, EndOfAthenaEvent)
void setupHelpers(const LArEM_ID *EM, const LArFCAL_ID *FCAL, const LArHEC_ID *HEC)
Sets the ID helper pointers.
const LArEM_ID * m_larEmID
Pointers to the identifier helpers.
Identifier ConvertID(const LArG4Identifier &a_ident) const
Helper function for making "real" identifiers from LArG4Identifiers.
FRIEND_TEST(SDWrappertest, Initialize)
G4bool ProcessHits(G4Step *a_step, G4TouchableHistory *) override
Main processing method.
G4bool SimpleHit(const LArG4Identifier &lar_id, G4double time, G4double energy)
First method translates to this - also for fast sims.
FRIEND_TEST(SDWrappertest, addFastSimSD)
G4int m_numberInvalidHits
Count the number of invalid hits.
Class to store hit energy and time in LAr cell from G4 simulation.
FRIEND_TEST(LArG4SimpleSDtest, ConvertID)
def time(flags, cells_name, *args, **kw)
LArG4SimpleSD(G4String a_name, ILArCalculatorSvc *calc, const std::string &type="Default", const float width=2.5 *CLHEP::ns)
Constructor.
FRIEND_TEST(SDWrappertest, ProcessHits)
Helper class for LArEM offline identifiers.
virtual ~LArG4SimpleSD()
Destructor.
const LArHEC_ID * m_larHecID
Helper class for LArFCAL offline identifiers.
bool operator()(LArHit *const &p, LArHit *const &q) const
FRIEND_TEST(LArG4SimpleSDtest, SimpleHit)
std::set< LArHit *, LessHit > hits_t