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
Event const & toBegin() override
Go to the very first Event.
void parseArguments(int argc, char **argv, bool allowArgs=false)
fwlite::Run const & getRun() const
float avgInsRecLumi() const
bool atEnd() const override
fwlite::LuminosityBlock const & getLuminosityBlock() const
bool atEnd() const override
const Run & toBegin() override
fwlite::Run const & getRun() const
static void enable()
enable automatic library loading
bool atEnd() const override
SVec & stringVector(std::string key)
void getByLabel(const P &iP, const char *iModuleLabel, const char *iProductInstanceLabel=nullptr, const char *iProcessLabel=nullptr)
const LuminosityBlock & toBegin() override