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