ViewVC Help
View File | Revision Log | Show Annotations | Root Listing
root/cvsroot/UserCode/MitAna/DataTree/src/TriggerTable.cc
(Generate patch)

Comparing UserCode/MitAna/DataTree/src/TriggerTable.cc (file contents):
Revision 1.1 by loizides, Tue Mar 24 16:10:16 2009 UTC vs.
Revision 1.2 by loizides, Wed Dec 2 23:18:15 2009 UTC

# Line 1 | Line 1
1   // $Id$
2  
3   #include "MitAna/DataTree/interface/TriggerTable.h"
4 + #include <TObjArray.h>
5  
6   ClassImp(mithep::TriggerTable)
7  
# Line 11 | Line 12 | void TriggerTable::Print(Option_t *opt)
12   {
13    // Print trigger table content (not ordered!)
14  
15 +  TObjArray sorter;
16    TIter iter(MakeIterator());
17    const TriggerName *tn = dynamic_cast<const TriggerName*>(iter.Next());
18    while (tn) {
19 <    tn->Print();
19 >    sorter.Add(const_cast<TriggerName*>(tn));
20      tn = dynamic_cast<const TriggerName*>(iter.Next());
21    }
22 +  sorter.Sort();
23 +  for(Int_t i = 0; i<sorter.GetEntriesFast(); ++i)
24 +    sorter.At(i)->Print();
25   }

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines