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