DD4hep
1.30.0
Detector Description Toolkit for High Energy Physics
DDG4
include
DDG4
Geant4InteractionVertexSmear.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
24
#ifndef DDG4_GEANT4INTERACTIONVERTEXSMEAR_H
25
#define DDG4_GEANT4INTERACTIONVERTEXSMEAR_H
26
27
// Framework include files
28
#include <
DDG4/Geant4GeneratorAction.h
>
29
30
// ROOT include files
31
#include <Math/Vector4D.h>
32
34
namespace
dd4hep
{
35
37
namespace
sim {
38
40
class
Geant4PrimaryInteraction;
41
43
52
class
Geant4InteractionVertexSmear
:
public
Geant4GeneratorAction
{
53
public
:
55
typedef
Geant4PrimaryInteraction
Interaction
;
56
57
protected
:
59
ROOT::Math::PxPyPzEVector
m_offset
;
61
ROOT::Math::PxPyPzEVector
m_sigma
;
63
int
m_mask
;
64
66
void
smear
(
Interaction
* interaction)
const
;
67
68
public
:
70
Geant4InteractionVertexSmear
() =
delete
;
72
Geant4InteractionVertexSmear
(
const
Geant4InteractionVertexSmear
&
copy
) =
delete
;
74
Geant4InteractionVertexSmear
(
Geant4Context
*
context
,
const
std::string&
name
);
76
virtual
~Geant4InteractionVertexSmear
();
78
virtual
void
operator()
(G4Event* event);
79
};
80
}
// End namespace sim
81
}
// End namespace dd4hep
82
#endif // DDG4_GEANT4INTERACTIONVERTEXSMEAR_H
dd4hep::sim::Geant4InteractionVertexSmear::m_sigma
ROOT::Math::PxPyPzEVector m_sigma
Property: The gaussian sigmas to the offset.
Definition:
Geant4InteractionVertexSmear.h:61
dd4hep::sim::Geant4InteractionVertexSmear::smear
void smear(Interaction *interaction) const
Action routine to smear one single interaction according to the properties.
dd4hep::sim::Geant4PrimaryInteraction
Class modelling a single interaction with multiple primary vertices and particles.
Definition:
Geant4Primary.h:95
dd4hep::sim::Geant4InteractionVertexSmear::Geant4InteractionVertexSmear
Geant4InteractionVertexSmear(Geant4Context *context, const std::string &name)
Standard constructor.
dd4hep::sim::Geant4InteractionVertexSmear::~Geant4InteractionVertexSmear
virtual ~Geant4InteractionVertexSmear()
Default destructor.
Geant4GeneratorAction.h
dd4hep::sim::Geant4InteractionVertexSmear::Geant4InteractionVertexSmear
Geant4InteractionVertexSmear()=delete
Inhibit default constructor.
dd4hep::sim::Geant4GeneratorAction
Concrete implementation of the Geant4 generator action base class.
Definition:
Geant4GeneratorAction.h:47
dd4hep::sim::Geant4InteractionVertexSmear::m_mask
int m_mask
Property: Unique identifier of the interaction created.
Definition:
Geant4InteractionVertexSmear.h:63
Geant4InteractionVertexSmear
Action class to smear the primary vertex (and all outgoing particles) of a single interaction.
dd4hep::sim::Geant4Action::name
const std::string & name() const
Access name of the action.
Definition:
Geant4Action.h:280
dd4hep::sim::Geant4InteractionVertexSmear::m_offset
ROOT::Math::PxPyPzEVector m_offset
Property: The constant smearing offset.
Definition:
Geant4InteractionVertexSmear.h:59
dd4hep::sim::Geant4InteractionVertexSmear::Geant4InteractionVertexSmear
Geant4InteractionVertexSmear(const Geant4InteractionVertexSmear ©)=delete
Inhibit copy constructor.
dd4hep::sim::Geant4InteractionVertexSmear::operator()
virtual void operator()(G4Event *event)
Callback to generate primary particles.
dd4hep
Namespace for the AIDA detector description toolkit.
Definition:
AlignmentsCalib.h:28
dd4hep::detail::tools::copy
void copy(Alignment from, Alignment to)
Copy alignment object from source object.
Definition:
AlignmentTools.cpp:43
dd4hep::sim::Geant4InteractionVertexSmear::Interaction
Geant4PrimaryInteraction Interaction
Interaction definition.
Definition:
Geant4InteractionVertexSmear.h:55
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:08 for DD4hep by
1.8.18