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
const std::string & getEmpiricalAperture56() const
const std::string & getEmpiricalAperture45() const
static std::string replace(std::string input, const std::string &from, const std::string &to)
const std::string & getTimeResolutionDiamonds45() const
const std::string & getTimeResolutionDiamonds56() const
std::map< unsigned int, FileObject > efficienciesPerRP_
void setTimeResolutionDiamonds56(std::string s)
static std::unique_ptr< TH2F > loadObject(const std::string &file, const std::string &object)
static std::string const input
Definition: EdmProvDump.cc:50
std::map< unsigned int, std::unique_ptr< TH2F > > loadEffeciencyHistogramsPerRP() const
void setEmpiricalAperture45(std::string s)
std::map< unsigned int, FileObject > & getEfficienciesPerRP()
std::pair< std::string, std::string > FileObject
void setEmpiricalAperture56(std::string s)
#define COND_SERIALIZABLE
Definition: Serializable.h:39
std::map< unsigned int, std::unique_ptr< TH2F > > loadEffeciencyHistogramsPerPlane() const
void setTimeResolutionDiamonds45(std::string s)
std::map< unsigned int, FileObject > efficienciesPerPlane_
std::map< unsigned int, FileObject > & getEfficienciesPerPlane()