message: Add pileup info in run summary
diff: @@ -335,24 +335,27 @@ void MakeSummary ( TString period, ofstream &outFile )
  }
  //_________________________________
  -std::map<Int_t,std::vector<Int_t>> GetRunInfo ( TString evsQA )
  +std::map<Int_t,std::vector<Double_t>> GetRunInfo ( TString evsQA )
  {
  - std::map<Int_t,std::vector<Int_t>> map;
  + std::map<Int_t,std::vector<Double_t>> map;
  if ( gSystem->AccessPathName(evsQA.Data()) == 0 ) {
  TFile* file = TFile::Open(evsQA);
  TTree* tree = static_cast<TTree*>(file->Get("trending"));
  if ( tree ) {
  Int_t run, fill, bcs;
  + Double_t mu;
  tree->SetBranchAddress("run",&run);
  tree->SetBranchAddress("fill",&fill);
  tree->SetBranchAddress("bcs",&bcs);
  + tree->SetBranchAddress("mu",&mu);
  for ( Long64_t ientry=0; ientry<tree->GetEntries(); ientry++ ) {
  tree->GetEntry(ientry);
  auto search = map.find(run);
  if ( search != map.end() ) continue;
  auto vec = &(map[run]);
  - vec->push_back(fill);
  - vec->push_back(bcs);
  + vec->push_back((Double_t)fill);
  + vec->push_back((Double_t)bcs);
  + vec->push_back(mu);
  }
  }
  delete file;
  @@ -364,7 +367,7 @@ std::map<Int_t,std::vector<Int_t>> GetRunInfo ( TString evsQA )
  void MakeRunSummary ( ofstream &outFile, TString trackerQA, TString evsQA = "", ifstream* inFile = 0x0 )
  {
  - std::map<Int_t,std::vector<Int_t>> map = GetRunInfo(evsQA);
  + std::map<Int_t,std::vector<Double_t>> map = GetRunInfo(evsQA);
  TObjArray* runListArr = GetRunList(trackerQA);
  runListArr->Sort();
  @@ -384,6 +387,7 @@ void MakeRunSummary ( ofstream &outFile, TString trackerQA, TString evsQA = "",
  Int_t readRun = -2, currRun = -1;
  Int_t previousFill = -1;
  + Double_t previousMu = 0.;
  for ( Int_t ipage=0; ipage<nPages; ipage++ ) {
  TString title = "Run summary";
  @@ -425,10 +429,13 @@ void MakeRunSummary ( ofstream &outFile, TString trackerQA, TString evsQA = "",
  TString info = "";
  if ( search != map.end() ) {
  auto vec = search->second;
  - Int_t fill = vec[0];
  - if ( fill != previousFill ) {
  + Int_t fill = (Int_t)vec[0];
  + Double_t mu = vec[2];
  + Double_t ratio = previousMu > 0. ? mu/previousMu : 10.;
  + if ( fill != previousFill || TMath::Abs(1.-ratio) > 0.5 ) {
  previousFill = fill;
  - info = Form("Fill %i, IB %i",fill,vec[1]);
  + previousMu = mu;
  + info = Form("Fill %i, IB %i, mu %.3f",fill,(Int_t)vec[1],mu);
  }
  }
  outFile << " \\runTab{" << currRun << "}{" << info.Data() << "}" << endl;
  