CMS 3D CMS Logo

Classes | Functions

/data/git/CMSSW_5_3_11_patch5/src/DataFormats/HeavyIonEvent/interface/CentralityBins.h File Reference

#include <TNamed.h>
#include <TFile.h>
#include <vector>
#include <map>

Go to the source code of this file.

Classes

class  CBin
class  CentralityBins

Functions

CentralityBins::RunMap getCentralityFromFile (TDirectoryFile *, const char *dir, const char *tag, int firstRun=0, int lastRun=10)
CentralityBins::RunMap getCentralityFromFile (TDirectoryFile *, const char *tag, int firstRun=0, int lastRun=10)

Function Documentation

CentralityBins::RunMap getCentralityFromFile ( TDirectoryFile *  ,
const char *  dir,
const char *  tag,
int  firstRun = 0,
int  lastRun = 10 
)

Definition at line 22 of file CentralityBins.cc.

References MergeJob_cfg::lastRun, Association::map, DTTTrigCorrFirst::run, and asciidump::table.

Referenced by getCentralityFromFile().

                                                                                                                             {
  CentralityBins::RunMap map;
  for(int run = firstRun; run<= lastRun; ++run){
    const CentralityBins* table = (const CentralityBins*)file->Get(Form("%s/run%d/%s",dir,run,tag));
    if(table) map.insert(std::pair<int,const CentralityBins*>(run,table));
  }
  return map;
}
CentralityBins::RunMap getCentralityFromFile ( TDirectoryFile *  ,
const char *  tag,
int  firstRun = 0,
int  lastRun = 10 
)

Definition at line 18 of file CentralityBins.cc.

References getCentralityFromFile().