1 |
loizides |
1.4 |
// $Id: TriggerObject.cc,v 1.3 2008/12/01 17:30:01 loizides Exp $
|
2 |
loizides |
1.1 |
|
3 |
|
|
#include "MitAna/DataTree/interface/TriggerObject.h"
|
4 |
|
|
|
5 |
|
|
ClassImp(mithep::TriggerObjectRel)
|
6 |
|
|
ClassImp(mithep::TriggerObjectBase)
|
7 |
|
|
ClassImp(mithep::TriggerObject)
|
8 |
loizides |
1.2 |
|
9 |
|
|
using namespace mithep;
|
10 |
|
|
|
11 |
|
|
//--------------------------------------------------------------------------------------------------
|
12 |
|
|
void TriggerObject::Print(Option_t *opt) const
|
13 |
|
|
{
|
14 |
|
|
printf("%03d: %s %2d %.2f %.2f %.2f (%s/%s)\n",
|
15 |
|
|
TrgId(), TrigName(), Int_t(Type()), Pt(), Eta(), Phi(), ModuleName(), FilterName());
|
16 |
|
|
}
|
17 |
|
|
|
18 |
|
|
//--------------------------------------------------------------------------------------------------
|
19 |
|
|
void TriggerObjectsTable::Print(Option_t *opt) const
|
20 |
|
|
{
|
21 |
|
|
// Print trigger objects table content.
|
22 |
|
|
|
23 |
loizides |
1.4 |
TIter iter(MakeIterator());
|
24 |
|
|
const TriggerObject *to = dynamic_cast<const TriggerObject*>(iter.Next());
|
25 |
loizides |
1.2 |
while (to) {
|
26 |
|
|
to->Print();
|
27 |
loizides |
1.4 |
to = dynamic_cast<const TriggerObject*>(iter.Next());
|
28 |
loizides |
1.2 |
}
|
29 |
|
|
}
|