Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2024-04-06 12:29:47

0001 #ifndef SimG4CMS_CaloMeanResponse_h
0002 #define SimG4CMS_CaloMeanResponse_h
0003 
0004 #include "FWCore/ParameterSet/interface/ParameterSet.h"
0005 #include "FWCore/MessageLogger/interface/MessageLogger.h"
0006 
0007 #include <string>
0008 #include <vector>
0009 
0010 class CaloMeanResponse {
0011 public:
0012   CaloMeanResponse(edm::ParameterSet const& p);
0013   virtual ~CaloMeanResponse();
0014   double getWeight(int genPID, double genP);
0015 
0016 private:
0017   void readResponse(std::string fName);
0018 
0019   bool useTable;
0020   double scale;
0021   int piLast, pLast;
0022   std::vector<int> pionTypes, protonTypes;
0023   std::vector<double> pionMomentum, pionTable;
0024   std::vector<double> protonMomentum, protonTable;
0025 };
0026 
0027 #endif  // SimG4CMS_CaloMeanResponse_h