ViewVC Help
View File | Revision Log | Show Annotations | Root Listing
root/cvsroot/UserCode/MitAna/DataTree/src/TriggerName.cc
Revision: 1.2
Committed: Sat Sep 27 06:06:36 2008 UTC (16 years, 7 months ago) by loizides
Content type: text/plain
Branch: MAIN
CVS Tags: Mit_006, Mit_005, Mit_004
Changes since 1.1: +16 -1 lines
Log Message:
Implement TriggerTable plus cleanup

File Contents

# User Rev Content
1 loizides 1.2 // $Id: TriggerName.cc,v 1.1 2008/09/17 04:07:28 loizides Exp $
2 loizides 1.1
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 loizides 1.2 // Print trigger id and name.
13    
14 loizides 1.1 printf("%03d: %s\n", fId, fName.Data());
15     }
16 loizides 1.2
17     //--------------------------------------------------------------------------------------------------
18     void TriggerTable::Print(Option_t *opt) const
19     {
20     // Print trigger table content (not ordered!)
21    
22     TIterator *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     }