LArSoft
v09_90_00
Liquid Argon Software toolkit - https://larsoft.org/
Main Page
Related Pages
Modules
Namespaces
Classes
Files
File List
File Members
KillerAction_service.hh
Go to the documentation of this file.
1
//
2
// __ __ __ __ __
3
// ____ ______/ /_____ _/ // / / /_/ /__
4
// / __ `/ ___/ __/ __ `/ // /_/ __/ //_/
5
// / /_/ / / / /_/ /_/ /__ __/ /_/ ,<
6
// \__,_/_/ \__/\__, / /_/ \__/_/|_|
7
// /____/
8
//
9
// artg4tk: art based Geant 4 Toolkit
10
//
11
//=============================================================================
12
// KillerActionService.hh: example artg4tk stacking action that allows to
13
// liik certain particles of interest ((p0, eta, gamma from nCapture)
14
// To use this, all you need to do is put it in the services section
15
// of the configuration file, like this:
16
//
17
// services: {
18
// ...
19
// user: {
20
// KillerAction : {name: "KillerAction"
21
// killPi0: true
22
// killeta: false
23
// killGammafromnCapture: false
24
// }
25
// . ..
26
// }
27
// }
28
// Author: Hans Wenzel (Fermilab)
29
//=============================================================================
30
31
#ifndef artg4tk_pluginActions_myKiller_KillerAction_service_hh
32
#define artg4tk_pluginActions_myKiller_KillerAction_service_hh
33
34
// Includes for general action service
35
#include "
art/Framework/Services/Registry/ServiceDeclarationMacros.h
"
36
#include "
fhiclcpp/fwd.h
"
37
#include "
messagefacility/MessageLogger/MessageLogger.h
"
38
39
// Get the base class
40
41
#include "
artg4tk/actionBase/StackingActionBase.hh
"
42
43
namespace
artg4tk
{
44
45
class
KillerActionService
:
public
artg4tk::StackingActionBase
{
46
public
:
47
KillerActionService
(
fhicl::ParameterSet
const
&);
48
virtual
~KillerActionService
();
49
bool
killNewTrack
(
const
G4Track* aTrack)
override
;
50
51
private
:
52
// Member data!
53
bool
killPi0
;
54
bool
killeta
;
55
bool
killGammafromnCapture
;
56
// A message logger for this action
57
mf::LogInfo
logInfo_
;
58
};
59
}
// end namespace artg4tk
60
61
DECLARE_ART_SERVICE
(
artg4tk::KillerActionService
, LEGACY)
62
#endif
/* artg4tk_pluginActions_myKiller_KillerAction_service_hh */
artg4tk::KillerActionService
Definition:
KillerAction_service.hh:45
mf::MaybeLogger_
Definition:
MessageLogger.h:113
artg4tk::KillerActionService::killeta
bool killeta
Definition:
KillerAction_service.hh:54
artg4tk::KillerActionService::logInfo_
mf::LogInfo logInfo_
Definition:
KillerAction_service.hh:57
artg4tk::KillerActionService::~KillerActionService
virtual ~KillerActionService()
Definition:
KillerAction.cc:76
MessageLogger.h
ServiceDeclarationMacros.h
artg4tk::KillerActionService::killPi0
bool killPi0
Definition:
KillerAction_service.hh:53
DECLARE_ART_SERVICE
#define DECLARE_ART_SERVICE(svc, scope)
Definition:
ServiceDeclarationMacros.h:77
artg4tk::KillerActionService::KillerActionService
KillerActionService(fhicl::ParameterSet const &)
Definition:
KillerAction.cc:39
artg4tk::StackingActionBase
Definition:
StackingActionBase.hh:21
artg4tk::KillerActionService::killNewTrack
bool killNewTrack(const G4Track *aTrack) override
Definition:
KillerAction.cc:51
StackingActionBase.hh
artg4tk
Definition:
ActionBase.hh:12
artg4tk::KillerActionService::killGammafromnCapture
bool killGammafromnCapture
Definition:
KillerAction_service.hh:55
fwd.h
fhicl::ParameterSet
Definition:
ParameterSet.h:36
artg4tk
v12_00_03
source
artg4tk
pluginActions
myKiller
KillerAction_service.hh
Generated on Thu May 2 2024 20:59:30 for LArSoft by
1.8.11