SimG4Core
CountProcesses
interface
CountProcessesAction.h
Go to the documentation of this file.
1
#ifndef SimG4Core_CountProcessesAction_H
2
#define SimG4Core_CountProcessesAction_H
3
4
#include "
FWCore/ParameterSet/interface/ParameterSet.h
"
5
#include "
SimG4Core/Notification/interface/Observer.h
"
6
#include "
SimG4Core/Watcher/interface/SimWatcher.h
"
7
8
#include "G4ParticleDefinition.hh"
9
10
#include <map>
11
#include <string>
12
13
typedef
std::map<std::pair<std::string, std::string>,
int
, std::less<std::pair<std::string, std::string>>>
mpssi
;
14
typedef
std::pair<std::string, std::string>
pss
;
15
typedef
std::map<std::string, int, std::less<std::string>>
psi
;
16
17
class
BeginOfRun
;
18
class
EndOfRun
;
19
class
BeginOfTrack
;
20
class
G4Step;
21
22
class
CountProcessesAction
:
public
SimWatcher
,
23
public
Observer
<const BeginOfRun *>,
24
public
Observer
<const EndOfRun *>,
25
public
Observer
<const BeginOfTrack *>,
26
public
Observer
<const G4Step *> {
27
public
:
28
CountProcessesAction
(
edm::ParameterSet
const
&
p
);
29
~CountProcessesAction
()
override
;
30
void
update
(
const
BeginOfRun
*
run
)
override
;
31
void
update
(
const
BeginOfTrack
*trk)
override
;
32
void
update
(
const
EndOfRun
*
track
)
override
;
33
void
update
(
const
G4Step *
track
)
override
;
34
//---- Dump list of processes for each particle.
35
// printNsteps = 1 print in how many step the process was called,
36
// print only those processes with this number <> 0
37
void
DumpProcessList
(
bool
printNsteps, std::ostream &
out
=
std::cout
);
38
void
DumpCreatorProcessList
(
bool
printNsteps, std::ostream &
out
=
std::cout
);
39
void
DumpParticleList
(std::ostream &
out
=
std::cout
);
40
41
private
:
42
bool
fDEBUG
;
43
mpssi
theProcessList
;
44
mpssi
theCreatorProcessList
;
45
psi
theParticleList
;
46
};
47
48
#endif
mpssi
std::map< std::pair< std::string, std::string >, int, std::less< std::pair< std::string, std::string > > > mpssi
Definition:
CountProcessesAction.h:13
HLT_FULL_cff.track
track
Definition:
HLT_FULL_cff.py:11713
Observer
Definition:
Observer.h:23
CountProcessesAction::DumpCreatorProcessList
void DumpCreatorProcessList(bool printNsteps, std::ostream &out=std::cout)
Definition:
CountProcessesAction.cc:93
AlCaHLTBitMon_ParallelJobs.p
p
Definition:
AlCaHLTBitMon_ParallelJobs.py:153
gather_cfg.cout
cout
Definition:
gather_cfg.py:144
Observer.h
CountProcessesAction::DumpProcessList
void DumpProcessList(bool printNsteps, std::ostream &out=std::cout)
Definition:
CountProcessesAction.cc:83
SimWatcher.h
BeginOfTrack
Definition:
BeginOfTrack.h:6
CountProcessesAction::theParticleList
psi theParticleList
Definition:
CountProcessesAction.h:45
CountProcessesAction
Definition:
CountProcessesAction.h:22
edm::ParameterSet
Definition:
ParameterSet.h:47
CountProcessesAction::fDEBUG
bool fDEBUG
Definition:
CountProcessesAction.h:42
createfilelist.int
int
Definition:
createfilelist.py:10
CountProcessesAction::CountProcessesAction
CountProcessesAction(edm::ParameterSet const &p)
Definition:
CountProcessesAction.cc:14
CountProcessesAction::~CountProcessesAction
~CountProcessesAction() override
Definition:
CountProcessesAction.cc:17
BeginOfRun
Definition:
BeginOfRun.h:6
EndOfRun
Definition:
EndOfRun.h:6
SimWatcher
Definition:
SimWatcher.h:33
CountProcessesAction::theCreatorProcessList
mpssi theCreatorProcessList
Definition:
CountProcessesAction.h:44
psi
std::map< std::string, int, std::less< std::string > > psi
Definition:
CountProcessesAction.h:15
writedatasetfile.run
run
Definition:
writedatasetfile.py:27
CountProcessesAction::update
void update(const BeginOfRun *run) override
This routine will be called when the appropriate signal arrives.
Definition:
CountProcessesAction.cc:19
pss
std::pair< std::string, std::string > pss
Definition:
CountProcessesAction.h:14
MillePedeFileConverter_cfg.out
out
Definition:
MillePedeFileConverter_cfg.py:31
ParameterSet.h
CountProcessesAction::theProcessList
mpssi theProcessList
Definition:
CountProcessesAction.h:43
CountProcessesAction::DumpParticleList
void DumpParticleList(std::ostream &out=std::cout)
Definition:
CountProcessesAction.cc:104
Generated for CMSSW Reference Manual by
1.8.16