ATLAS Offline Software
Loading...
Searching...
No Matches
TrackRecorderSDTool.h
Go to the documentation of this file.
1/*
2 Copyright (C) 2002-2017 CERN for the benefit of the ATLAS collaboration
3*/
4
5/****************************************************************
6 Track Recorder Sensitive Detector Tool
7 ****************************************************************/
8
9#ifndef TRACKWRITEFASTSIM_TRACKRECORDERSDTOOL_H
10#define TRACKWRITEFASTSIM_TRACKRECORDERSDTOOL_H
11
12// Base class
14
15// STL headers
16#include <string>
17
18class G4VSensitiveDetector;
19
20//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo.....
21
23{
24 public:
25 // Constructor
26 TrackRecorderSDTool(const std::string& type, const std::string& name, const IInterface *parent);
27
28 // Destructor
29 ~TrackRecorderSDTool() { /* If all goes well we do not own myHitColl here */ }
30
31protected:
32 StatusCode SetupEvent(HitCollectionMap&) override final;
33 StatusCode Gather(HitCollectionMap&) override final;
34
35 // Make me an SD!
36 G4VSensitiveDetector* makeSD() const override final;
37
38 int m_SD_type; //TrackRecorderSD=1, CosmicTRSD=2
39};
40
41#endif //TRACKWRITEFASTSIM_TRACKRECORDERSDTOOL_H
Small wrapper around hit collection map to facilitate accessing the hit collection.
SensitiveDetectorBase(const std::string &type, const std::string &name, const IInterface *parent)
Standard constructor.
StatusCode Gather(HitCollectionMap &) override final
End of an athena event.
TrackRecorderSDTool(const std::string &type, const std::string &name, const IInterface *parent)
G4VSensitiveDetector * makeSD() const override final
StatusCode SetupEvent(HitCollectionMap &) override final
Beginning of an athena event.