CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
Classes | Functions
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, python.multivaluedict::map(), DTTTrigCorrFirst::run, and 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) map.insert(std::pair<int,const CentralityBins*>(run,table));
27  }
28  return map;
29 }
string firstRun
Definition: dataset.py:402
std::map< int, const CentralityBins * > RunMap
#define table(NAME)
Definition: DbCore.h:49
dbl *** dir
Definition: mlp_gen.cc:35
CentralityBins::RunMap getCentralityFromFile ( TDirectoryFile *  ,
const char *  tag,
int  firstRun = 0,
int  lastRun = 10 
)

Definition at line 18 of file CentralityBins.cc.

References getCentralityFromFile().

18  {
20 }
string firstRun
Definition: dataset.py:402
CentralityBins::RunMap getCentralityFromFile(TDirectoryFile *, const char *dir, const char *tag, int firstRun=0, int lastRun=10)