ROOT
master
Reference Guide
Loading...
Searching...
No Matches
data2Tree.hxx
Go to the documentation of this file.
1
// Author: Alvaro Tolosa-Delgado CERN 07/2023
2
// Author: Jorge Agramunt Ros IFIC(Valencia,Spain) 07/2023
3
4
/*************************************************************************
5
* Copyright (C) 1995-2023, Rene Brun and Fons Rademakers. *
6
* All rights reserved. *
7
* *
8
* For the licensing terms see $ROOTSYS/LICENSE. *
9
* For the list of contributors see $ROOTSYS/README/CREDITS. *
10
*************************************************************************/
11
12
// This file declares a class, with some members and method
13
// The definition of the method is done in the corresponding .cpp file
14
15
#ifndef __data2Tree__
16
#define __data2Tree__
17
18
#include <vector>
19
20
class
myDetectorData
{
21
public
:
22
//-- Example of method...
23
void
clear
();
24
25
//-- Class members
26
//-- initialized by construction, C++11
27
double
time
= 1;
28
double
energy
= 2;
29
int
detectorID
= 3;
30
std::vector<double>
correlatedDetectors_v
= {1, 2, 3};
31
};
32
33
#endif
myDetectorData
Definition
data2Tree.hxx:20
myDetectorData::clear
void clear()
Definition
data2Tree.cxx:17
myDetectorData::time
double time
Definition
data2Tree.hxx:27
myDetectorData::correlatedDetectors_v
std::vector< double > correlatedDetectors_v
Definition
data2Tree.hxx:30
myDetectorData::detectorID
int detectorID
Definition
data2Tree.hxx:29
myDetectorData::energy
double energy
Definition
data2Tree.hxx:28
tutorials
tree
dictionary
data2Tree.hxx
ROOT master - Reference Guide Generated on Mon Sep 16 2024 13:59:06 (GVA Time) using Doxygen 1.9.8