ViewVC Help
View File | Revision Log | Show Annotations | Root Listing
root/cvsroot/UserCode/MitAna/macros/examples/runObjectCleaner.C
Revision: 1.1
Committed: Fri Aug 8 11:23:17 2008 UTC (16 years, 8 months ago) by sixie
Content type: text/plain
Branch: MAIN
CVS Tags: Mit_006, Mit_005, Mit_004, MITHEP_2_0_x
Log Message:
Add ObjectCleaning module which imposes object ID criteria and exports collections of Good objects for analysis

File Contents

# User Rev Content
1 sixie 1.1 // $Id: runFullExample.C,v 1.2 2008/06/09 11:47:03 paus Exp $
2    
3     #if !defined(__CINT__) || defined(__MAKECINT__)
4     #include <TROOT.h>
5     #include "MitAna/DataUtil/interface/Debug.h"
6     #include "MitAna/TreeMod/interface/ObjectCleaning.h"
7     #include "MitAna/TreeMod/interface/Analysis.h"
8     #endif
9    
10     //--------------------------------------------------------------------------------------------------
11     void runObjectCleaner(const char *files = "mit-hww-testfull_000.root")
12     {
13     using namespace mithep;
14     gDebugMask = Debug::kAnalysis;
15     gDebugLevel = 1;
16    
17     // set up the modules
18     ObjectCleaningMod *mod = new ObjectCleaningMod;
19    
20     // set up analysis
21     Analysis *ana = new Analysis;
22     ana->SetSuperModule(mod);
23     ana->AddFile(files);
24     ana->SetOutputName("mit-objects-hist.root");
25    
26     // run the analysis after successful initialisation
27     ana->Run(! gROOT->IsBatch());
28     }