message: Interation rate added to events tree
diff: #include "TStopwatch.h"
  #include "TTree.h"
  +#include "TGrid.h"
  #include "TChain.h"
  #include "TVectorF.h"
  #include "AliStack.h"
  #include <stdarg.h>
  #include "AliNDLocalRegression.h"
  #include "AliESDEvent.h"
  +#include "AliLumiTools.h"
  #include "AliPIDResponse.h"
  #include "TTreeStream.h"
  #include "AliCentrality.h"
  @@ -797,7 +799,7 @@ Double_t AliESDtools::CachePileupVertexTPC(Int_t entry, Int_t verbose) {
  (*fTPCVertexInfo)[4] = counterM;
  (*fTPCVertexInfo)[5] = (counterP+counterM);
  if (verbose > 0) {
  - ::Info("AliESDtools::CachePileupVertexTPC", "%f\t%f\t%f\t%f\t", counterP, counterM, posZA, posZC);
  + ::Info("AliESDtools::CachePileupVertexTPC", "%d\t%d\t%f\t%f\t", counterP, counterM, posZA, posZC);
  }
  }
  return 1;
  @@ -885,8 +887,24 @@ Int_t AliESDtools::DumpEventVariables() {
  if (track->IsOn(AliESDtrack::kTPCin)) TPCMult++;
  }
  + // retrieve interaction rate
  + Float_t intrate=-1.;
  + static Int_t timeStampCache = -1;
  + if (timeStampCache!=Int_t(timeStampS)) timeStampCache=Int_t(timeStampS);
  + if (!gGrid && timeStampCache>0) {
  + AliInfo("Trying to connect to AliEn ...");
  + TGrid::Connect("alien://");
  + } else {
  + const char *ocdb = "raw://";
  + TGraph *grLumiGraph = (TGraph*)AliLumiTools::GetLumiFromCTP(runNumber,ocdb);
  + intrate = grLumiGraph->Eval(timeStamp);
  + delete grLumiGraph;
  + }
  +
  + // dump event variables into tree
  (*fStreamer)<<"events"<<
  "run=" << runNumber << // run Number
  + "intrate=" << intrate << // run Number
  "bField=" << bField << // b field
  "gid=" << gid << // global event ID
  "timeStampS=" << timeStampS << // time stamp in seconds -event building
  