CMS 3D CMS Logo

Functions
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.

18  {
20 }
CentralityBins::RunMap getCentralityFromFile(TDirectoryFile *file, const char *tag, int firstRun, int lastRun)
firstRun
Definition: dataset.py:934
CentralityBins::RunMap getCentralityFromFile ( TDirectoryFile *  file,
const char *  dir,
const char *  tag,
int  firstRun,
int  lastRun 
)

Definition at line 22 of file CentralityBins.cc.

References ClassImp(), ntuplemaker::lastRun, genParticles_cff::map, and findQualityFiles::run.

22  {
24  for(int run = firstRun; run<= lastRun; ++run){
25  const CentralityBins* table = (const CentralityBins*)file->Get(Form("%s/run%d/%s",dir,run,tag));
26  if(table) map.insert(std::pair<int,const CentralityBins*>(run,table));
27  }
28  return map;
29 }
std::map< int, const CentralityBins * > RunMap
firstRun
Definition: dataset.py:934
dbl *** dir
Definition: mlp_gen.cc:35