Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2021-02-24 09:53:32

0001 #ifndef SimPPS_PPSPixelDigiProducer_RPix_Charge_Share_H
0002 #define SimPPS_PPSPixelDigiProducer_RPix_Charge_Share_H
0003 
0004 #include "FWCore/ParameterSet/interface/ParameterSet.h"
0005 #include <vector>
0006 #include "CondFormats/PPSObjects/interface/PPSPixelTopology.h"
0007 #include "SimPPS/PPSPixelDigiProducer/interface/RPixSignalPoint.h"
0008 
0009 class RPixChargeShare {
0010 public:
0011   RPixChargeShare(const edm::ParameterSet &params, uint32_t det_id, const PPSPixelTopology &ppt);
0012   std::map<unsigned short, double> Share(const std::vector<RPixSignalPoint> &charge_map, const PPSPixelTopology &ppt);
0013 
0014 private:
0015   uint32_t det_id_;
0016   std::vector<double> signalCoupling_;
0017   CTPPSPixelIndices pxlInd;
0018   const int pxlRowSize_ = pxlInd.getDefaultRowDetSize();
0019   const int pxlColSize_ = pxlInd.getDefaultColDetSize();
0020   int no_of_pixels_;
0021 
0022   int verbosity_;
0023 
0024   std::string ChargeMapFile2E_[4];
0025   double chargeMap2E_[4][60][40];
0026   const int xBinMax_[4] = {29, 59, 29, 59};  // X upper bins of the charge maps [0:3]
0027   const int yBinMax_[4] = {19, 19, 39, 39};  // Y upper bins of the charge maps [0:3]
0028 };
0029 
0030 #endif