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#include "Identifier/Identifier.h"
20
21// STL header
22#include <string>
23
24class G4Step;
25class G4TouchableHistory;
26
27class G4Step;
28class G4HCofThisEvent;
29class TileTBID;
30
31class MuonWallSD : public G4VSensitiveDetector
32{
33public:
34 MuonWallSD(const std::string& name, const std::string& hitCollectionName, int verbose);
35 ~MuonWallSD() = default;
36
37 static constexpr int NCells = 18;
39
40 void Initialize(G4HCofThisEvent*) override final;
41 G4bool ProcessHits(G4Step*, G4TouchableHistory*) override final;
42
43private:
45
46 static const int s_nCellMu = 14;
47 static const int s_nCellS = 4;
48
50
52 const std::string m_hitCollectionName;
54
55};
56
57#endif // MUONWALL_MUONWALLSD_H
HitVectorBuilder * GetHitCollection()
static const int s_nCellMu
Definition MuonWallSD.h:46
void Initialize(G4HCofThisEvent *) override final
Identifier m_id[NCells]
Definition MuonWallSD.h:51
const TileTBID * m_tileTBID
Definition MuonWallSD.h:44
G4bool ProcessHits(G4Step *, G4TouchableHistory *) override final
static constexpr int NCells
Definition MuonWallSD.h:37
HitVectorBuilder * m_hitCollection
Definition MuonWallSD.h:53
const std::string m_hitCollectionName
Definition MuonWallSD.h:52
~MuonWallSD()=default
static const int s_nCellS
Definition MuonWallSD.h:47
TileHitVectorCellBuilder< NCells > HitVectorBuilder
Definition MuonWallSD.h:38
MuonWallSD(const std::string &name, const std::string &hitCollectionName, int verbose)
Event-owned TileHit accumulator for SDs that merge one TileSimHit per cell.
Helper class for TileCal offline identifiers of ancillary testbeam detectors and MBTS.
bool verbose
Definition hcg.cxx:75