![]() |
![]() |
#include "FWCore/Utilities/interface/InputTag.h"
#include "DataFormats/Common/interface/Handle.h"
#include "DataFormats/PatCandidates/interface/Jet.h"
#include "PhysicsTools/FWLite/interface/EventContainer.h"
#include "PhysicsTools/FWLite/interface/CommandLineParser.h"
#include "TROOT.h"
Go to the source code of this file.
Functions | |
int | main (int argc, char *argv[]) |
int main | ( | int | argc, |
char * | argv[] | ||
) |
Definition at line 22 of file blank.cc.
References fwlite::EventContainer::atEnd(), optutl::CommandLineParser::parseArguments(), geometryXMLtoCSV::parser, and fwlite::EventContainer::toBegin().
{ // ////////////////////////// // // // Command Line Options // // // ////////////////////////// // // Tell people what this analysis code does and setup default options. optutl::CommandLineParser parser (""); // Change any defaults or add any new command // // line options you would like here. // // Parse the command line arguments parser.parseArguments (argc, argv); // //////////////////////////// // // // Create Event Container // // // //////////////////////////// // // This object 'event' is used both to get all information from the // event as well as to store histograms, etc. fwlite::EventContainer eventCont (parser); // ////////////////////////////////// // // // Begin Run // // // // (e.g., book histograms, etc) // // // ////////////////////////////////// // // Setup a style gROOT->SetStyle ("Plain"); // Book those histograms! // //////////////// // // // Event Loop // // // //////////////// // for (eventCont.toBegin(); ! eventCont.atEnd(); ++eventCont) { // Take What We Need From Event // } // for eventCont // ////////////////// // // // Clean Up Job // // // ////////////////// // // Histograms will be automatically written to the root file // specificed by command line options. // All done! Bye bye. return 0; }