ATLAS Offline Software
Functions
TBTrackInfoFromTag.cxx File Reference
#include "TBTrackInfoFromTag.h"
Include dependency graph for TBTrackInfoFromTag.cxx:

Go to the source code of this file.

Functions

template<class type1 , class type2 >
void copyArrToVec_1d (unsigned int size, type1 arr, type2 *vec)
 
template<class type1 , class type2 >
void copyArrToVec_2d (unsigned int size1, unsigned int size2, type1 arr, type2 *vec)
 

Function Documentation

◆ copyArrToVec_1d()

template<class type1 , class type2 >
void copyArrToVec_1d ( unsigned int  size,
type1  arr,
type2 *  vec 
)

Definition at line 10 of file TBTrackInfoFromTag.cxx.

11 {
12  (*vec).clear();
13  std::copy ( arr, arr+size, std::back_inserter(*vec) );
14  return;
15 }

◆ copyArrToVec_2d()

template<class type1 , class type2 >
void copyArrToVec_2d ( unsigned int  size1,
unsigned int  size2,
type1  arr,
type2 *  vec 
)

Definition at line 17 of file TBTrackInfoFromTag.cxx.

18 {
19  (*vec).clear();
20  (*vec).resize(size1);
21  for(unsigned int cntr=0; cntr<size1; cntr++ )
22  copyArrToVec_1d( size2,arr[cntr],&((*vec)[cntr]) );
23 
24  return;
25 }
vec
std::vector< size_t > vec
Definition: CombinationsGeneratorTest.cxx:12
python.setupRTTAlg.size
int size
Definition: setupRTTAlg.py:39
copyArrToVec_1d
void copyArrToVec_1d(unsigned int size, type1 arr, type2 *vec)
Definition: TBTrackInfoFromTag.cxx:10
calibdata.copy
bool copy
Definition: calibdata.py:27