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
5void 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
11void 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
18bool 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}
TTree * data
void getData(int *data, unsigned int size)
void putData(int *data, unsigned int size)