CMS 3D CMS Logo

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

◆ getCentralityFromFile() [1/2]

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

Definition at line 21 of file CentralityBins.cc.

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 }

References DeadROC_duringRun::dir, geometryDiff::file, dataset::firstRun, BeamSpotPI::lastRun, genParticles_cff::map, writedatasetfile::run, TableParser::table, and makeGlobalPositionRcd_cfg::tag.

◆ getCentralityFromFile() [2/2]

CentralityBins::RunMap getCentralityFromFile ( TDirectoryFile *  ,
const char *  tag,
int  firstRun = 0,
int  lastRun = 10 
)
dataset.firstRun
firstRun
Definition: dataset.py:940
CentralityBins::RunMap
std::map< int, const CentralityBins * > RunMap
Definition: CentralityBins.h:39
CentralityBins
Definition: CentralityBins.h:37
BeamSpotPI::lastRun
Definition: BeamSpotPayloadInspectorHelper.h:40
geometryDiff.file
file
Definition: geometryDiff.py:13
makeGlobalPositionRcd_cfg.tag
tag
Definition: makeGlobalPositionRcd_cfg.py:6
writedatasetfile.run
run
Definition: writedatasetfile.py:27
genParticles_cff.map
map
Definition: genParticles_cff.py:11
TableParser.table
table
Definition: TableParser.py:111
getCentralityFromFile
CentralityBins::RunMap getCentralityFromFile(TDirectoryFile *file, const char *tag, int firstRun, int lastRun)
Definition: CentralityBins.cc:17
DeadROC_duringRun.dir
dir
Definition: DeadROC_duringRun.py:23