Public Member Functions | Public Attributes | List of all members
NearlineRunPlotSet Struct Reference

Public Member Functions

 NearlineRunPlotSet (TFile *fp)
 
void loadHistogram (std::string dirName, std::string histName)
 

Public Attributes

std::map< std::string, std::shared_ptr< TH1 > > MapNameHists
 
NearlineFileInfo FileInfo
 
TFile * File
 

Detailed Description

Definition at line 127 of file NearlineSummariser.cxx.

Constructor & Destructor Documentation

NearlineRunPlotSet::NearlineRunPlotSet ( TFile *  fp)
inline

Definition at line 132 of file NearlineSummariser.cxx.

132  :
133  FileInfo(fp),
134  File(fp)
135  {
136 
137  }//NearlinePlots
NearlineFileInfo FileInfo

Member Function Documentation

void NearlineRunPlotSet::loadHistogram ( std::string  dirName,
std::string  histName 
)
inline

Definition at line 138 of file NearlineSummariser.cxx.

138  {
139  std::string newHistName = histName + "_run" + std::to_string(FileInfo.Run);
140  std::string histFullName;
141  if(dirName=="") histFullName = histName;
142  else histFullName = dirName + "/" + histName;
143  std::shared_ptr<TH1> thisHisto(getHistogram(File, histFullName, newHistName));
144  MapNameHists.insert(std::pair<std::string,std::shared_ptr<TH1>>(histName, thisHisto));
145  }
std::map< std::string, std::shared_ptr< TH1 > > MapNameHists
std::string string
Definition: nybbler.cc:12
TH1 * getHistogram(TFile *fp, std::string histName, std::string newHistName)
NearlineFileInfo FileInfo
std::string to_string(ModuleType const mt)
Definition: ModuleType.h:34

Member Data Documentation

TFile* NearlineRunPlotSet::File

Definition at line 131 of file NearlineSummariser.cxx.

NearlineFileInfo NearlineRunPlotSet::FileInfo

Definition at line 130 of file NearlineSummariser.cxx.

std::map<std::string,std::shared_ptr<TH1> > NearlineRunPlotSet::MapNameHists

Definition at line 129 of file NearlineSummariser.cxx.


The documentation for this struct was generated from the following file: