test
Main Page
Namespaces
Classes
Package Documentation
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Properties
Friends
Macros
Pages
SimG4Core
Notification
src
TrackInformationExtractor.cc
Go to the documentation of this file.
1
#include "
SimG4Core/Notification/interface/TrackInformationExtractor.h
"
2
3
#include "G4Track.hh"
4
5
const
TrackInformation
&
6
TrackInformationExtractor::operator()
(
const
G4Track & gtk)
const
7
{
8
G4VUserTrackInformation * gui = gtk.GetUserInformation();
9
if
(gui == 0)
missing
(gtk);
10
const
TrackInformation
* tkInfo =
dynamic_cast<
const
TrackInformation
*
>
(gui);
11
if
(tkInfo == 0)
wrongType
();
12
return
* tkInfo;
13
}
14
15
TrackInformation
&
16
TrackInformationExtractor::operator()
(G4Track & gtk)
const
17
{
18
G4VUserTrackInformation * gui = gtk.GetUserInformation();
19
if
(gui == 0)
missing
(gtk);
20
TrackInformation
* tkInfo =
dynamic_cast<
TrackInformation
*
>
(gui);
21
if
(tkInfo == 0)
wrongType
();
22
return
* tkInfo;
23
}
24
TrackInformationExtractor::wrongType
void wrongType() const
Definition:
TrackInformationExtractor.h:36
TrackInformationExtractor::operator()
const TrackInformation & operator()(const G4Track >k) const
Definition:
TrackInformationExtractor.cc:6
TrackInformationExtractor.h
TrackInformation
Definition:
TrackInformation.h:8
TrackInformationExtractor::missing
void missing(const G4Track >k) const
Definition:
TrackInformationExtractor.h:34
Generated for CMSSW Reference Manual by
1.8.5