BOSS
7.1.1
BESIII Offline Software System
Loading...
Searching...
No Matches
Event/McTruth/McTruth-00-03-00/src/DecayMode.cxx
Go to the documentation of this file.
1
#include "
McTruth/DecayMode.h
"
2
#include <iostream>
3
#include <assert.h>
4
5
void
DecayMode::getData
(
int
*
data
,
unsigned
int
size) {
6
for
(
unsigned
int
index=0; index<m_size; index++) {
7
data
[index] = m_data[index];
8
}
9
}
10
11
void
DecayMode::putData
(
int
*
data
,
unsigned
int
size) {
12
assert(size);
13
for
(
unsigned
int
index=0; index<m_size; index++) {
14
m_data[index] =
data
[index];
15
}
16
}
17
18
bool
DecayMode::values_ok(
unsigned
int
size) {
19
if
(size > m_size) {
20
std::cout <<
" DecayMode:: error: size beyond the range!"
<<std::endl;
21
return
false
;
22
}
else
{
23
return
true
;
24
}
25
}
data
TTree * data
Definition
DataBase/tau_mode.c:5
DecayMode.h
DecayMode::getData
void getData(int *data, unsigned int size)
Definition
Event/McTruth/McTruth-00-03-00/src/DecayMode.cxx:5
DecayMode::putData
void putData(int *data, unsigned int size)
Definition
Event/McTruth/McTruth-00-03-00/src/DecayMode.cxx:11
7.1.1
Event
McTruth
McTruth-00-03-00
src
DecayMode.cxx
Generated by
1.12.0