EIC Software
Reference for
EIC
simulation and reconstruction software on GitHub
Home page
Related Pages
Modules
Namespaces
Classes
Files
External Links
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Groups
Pages
CbmMCResult.h
Go to the documentation of this file.
Or view
the newest version in sPHENIX GitHub for file CbmMCResult.h
1
/*
2
* CbmMCResult.h
3
*
4
* Created on: Dec 1, 2009
5
* Author: stockman
6
*/
7
8
#ifndef CBMMCRESULT_H_
9
#define CBMMCRESULT_H_
10
11
#include "
CbmDetectorList.h
"
12
#include "
CbmMCObject.h
"
13
14
#include<iostream>
15
16
class
CbmMCResult
:
public
CbmMCObject
{
17
public
:
18
CbmMCResult
();
19
CbmMCResult
(
DataType
start
,
DataType
stop);
20
CbmMCResult
(
const
CbmMCResult
& result):
21
CbmMCObject
(result.
GetStartType
(), result.
GetEntryVector
()),
22
fStartType
(result.
GetStartType
()),
23
fStopType
(result.
GetStopType
())
24
{}
25
26
virtual
~CbmMCResult
();
27
28
void
SetStartType
(
DataType
start){
fStartType
=
start
;}
29
void
SetStopType
(
DataType
stop){
fStopType
= stop;}
30
31
DataType
GetStartType
(
void
)
const
{
return
fStartType
;}
32
DataType
GetStopType
(
void
)
const
{
return
fStopType
;}
33
34
CbmMCResult
&
operator=
(
const
CbmMCResult
& result){
35
CbmMCObject::operator=
(result);
36
fStartType
= result.
fStartType
;
37
fStopType
= result.
fStopType
;
38
return
*
this
;
39
// SetStage(result.GetEntryVector());
40
}
41
42
virtual
void
Print
(std::ostream& out = std::cout){ out << *
this
;}
43
44
friend
std::ostream&
operator<<
(std::ostream& out,
const
CbmMCResult
& result){
45
out <<
"MC Link from: "
<< result.
GetStartType
() <<
" to "
<< result.
GetStopType
() <<
":"
<< std::endl;
46
((
CbmMCObject
)result).Print(out);
47
return
out;
48
}
49
50
51
private
:
52
DataType
fStartType
;
53
DataType
fStopType
;
54
55
ClassDef
(
CbmMCResult
, 2);
56
};
57
58
#endif
/* CbmMCResult_H_ */
EicRoot
blob
master
cbmbase
CbmMCResult.h
Built by
Jin Huang
. updated:
Mon Jan 22 2024 12:43:33
using
1.8.2 with
EIC GitHub integration