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

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

Function Documentation

◆ ClassImp() [1/2]

ClassImp ( CBin  )

◆ ClassImp() [2/2]

ClassImp ( CentralityBins  )

◆ getCentralityFromFile() [1/2]

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

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, FrontierConditions_GlobalTag_cff::file, dataset::firstRun, BeamSpotPI::lastRun, genParticles_cff::map, writedatasetfile::run, TableParser::table, and GlobalPosition_Frontier_DevDB_cff::tag.

◆ getCentralityFromFile() [2/2]

CentralityBins::RunMap getCentralityFromFile ( TDirectoryFile *  file,
const char *  tag,
int  firstRun,
int  lastRun 
)
dataset.firstRun
firstRun
Definition: dataset.py:940
CentralityBins::RunMap
std::map< int, const CentralityBins * > RunMap
Definition: CentralityBins.h:39
GlobalPosition_Frontier_DevDB_cff.tag
tag
Definition: GlobalPosition_Frontier_DevDB_cff.py:11
CentralityBins
Definition: CentralityBins.h:37
BeamSpotPI::lastRun
Definition: BeamSpotPayloadInspectorHelper.h:39
FrontierConditions_GlobalTag_cff.file
file
Definition: FrontierConditions_GlobalTag_cff.py:13
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