ATLAS Offline Software
Loading...
Searching...
No Matches
MuonWallSD.h
Go to the documentation of this file.
1/*
2 Copyright (C) 2002-2024 CERN for the benefit of the ATLAS collaboration
3*/
4
5//************************************************************
6//
7// Class MuonWallSD
8// Sensitive detector for the Muon Wall
9//
10//************************************************************
11
12#ifndef MUONWALL_MUONWALLSD_H
13#define MUONWALL_MUONWALLSD_H
14
15// Base class
16#include "G4VSensitiveDetector.hh"
17
18// use of the hits
21
22// STL header
23#include <string>
24
25class G4Step;
26class G4TouchableHistory;
27
28class G4Step;
29class G4HCofThisEvent;
30class TileTBID;
31
32class MuonWallSD : public G4VSensitiveDetector
33{
34public:
35 MuonWallSD(const std::string& name, const std::string& hitCollectionName, int verbose);
36 ~MuonWallSD() = default;
37
38 // Called from MuonWallSDTool::SetupEvent
39 void StartOfAthenaEvent ();
40 void Initialize(G4HCofThisEvent*) override final;
41 G4bool ProcessHits(G4Step*, G4TouchableHistory*) override final;
42 void EndOfAthenaEvent();
43
44private:
46
47 static const int s_nCellMu = 14;
48 static const int s_nCellS = 4;
49 static const int s_nCell = s_nCellMu+s_nCellS;
50
54 // The hits collections
56
57};
58
59#endif // MUONWALL_MUONWALLSD_H
Handle class for recording to StoreGate.
void EndOfAthenaEvent()
static const int s_nCellMu
Definition MuonWallSD.h:47
void Initialize(G4HCofThisEvent *) override final
const TileTBID * m_tileTBID
Definition MuonWallSD.h:45
TileSimHit * m_hit[s_nCell]
Definition MuonWallSD.h:52
G4bool ProcessHits(G4Step *, G4TouchableHistory *) override final
Identifier m_id[s_nCell]
Definition MuonWallSD.h:53
void StartOfAthenaEvent()
int m_nhits[s_nCell]
Definition MuonWallSD.h:51
static const int s_nCell
Definition MuonWallSD.h:49
SG::WriteHandle< TileHitVector > m_HitColl
Definition MuonWallSD.h:55
~MuonWallSD()=default
static const int s_nCellS
Definition MuonWallSD.h:48
MuonWallSD(const std::string &name, const std::string &hitCollectionName, int verbose)
Helper class for TileCal offline identifiers of ancillary testbeam detectors and MBTS.
bool verbose
Definition hcg.cxx:73