ViewVC Help
View File | Revision Log | Show Annotations | Root Listing
root/cvsroot/UserCode/macros/runHiggsWWExample.C
Revision: 1.1
Committed: Thu Jul 17 08:22:26 2008 UTC (16 years, 9 months ago) by loizides
Content type: text/plain
Branch: MAIN
CVS Tags: HEAD
Error occurred while calculating annotation data.
Log Message:
First checking of MC event selection. Needs cleanup and more histograms to check bookkeeping.

File Contents

# Content
1 // $Id: runSimpleExample.C,v 1.5 2008/06/09 00:06:36 bendavid Exp $
2
3 #if !defined(__CINT__) || defined(__MAKECINT__)
4 #include <TROOT.h>
5 #include "MitAna/DataUtil/interface/Debug.h"
6 #include "MitAna/TreeMod/interface/Analysis.h"
7 #include "MitHiggs/HwwMods/interface/HwwMCEvtSelMod.h"
8 #endif
9
10 //--------------------------------------------------------------------------------------------------
11 void runHiggsWWExample(const char *files = "$CMSSW_BASE/src/mit-hww160_*.root")
12 {
13 using namespace mithep;
14 gDebugMask = Debug::kAnalysis;
15 gDebugLevel = 1;
16
17 // set up the modules
18 HwwMCEvtSelMod *mod = new HwwMCEvtSelMod;
19
20 // set up analysis
21 Analysis *ana = new Analysis;
22 ana->SetSuperModule(mod);
23 ana->AddFile(files);
24 ana->SetOutputName("mit-hww-hist.root");
25
26 // run the analysis after successful initialisation
27 ana->Run(!gROOT->IsBatch());
28 }