22 #include "StETofCollection.h"
25 StETofCollection::StETofCollection() {
30 StETofCollection::~StETofCollection() {
31 if( mETofHeader )
delete mETofHeader;
35 StETofHeader* StETofCollection::etofHeader() {
return mETofHeader; }
36 StSPtrVecETofDigi& StETofCollection::etofDigis() {
return mETofDigis; }
37 StSPtrVecETofHit& StETofCollection::etofHits() {
return mETofHits; }
39 const StETofHeader* StETofCollection::etofHeader()
const {
return mETofHeader; }
40 const StSPtrVecETofDigi& StETofCollection::etofDigis()
const {
return mETofDigis; }
41 const StSPtrVecETofHit& StETofCollection::etofHits()
const {
return mETofHits; }
51 StETofCollection::addDigi(
const StETofDigi* aDigi ) {
52 if ( aDigi ) mETofDigis.push_back( aDigi );
57 StETofCollection::addHit(
const StETofHit* aHit ) {
58 if ( aHit ) mETofHits.push_back( aHit );
62 bool StETofCollection::digisPresent()
const {
return mETofDigis.size(); }
63 bool StETofCollection::hitsPresent()
const {
return mETofHits.size(); }