16 gSystem->Load(
"libFWCoreFWLite" );
24 std::vector<std::string> inputFiles_ = parser.
stringVector(
"inputFiles");
26 for(
unsigned int iFile=0; iFile<inputFiles_.size(); ++iFile){
28 TFile* inFile = TFile::Open(inputFiles_[iFile].c_str());
33 std::cout <<
"----------- Accessing by event ----------------" << std::endl;
49 std::cout <<
"----------- Accessing by lumi block ----------------" << std::endl;
51 double lumi_tot = 0.0;
63 std::cout <<
"----------------------------------------------------" << std::endl;
64 std::cout <<
"Total luminosity from lumi sections = " << lumi_tot << std::endl;
65 std::cout <<
"----------------------------------------------------" << std::endl;
67 std::cout <<
"----------- Accessing by run ----------------" << std::endl;
LuminosityBlockID id() const
void parseArguments(int argc, char **argv, bool allowArgs=false)
fwlite::Run const & getRun() const
float avgInsRecLumi() const
fwlite::LuminosityBlock const & getLuminosityBlock() const
int main(int argc, char **argv)
virtual bool atEnd() const
void getByLabel(const P &iP, const char *iModuleLabel, const char *iProductInstanceLabel=0, const char *iProcessLabel=0)
Event const & toBegin()
Go to the very first Event.
fwlite::Run const & getRun() const
virtual bool atEnd() const
SVec & stringVector(std::string key)
const LuminosityBlock & toBegin()
virtual bool atEnd() const
static void enable()
enable automatic library loading