Main Page | Modules | Namespace List | Class Hierarchy | Class List | File List | Namespace Members | Class Members | File Members

TMBL1AndOr.cpp

Go to the documentation of this file.
00001 
00003 //                                                                      //
00004 // TMBTree Trig class                                                    //
00005 //                                                                      //
00007 
00008 #include "tmb_tree/TMBL1AndOr.hpp"
00009 #include "TObjString.h"
00010 #include "TObjArray.h"
00011 #include <vector>
00012 #include <string>
00013 
00014 using namespace std;
00015 
00016 ClassImp(TMBL1AndOr)
00017 
00018 
00019 TMBL1AndOr::TMBL1AndOr(){}
00020 
00021 TMBL1AndOr::TMBL1AndOr( const TMBL1AndOr & trig ) : TObject(trig),_andornames (trig._andornames){}
00022 
00023 TMBL1AndOr::~TMBL1AndOr(){}
00024 
00028 void TMBL1AndOr::Clear (const Option_t *opt){
00029   TObject::Clear (opt);
00030   _andornames.Clear();
00031 }
00032 
00033 
00039 
00040 
00041 void TMBL1AndOr::set_andornames(vector<string> &_aonamesvec){
00042     _andornames.SetOwner(); // TObjArray takes care of deleting datamembers
00043     vector<string>::iterator last = _aonamesvec.end();
00044     vector<string>::iterator i;
00045     for (i = _aonamesvec.begin();i!=last;++i) {
00046        TObjString *t = new TObjString(i->c_str());
00047       _andornames.AddLast(t);
00048     }
00049 }
00050 
00056 
00057 const bool TMBL1AndOr::l1andor (const char *s) const{
00058     return (_andornames.FindObject(s));
00059 }
00060 
00064 
00065 const TObjArray &TMBL1AndOr::allAndOr() const {
00066    return _andornames;
00067 }

Generated on Tue Mar 28 10:13:04 2006 for CAF by doxygen 1.3.4