DD4hep
1.30.0
Detector Description Toolkit for High Energy Physics
DDG4
include
DDG4
Geant4ReadoutVolumeFilter.h
Go to the documentation of this file.
1
//==========================================================================
2
// AIDA Detector description implementation
3
//--------------------------------------------------------------------------
4
// Copyright (C) Organisation europeenne pour la Recherche nucleaire (CERN)
5
// All rights reserved.
6
//
7
// For the licensing terms see $DD4hepINSTALL/LICENSE.
8
// For the list of contributors see $DD4hepINSTALL/doc/CREDITS.
9
//
10
// Author : M.Frank
11
//
12
//==========================================================================
13
#ifndef DDG4_GEANT4READOUTVOLUMEFILTER_H
14
#define DDG4_GEANT4READOUTVOLUMEFILTER_H
15
16
// Framework include files
17
#include <
DD4hep/Readout.h
>
18
#include <
DD4hep/IDDescriptor.h
>
19
#include <
DDG4/Geant4SensDetAction.h
>
20
22
namespace
dd4hep
{
23
25
namespace
sim {
26
28
33
class
Geant4ReadoutVolumeFilter
:
public
Geant4Filter
{
34
protected
:
36
Readout
m_readout
;
38
const
HitCollection
*
m_collection
;
40
const
BitFieldElement*
m_key
;
41
42
public
:
44
Geant4ReadoutVolumeFilter
(
Geant4Context
*
context
,
45
const
std::string&
name
,
46
Readout
ro,
47
const
std::string& coll);
49
virtual
~Geant4ReadoutVolumeFilter
();
51
virtual
bool
operator()
(
const
G4Step* step)
const override
;
53
virtual
bool
operator()
(
const
Geant4FastSimSpot
* step)
const override
;
54
};
55
}
// End namespace sim
56
}
// End namespace dd4hep
57
58
#endif // DDG4_GEANT4READOUTVOLUMEFILTER_H
dd4hep::HitCollection
Definition of the HitCollection parameters used by the Readout.
Definition:
ObjectsInterna.h:157
dd4hep::sim::Geant4ReadoutVolumeFilter::m_collection
const HitCollection * m_collection
Collection index.
Definition:
Geant4ReadoutVolumeFilter.h:38
dd4hep::sim::Geant4ReadoutVolumeFilter::m_readout
Readout m_readout
Reference to readout descriptor.
Definition:
Geant4ReadoutVolumeFilter.h:36
Geant4SensDetAction.h
dd4hep::sim::Geant4ReadoutVolumeFilter::~Geant4ReadoutVolumeFilter
virtual ~Geant4ReadoutVolumeFilter()
Default destructor.
Definition:
Geant4ReadoutVolumeFilter.cpp:47
dd4hep::sim::Geant4ReadoutVolumeFilter
Default base class for all geant 4 tracking actions.
Definition:
Geant4ReadoutVolumeFilter.h:33
dd4hep::sim::Geant4FastSimSpot
Spot definition for fast simulation and GFlash.
Definition:
Geant4FastSimSpot.h:71
Readout.h
dd4hep::sim::Geant4Action::name
const std::string & name() const
Access name of the action.
Definition:
Geant4Action.h:280
dd4hep::sim::Geant4ReadoutVolumeFilter::operator()
virtual bool operator()(const G4Step *step) const override
Filter action. Return true if hits should be processed.
Definition:
Geant4ReadoutVolumeFilter.cpp:52
dd4hep::sim::Geant4ReadoutVolumeFilter::Geant4ReadoutVolumeFilter
Geant4ReadoutVolumeFilter(Geant4Context *context, const std::string &name, Readout ro, const std::string &coll)
Standard constructor.
Definition:
Geant4ReadoutVolumeFilter.cpp:27
IDDescriptor.h
dd4hep
Namespace for the AIDA detector description toolkit.
Definition:
AlignmentsCalib.h:28
dd4hep::sim::Geant4Filter
Base class to construct filters for Geant4 sensitive detectors.
Definition:
Geant4SensDetAction.h:94
dd4hep::Readout
Handle to the implementation of the readout structure of a subdetector.
Definition:
Readout.h:38
dd4hep::sim::Geant4ReadoutVolumeFilter::m_key
const BitFieldElement * m_key
Bit field value from ID descriptor.
Definition:
Geant4ReadoutVolumeFilter.h:40
dd4hep::sim::Geant4Context
Generic context to extend user, run and event information.
Definition:
Geant4Context.h:201
dd4hep::sim::Geant4Action::context
Geant4Context * context() const
Access the context.
Definition:
Geant4Action.h:270
Generated on Tue Dec 10 2024 18:30:09 for DD4hep by
1.8.18