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

Comparing UserCode/MitAna/DataTree/src/Met.cc (file contents):
Revision 1.1 by loizides, Mon Jul 7 16:02:25 2008 UTC vs.
Revision 1.2 by loizides, Tue Apr 7 14:59:08 2009 UTC

# Line 1 | Line 1
1   // $Id$
2  
3   #include "MitAna/DataTree/interface/Met.h"
4 + #include <TFile.h>
5 + #include <TStreamerInfo.h>
6  
7   ClassImp(mithep::Met)
8 +
9 + //--------------------------------------------------------------------------------------------------
10 + Bool_t mithep::Met::HasCorrections() const
11 + {
12 +  // Return kTRUE if class version is larger than 1.
13 +
14 +  Bool_t ret = (IsA()->GetBaseClass("mithep::Met")->GetClassVersion()>1);
15 +
16 +  if (!gFile)
17 +    return ret;
18 +  
19 +  TStreamerInfo *si =
20 +    dynamic_cast<TStreamerInfo*>(gFile->GetStreamerInfoList()->FindObject("mithep::Met"));
21 +  if (!si)
22 +    return ret;
23 +
24 +  ret = (si->GetClassVersion()>1);
25 +  return ret;
26 + }

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines