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
CbmMCList.h
Go to the documentation of this file.
Or view
the newest version in sPHENIX GitHub for file CbmMCList.h
1
/*
2
* CbmMCList.h
3
*
4
* Created on: Dec 3, 2009
5
* Author: stockman
6
*/
7
8
#ifndef CBMMCLIST_H_
9
#define CBMMCLIST_H_
10
11
#include "TObject.h"
12
#include "
CbmDetectorList.h
"
13
14
#include <vector>
15
16
17
18
class
CbmMCList
:
public
TObject
{
19
public
:
20
CbmMCList
();
21
CbmMCList
(
DataType
type, Int_t entry)
22
:
TObject
(),
23
fList
(),
24
fEntry
(entry),
25
fType
(type)
26
{
27
// fType = type;
28
//fEntry = entry;
29
}
30
CbmMCList
(
DataType
type, Int_t entry, std::vector<Int_t>
list
)
31
:
TObject
(),
32
fList
(),
33
fEntry
(entry),
34
fType
(type)
35
{
36
// fType = type;
37
// fEntry = entry;
38
// fList = list;
39
}
40
41
virtual
~CbmMCList
();
42
43
void
SetType
(
DataType
type){
fType
= type;}
44
void
SetEntry
(Int_t entry){
fEntry
= entry;}
45
void
AddElement
(Int_t element){
fList
.push_back(element);}
46
47
DataType
GetType
()
const
{
return
fType
;}
48
Int_t
GetEntry
()
const
{
return
fEntry
;}
49
Int_t
GetNElements
()
const
{
return
fList
.size();}
50
Int_t
GetElement
(Int_t index)
const
{
return
fList
.at(index);}
51
std::vector<Int_t>
GetElements
()
const
{
return
fList
;}
52
53
void
Reset
(){
fList
.clear();}
54
55
56
57
58
private
:
59
std::vector<Int_t>
fList
;
60
Int_t
fEntry
;
61
DataType
fType
;
62
63
ClassDef
(
CbmMCList
, 1);
64
};
65
66
#endif
/* PNDMCLIST_H_ */
EicRoot
blob
master
cbmbase
CbmMCList.h
Built by
Jin Huang
. updated:
Mon Jan 22 2024 12:43:32
using
1.8.2 with
EIC GitHub integration