8 #include "StRoot/StEEmcPool/./EEmcTreeContainers/TrigSet.h"
17 TrigSet::TrigSet() : nTrigs(0), mTrigArray(0) { };
25 void TrigSet::Clear(
const Option_t* opt ){
34 void TrigSet::insert(
const std::vector< UInt_t >& trigVec ){
37 nTrigs = trigVec.size();
44 mTrigArray =
new UInt_t[ trigVec.size() ];
47 std::copy( trigVec.begin(), trigVec.end(), mTrigArray );
48 std::copy( trigVec.begin(), trigVec.end(), std::inserter( mTrigSet, mTrigSet.end() ) );
52 void TrigSet::resync()
const {
55 std::copy( mTrigArray, &mTrigArray[nTrigs], std::inserter( mTrigSet, mTrigSet.end() ) );
61 void TrigSet::copyToVector( std::vector< UInt_t >& vec )
const {
63 vec.reserve( nTrigs );
64 vec.insert( vec.end(), mTrigArray, &mTrigArray[nTrigs] );