CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
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
static std::string replace(std::string input, const std::string &from, const std::string &to)
std::map< unsigned int, FileObject > efficienciesPerRP_
const std::string & getTimeResolutionDiamonds56() const
void setTimeResolutionDiamonds56(std::string s)
const std::string & getTimeResolutionDiamonds45() const
std::map< unsigned int, std::unique_ptr< TH2F > > loadEffeciencyHistogramsPerRP() const
static std::unique_ptr< TH2F > loadObject(const std::string &file, const std::string &object)
static std::string const input
Definition: EdmProvDump.cc:47
void setEmpiricalAperture45(std::string s)
std::map< unsigned int, FileObject > & getEfficienciesPerRP()
std::map< unsigned int, std::unique_ptr< TH2F > > loadEffeciencyHistogramsPerPlane() const
std::pair< std::string, std::string > FileObject
const std::string & getEmpiricalAperture45() const
void setEmpiricalAperture56(std::string s)
#define COND_SERIALIZABLE
Definition: Serializable.h:39
void setTimeResolutionDiamonds45(std::string s)
const std::string & getEmpiricalAperture56() const
std::map< unsigned int, FileObject > efficienciesPerPlane_
std::map< unsigned int, FileObject > & getEfficienciesPerPlane()