ViewVC Help
View File | Revision Log | Show Annotations | Root Listing
root/cvsroot/UserCode/MitAna/DataTree/src/TriggerName.cc
Revision: 1.4
Committed: Mon Dec 8 16:42:53 2008 UTC (16 years, 4 months ago) by loizides
Content type: text/plain
Branch: MAIN
CVS Tags: Mit_008pre2, Mit_008pre1, Mit_006b, Mit_006a
Changes since 1.3: +4 -4 lines
Log Message:
Very small memory leak fixed.

File Contents

# Content
1 // $Id: TriggerName.cc,v 1.3 2008/12/01 17:30:01 loizides Exp $
2
3 #include "MitAna/DataTree/interface/TriggerName.h"
4
5 ClassImp(mithep::TriggerName)
6
7 using namespace mithep;
8
9 //--------------------------------------------------------------------------------------------------
10 void TriggerName::Print(Option_t *opt) const
11 {
12 // Print trigger id and name.
13
14 printf("%03d: %s\n", fId, fName.Data());
15 }
16
17 //--------------------------------------------------------------------------------------------------
18 void TriggerTable::Print(Option_t *opt) const
19 {
20 // Print trigger table content (not ordered!)
21
22 TIter iter(MakeIterator());
23 const TriggerName *tn = dynamic_cast<const TriggerName*>(iter.Next());
24 while (tn) {
25 tn->Print();
26 tn = dynamic_cast<const TriggerName*>(iter.Next());
27 }
28 }