ViewVC Help
View File | Revision Log | Show Annotations | Root Listing
root/cvsroot/UserCode/mstein/triggerStudy/triggerStudy.cfg
Revision: 1.1
Committed: Thu Nov 22 15:32:47 2012 UTC (12 years, 5 months ago) by mstein
Branch: MAIN
Log Message:
first skeleton

File Contents

# User Rev Content
1 mstein 1.1 #ifndef susy_cfg
2     #define susy_cfg
3     #include "susy.h"
4    
5     //-------------------------------------------------------------------------- MC
6     // dataset = "TTJets";
7    
8     //------------------------------------------- control structures
9     startEvent = 0;
10     nentries = -1; //-1: take all events
11     TString path = "/scratch/hh/current/cms/user/mstein/ntuples/";
12     Lumi = 1096.4; //in pb^-1
13     verbosity = 0;
14     outputNameSuffix = "";
15    
16    
17    
18    
19     void triggerStudy::configuration(){
20    
21    
22    
23    
24     //========================================= do the adequate actions influenced by the configuration
25     SetConfigFromCommandLine();
26     tools::SetVerbosity(verbosity);
27     SetIntelligentIO();
28    
29     //TString path = "/pnfs/desy.de/cms/tier2/store/user/schettle/nTuple11_v2/";
30    
31     "/scratch/hh/current/cms/user/schettle/mc/Fall10-START38_V12-v1/RSGravToMuMu_kMpl005_M-500_7TeV-pythia6");
32     fChain = 0;
33     fChain = new TChain("susyTree/tree");
34     Init();
35    
36     timer.Start("Load Files");
37     Int_t allEntries = fChain->GetEntries();
38     timer.Stop("Load Files");
39     if(startEvent>allEntries){
40     cout<<"startEvent>allEntries :" << startEvent << " > " << allEntries << endl;
41     startEvent = 0;
42     nentries = 0;
43     }
44     if(nentries>allEntries) nentries=allEntries;
45     if(nentries==-1 || runOverFilesFlg){
46     nentries = allEntries;
47     startEvent = 0;
48     }
49     if((startEvent+nentries) > allEntries) nentries=allEntries-startEvent;
50     }
51    
52    
53    
54    
55    
56    
57    
58    
59     #endif
60    
61    
62    
63    
64    
65    
66    
67    
68    
69    
70    
71    
72    
73    
74    
75    
76    
77    
78    
79    
80    
81    
82    
83    
84    
85    
86    
87    
88    
89    
90    
91    
92    
93