ATLAS Offline Software
Toggle main menu visibility
Loading...
Searching...
No Matches
Simulation
G4Utilities
TrackWriteFastSim
src
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
13
#include "
G4AtlasTools/SensitiveDetectorBase.h
"
14
15
// STL headers
16
#include <string>
17
18
class
G4VSensitiveDetector;
19
20
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo.....
21
22
class
TrackRecorderSDTool
:
public
SensitiveDetectorBase
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
31
protected
:
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
SensitiveDetectorBase.h
HitCollectionMap
Small wrapper around hit collection map to facilitate accessing the hit collection.
Definition
HitCollectionMap.h:23
SensitiveDetectorBase::SensitiveDetectorBase
SensitiveDetectorBase(const std::string &type, const std::string &name, const IInterface *parent)
Standard constructor.
Definition
SensitiveDetectorBase.cxx:17
TrackRecorderSDTool::Gather
StatusCode Gather(HitCollectionMap &) override final
End of an athena event.
Definition
TrackRecorderSDTool.cxx:36
TrackRecorderSDTool::TrackRecorderSDTool
TrackRecorderSDTool(const std::string &type, const std::string &name, const IInterface *parent)
Definition
TrackRecorderSDTool.cxx:20
TrackRecorderSDTool::~TrackRecorderSDTool
~TrackRecorderSDTool()
Definition
TrackRecorderSDTool.h:29
TrackRecorderSDTool::makeSD
G4VSensitiveDetector * makeSD() const override final
Definition
TrackRecorderSDTool.cxx:44
TrackRecorderSDTool::m_SD_type
int m_SD_type
Definition
TrackRecorderSDTool.h:38
TrackRecorderSDTool::SetupEvent
StatusCode SetupEvent(HitCollectionMap &) override final
Beginning of an athena event.
Definition
TrackRecorderSDTool.cxx:29
const
type
Generated on
for ATLAS Offline Software by
1.17.0