CMS 3D CMS Logo

PPSDirectSimulationData.h
Go to the documentation of this file.
1 #ifndef CondFormats_PPSObjects_PPSDirectSimulationData_h
2 #define CondFormats_PPSObjects_PPSDirectSimulationData_h
3 
4 #include <string>
7 #include "TH2F.h"
8 
10 public:
13 
14  typedef std::pair<std::string, std::string> FileObject;
15 
16  // Getters
17  const std::string& getEmpiricalAperture45() const;
18  const std::string& getEmpiricalAperture56() const;
19 
22 
23  std::map<unsigned int, FileObject>& getEfficienciesPerRP();
24  std::map<unsigned int, FileObject>& getEfficienciesPerPlane();
25 
26  // Setters
29 
32 
33  // utility methods
34  std::map<unsigned int, std::unique_ptr<TH2F>> loadEffeciencyHistogramsPerRP() const;
35  std::map<unsigned int, std::unique_ptr<TH2F>> loadEffeciencyHistogramsPerPlane() const;
36 
37 private:
40 
43 
44  std::map<unsigned int, FileObject> efficienciesPerRP_, efficienciesPerPlane_;
45 
46  static std::unique_ptr<TH2F> loadObject(const std::string& file, const std::string& object);
47  static std::string replace(std::string input, const std::string& from, const std::string& to);
48 
50 };
51 
52 #endif
PPSDirectSimulationData::getTimeResolutionDiamonds56
const std::string & getTimeResolutionDiamonds56() const
Definition: PPSDirectSimulationData.cc:29
PPSDirectSimulationData::getTimeResolutionDiamonds45
const std::string & getTimeResolutionDiamonds45() const
Definition: PPSDirectSimulationData.cc:28
input
static const std::string input
Definition: EdmProvDump.cc:48
MessageLogger.h
PPSDirectSimulationData::loadEffeciencyHistogramsPerPlane
std::map< unsigned int, std::unique_ptr< TH2F > > loadEffeciencyHistogramsPerPlane() const
Definition: PPSDirectSimulationData.cc:54
PPSDirectSimulationData::efficienciesPerPlane_
std::map< unsigned int, FileObject > efficienciesPerPlane_
Definition: PPSDirectSimulationData.h:44
PPSDirectSimulationData::loadEffeciencyHistogramsPerRP
std::map< unsigned int, std::unique_ptr< TH2F > > loadEffeciencyHistogramsPerRP() const
Definition: PPSDirectSimulationData.cc:45
PPSDirectSimulationData::empiricalAperture45_
std::string empiricalAperture45_
Definition: PPSDirectSimulationData.h:38
PPSDirectSimulationData::getEfficienciesPerPlane
std::map< unsigned int, FileObject > & getEfficienciesPerPlane()
Definition: PPSDirectSimulationData.cc:34
COND_SERIALIZABLE
#define COND_SERIALIZABLE
Definition: Serializable.h:39
to
PPSDirectSimulationData::PPSDirectSimulationData
PPSDirectSimulationData()
Definition: PPSDirectSimulationData.cc:15
PPSDirectSimulationData::empiricalAperture56_
std::string empiricalAperture56_
Definition: PPSDirectSimulationData.h:39
PPSDirectSimulationData::setEmpiricalAperture45
void setEmpiricalAperture45(std::string s)
Definition: PPSDirectSimulationData.cc:39
PPSDirectSimulationData::~PPSDirectSimulationData
~PPSDirectSimulationData()
Definition: PPSDirectSimulationData.cc:22
alignCSCRings.s
s
Definition: alignCSCRings.py:92
PPSDirectSimulationData::efficienciesPerRP_
std::map< unsigned int, FileObject > efficienciesPerRP_
Definition: PPSDirectSimulationData.h:44
PPSDirectSimulationData::loadObject
static std::unique_ptr< TH2F > loadObject(const std::string &file, const std::string &object)
Definition: PPSDirectSimulationData.cc:85
PPSDirectSimulationData::FileObject
std::pair< std::string, std::string > FileObject
Definition: PPSDirectSimulationData.h:14
geometryDiff.file
file
Definition: geometryDiff.py:13
PPSDirectSimulationData::setEmpiricalAperture56
void setEmpiricalAperture56(std::string s)
Definition: PPSDirectSimulationData.cc:40
PPSDirectSimulationData::setTimeResolutionDiamonds56
void setTimeResolutionDiamonds56(std::string s)
Definition: PPSDirectSimulationData.cc:43
Serializable.h
PPSDirectSimulationData::timeResolutionDiamonds56_
std::string timeResolutionDiamonds56_
Definition: PPSDirectSimulationData.h:42
AlCaHLTBitMon_QueryRunRegistry.string
string string
Definition: AlCaHLTBitMon_QueryRunRegistry.py:256
PPSDirectSimulationData::getEfficienciesPerRP
std::map< unsigned int, FileObject > & getEfficienciesPerRP()
Definition: PPSDirectSimulationData.cc:31
PPSDirectSimulationData::setTimeResolutionDiamonds45
void setTimeResolutionDiamonds45(std::string s)
Definition: PPSDirectSimulationData.cc:42
PPSDirectSimulationData
Definition: PPSDirectSimulationData.h:9
PPSDirectSimulationData::replace
static std::string replace(std::string input, const std::string &from, const std::string &to)
Definition: PPSDirectSimulationData.cc:103
PPSDirectSimulationData::timeResolutionDiamonds45_
std::string timeResolutionDiamonds45_
Definition: PPSDirectSimulationData.h:41
PPSDirectSimulationData::getEmpiricalAperture56
const std::string & getEmpiricalAperture56() const
Definition: PPSDirectSimulationData.cc:26
PPSDirectSimulationData::getEmpiricalAperture45
const std::string & getEmpiricalAperture45() const
Definition: PPSDirectSimulationData.cc:25