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