Changeset 21 for trunk/MadWeight


Ignore:
Timestamp:
Oct 2, 2008, 5:20:56 PM (16 years ago)
Author:
Pavel Demin
Message:

fix AnalyseMissingET

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/MadWeight/Analysis.C

    r18 r21  
    1111#include "TChain.h"
    1212#include "TString.h"
     13#include "TClonesArray.h"
    1314
    1415#include "TH2.h"
     
    263264  ExRootMissingET *input, *output;
    264265
    265   input = static_cast<ExRootMissingET*>(fInputMissingET->At(0));
    266 
    267   output = static_cast<ExRootMissingET*>(fOutputMissingET->NewEntry());
    268 
    269   *output = *input;
     266  if(fInputMissingET->GetEntriesFast() > 0)
     267  {
     268    input = static_cast<ExRootMissingET*>(fInputMissingET->At(0));
     269 
     270 
     271    output = static_cast<ExRootMissingET*>(fOutputMissingET->NewEntry());
     272 
     273    *output = *input;
     274  }
    270275}
    271276
Note: See TracChangeset for help on using the changeset viewer.