CMS 3D CMS Logo

Functions

/data/refman/pasoursint/CMSSW_5_3_3/src/DataFormats/HeavyIonEvent/src/CentralityBins.cc File Reference

#include "DataFormats/HeavyIonEvent/interface/CentralityBins.h"
#include <iostream>

Go to the source code of this file.

Functions

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

Function Documentation

CentralityBins::RunMap getCentralityFromFile ( TDirectoryFile *  file,
const char *  tag,
int  firstRun,
int  lastRun 
)

Definition at line 18 of file CentralityBins.cc.

References getCentralityFromFile().

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

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;
}