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 |
}
|