Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2024-04-06 12:20:38

0001 #ifndef __L1Trigger_L1THGCal_HGCalVFESummationImpl_h__
0002 #define __L1Trigger_L1THGCal_HGCalVFESummationImpl_h__
0003 
0004 #include "FWCore/ParameterSet/interface/ParameterSet.h"
0005 #include "DataFormats/DetId/interface/DetId.h"
0006 #include "L1Trigger/L1THGCal/interface/HGCalTriggerTools.h"
0007 
0008 #include <vector>
0009 #include <utility>
0010 #include <unordered_map>
0011 
0012 class HGCalVFESummationImpl {
0013 public:
0014   HGCalVFESummationImpl(const edm::ParameterSet& conf);
0015 
0016   void setGeometry(const HGCalTriggerGeometryBase* const geom) { triggerTools_.setGeometry(geom); }
0017   void triggerCellSums(const std::vector<std::pair<DetId, uint32_t> >&, std::unordered_map<uint32_t, uint32_t>&);
0018 
0019 private:
0020   double lsb_silicon_fC_;
0021   double lsb_scintillator_MIP_;
0022   std::vector<double> thresholds_silicon_;
0023   double threshold_scintillator_;
0024 
0025   HGCalTriggerTools triggerTools_;
0026 };
0027 
0028 #endif