CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
blank.cc
Go to the documentation of this file.
1 // -*- C++ -*-
2 
3 // CMS includes
7 
10 
11 // Root includes
12 #include "TROOT.h"
13 
14 using namespace std;
15 
17 // ///////////////////// //
18 // // Main Subroutine // //
19 // ///////////////////// //
21 
22 int main (int argc, char* argv[])
23 {
25  // ////////////////////////// //
26  // // Command Line Options // //
27  // ////////////////////////// //
29 
30 
31  // Tell people what this analysis code does and setup default options.
33 
35  // Change any defaults or add any new command //
36  // line options you would like here. //
38 
39  // Parse the command line arguments
40  parser.parseArguments (argc, argv);
41 
43  // //////////////////////////// //
44  // // Create Event Container // //
45  // //////////////////////////// //
47 
48  // This object 'event' is used both to get all information from the
49  // event as well as to store histograms, etc.
50  fwlite::EventContainer eventCont (parser);
51 
53  // ////////////////////////////////// //
54  // // Begin Run // //
55  // // (e.g., book histograms, etc) // //
56  // ////////////////////////////////// //
58 
59  // Setup a style
60  gROOT->SetStyle ("Plain");
61 
62  // Book those histograms!
63 
65  // //////////////// //
66  // // Event Loop // //
67  // //////////////// //
69 
70  for (eventCont.toBegin(); ! eventCont.atEnd(); ++eventCont)
71  {
73  // Take What We Need From Event //
75  } // for eventCont
76 
77 
79  // ////////////////// //
80  // // Clean Up Job // //
81  // ////////////////// //
83 
84  // Histograms will be automatically written to the root file
85  // specificed by command line options.
86 
87  // All done! Bye bye.
88  return 0;
89 }
void parseArguments(int argc, char **argv, bool allowArgs=false)
int main(int argc, char **argv)
tuple argc
Definition: dir2webdir.py:41
const EventContainer & toBegin()