15 #include "StHbtMaker/Infrastructure/StHbtMultiTrackCut.h"
16 #include "StHbtMaker/Infrastructure/StHbtTrackCutCollection.hh"
24 StHbtMultiTrackCut::StHbtMultiTrackCut(){
25 mCutCollection =
new StHbtTrackCutCollection;
30 StHbtMultiTrackCut::~StHbtMultiTrackCut(){
31 StHbtTrackCutIterator iter;
32 for (iter=mCutCollection->begin();iter!=mCutCollection->end();iter++){
35 delete mCutCollection;
38 StHbtString StHbtMultiTrackCut::Report(){
40 temp =
"\n StHbtMultiTrackCut::Report() reporting ";
41 temp += (int)mCutCollection->size();
42 temp +=
" track cuts \n";
43 StHbtTrackCutIterator iter;
44 for (iter=mCutCollection->begin();iter!=mCutCollection->end();iter++){
45 temp += (*iter)->Report();
52 StHbtTrackCutIterator iter;
53 for (iter=mCutCollection->begin();iter!=mCutCollection->end();iter++){
54 temp = temp || (*iter)->Pass(track);
59 void StHbtMultiTrackCut::EventBegin(
const StHbtEvent* ev) {
60 StHbtTrackCutIterator iter;
61 for (iter=mCutCollection->begin();iter!=mCutCollection->end();iter++){
62 (*iter)->EventBegin(ev);
66 void StHbtMultiTrackCut::EventEnd(
const StHbtEvent* ev) {
67 StHbtTrackCutIterator iter;
68 for (iter=mCutCollection->begin();iter!=mCutCollection->end();iter++){
69 (*iter)->EventEnd(ev);
74 mCutCollection->push_back(cut);
79 StHbtTrackCutIterator iter;
81 for (iter=cut.mCutCollection->begin();iter!=cut.mCutCollection->end();iter++){
83 if (t) mCutCollection->push_back(t);