00001 #ifndef SimG4CMS_CaloMeanResponse_h 00002 #define SimG4CMS_CaloMeanResponse_h 00003 00004 #include "FWCore/ParameterSet/interface/ParameterSet.h" 00005 #include "FWCore/MessageLogger/interface/MessageLogger.h" 00006 00007 #include <string> 00008 #include <vector> 00009 00010 class CaloMeanResponse { 00011 00012 public: 00013 00014 CaloMeanResponse(edm::ParameterSet const & p); 00015 virtual ~CaloMeanResponse(); 00016 double getWeight(int genPID, double genP); 00017 00018 private: 00019 00020 void readResponse (std::string fName); 00021 00022 bool useTable; 00023 double scale; 00024 int piLast, pLast; 00025 std::vector<int> pionTypes, protonTypes; 00026 std::vector<double> pionMomentum, pionTable; 00027 std::vector<double> protonMomentum, protonTable; 00028 00029 }; 00030 00031 #endif // SimG4CMS_CaloMeanResponse_h