1 #ifndef SimG4CMS_CaloSD_h 2 #define SimG4CMS_CaloSD_h 28 #include "G4VPhysicalVolume.hh" 30 #include "G4VGFlashSensitiveDetector.hh" 38 class G4HCofThisEvent;
43 public G4VGFlashSensitiveDetector,
45 public Observer<const BeginOfEvent *>,
46 public Observer<const BeginOfTrack *>,
48 public Observer<const EndOfEvent *> {
55 float timeSlice=1.,
bool ignoreTkID=
false);
58 bool ProcessHits(G4GFlashSpot*aSpot,G4TouchableHistory*)
override;
62 void Initialize(G4HCofThisEvent * HCE)
override;
63 void EndOfEvent(G4HCofThisEvent * eventHC)
override;
64 void clear()
override;
73 G4ThreeVector
setToLocal(
const G4ThreeVector&,
const G4VTouchable*);
74 G4ThreeVector
setToGlobal(
const G4ThreeVector&,
const G4VTouchable*);
87 void update(const ::EndOfEvent *)
override;
148 std::map<int,TrackWithHistory*>
tkMap;
160 #endif // SimG4CMS_CaloSD_h
std::vector< PCaloHit > PCaloHitContainer
void updateHit(CaloG4Hit *)
uint32_t setDetUnitId(G4Step *step) override=0
virtual int getTrackID(G4Track *)
void Initialize(G4HCofThisEvent *HCE) override
type of data representation of DDCompactView
std::vector< CaloG4Hit * > reusehit
CaloSD(G4String aSDname, const DDCompactView &cpv, const SensitiveDetectorCatalog &clg, edm::ParameterSet const &p, const SimTrackManager *, float timeSlice=1., bool ignoreTkID=false)
void cleanHitCollection()
void resetForNewPrimary(const G4ThreeVector &, double)
std::vector< CaloG4Hit * > hitvec
G4ThreeVector setToGlobal(const G4ThreeVector &, const G4VTouchable *)
double getAttenuation(G4Step *aStep, double birk1, double birk2, double birk3)
std::vector< unsigned int > selIndex
CaloMeanResponse * meanResponse
void storeHit(CaloG4Hit *)
virtual bool filterHit(CaloG4Hit *, double)
virtual G4bool getStepInfo(G4Step *aStep)
G4StepPoint * preStepPoint
void fillHits(edm::PCaloHitContainer &, std::string n) override
void EndOfEvent(G4HCofThisEvent *eventHC) override
std::map< CaloHitID, CaloG4Hit * > hitMap
CaloG4HitCollection * theHC
double getResponseWt(G4Track *)
G4THitsCollection< CaloG4Hit > CaloG4HitCollection
bool ProcessHits(G4Step *step, G4TouchableHistory *tHistory) override
std::map< int, TrackWithHistory * > tkMap
const SimTrackManager * m_trackManager
void clearHits() override
bool saveHit(CaloG4Hit *)
CaloG4Hit * createNewHit()
virtual uint16_t getDepth(G4Step *)
G4ThreeVector entrancePoint
G4ThreeVector entranceLocal
void update(const BeginOfRun *) override
This routine will be called when the appropriate signal arrives.
virtual double getEnergyDeposit(G4Step *step)
G4ThreeVector setToLocal(const G4ThreeVector &, const G4VTouchable *)