ECCE @ EIC Software
Reference for
ECCE @ 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
MyTClonesArray.h
Go to the documentation of this file.
Or view
the newest version in sPHENIX GitHub for file MyTClonesArray.h
1
#ifndef MYTCLONESARRAY_H__
2
#define MYTCLONESARRAY_H__
3
// This is how to store a class inside a TClonesArray, useful for
4
// e.g. tracks or in general anything where you have many objects per event.
5
// This class doesn't play the virtual base class inheritance game we do
6
// for our dst's, so old files won't be readable if you change this class
7
// root might still be able to read parts of old files but I really
8
// wouldn't rely on this
9
10
#include <
phool/PHObject.h
>
11
12
class
TClonesArray;
13
class
MySimpleTree
;
14
15
class
MyTClonesArray
:
public
PHObject
16
{
17
public
:
18
MyTClonesArray
();
19
virtual
~MyTClonesArray
();
20
21
void
Reset
();
22
MySimpleTree
*
GetNewItem
();
23
MySimpleTree
*
GetItem
(
const
unsigned
int
i)
const
;
24
int
Entries
();
25
void
MyEventInt
(
const
int
i) {
myeventint
= i;}
26
int
MyEventInt
()
const
{
return
myeventint
;}
27
void
MyEventFloat
(
const
float
f
) {
myeventfloat
=
f
;}
28
float
MyEventFloat
()
const
{
return
myeventfloat
;}
29
30
protected
:
31
int
myeventint
;
32
float
myeventfloat
;
33
TClonesArray *
MyTCArray
;
34
35
ClassDef(
MyTClonesArray
,1)
36
};
37
38
#endif
/*MYTCLONESARRAY_H__*/
tutorials
blob
master
MyOwnTTree
src
MyTClonesArray.h
Built by
Jin Huang
. updated:
Wed Jun 29 2022 17:26:00
using
1.8.2 with
ECCE GitHub integration