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
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
static void enable()
enable automatic library loading
virtual bool atEnd() const
SVec & stringVector(std::string key)
const LuminosityBlock & toBegin()
virtual bool atEnd() const