CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
Functions
CentralityBins.cc File Reference
#include "DataFormats/HeavyIonEvent/interface/CentralityBins.h"
#include <iostream>

Go to the source code of this file.

Functions

 ClassImp (CBin)
 
 ClassImp (CentralityBins)
 
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

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

Definition at line 17 of file CentralityBins.cc.

References getCentralityFromFile().

17  {
19 }
string firstRun
Definition: dataset.py:936
CentralityBins::RunMap getCentralityFromFile(TDirectoryFile *, const char *dir, const char *tag, int firstRun=0, int lastRun=10)
CentralityBins::RunMap getCentralityFromFile ( TDirectoryFile *  file,
const char *  dir,
const char *  tag,
int  firstRun,
int  lastRun 
)

Definition at line 21 of file CentralityBins.cc.

References MergeJob_cfg::lastRun, submitPVValidationJobs::run, and TableParser::table.

Referenced by getCentralityFromFile().

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)
27  map.insert(std::pair<int, const CentralityBins*>(run, table));
28  }
29  return map;
30 }
string firstRun
Definition: dataset.py:936
std::map< int, const CentralityBins * > RunMap