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