Back to home page

Project CMSSW displayed by LXR

 
 

    


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

0001 #ifndef __L1Trigger_L1THGCal_HGCalStage2ClusterDistribution_h__
0002 #define __L1Trigger_L1THGCal_HGCalStage2ClusterDistribution_h__
0003 
0004 #include "FWCore/ParameterSet/interface/ParameterSet.h"
0005 #include "L1Trigger/L1THGCal/interface/HGCalTriggerGeometryBase.h"
0006 
0007 #include "DataFormats/L1THGCal/interface/HGCalCluster.h"
0008 #include "DataFormats/ForwardDetId/interface/HGCalTriggerBackendDetId.h"
0009 
0010 class HGCalStage2ClusterDistribution {
0011 public:
0012   HGCalStage2ClusterDistribution(const edm::ParameterSet& conf);
0013 
0014   HGCalTriggerGeometryBase::geom_set getStage2FPGAs(const unsigned stage1_fpga,
0015                                                     const HGCalTriggerGeometryBase::geom_set& stage2_fpgas,
0016                                                     const edm::Ptr<l1t::HGCalCluster>& tc_ptr) const;
0017   unsigned phiBin(unsigned roverzbin, double phi) const;
0018   double rotatedphi(double x, double y, double z, int sector) const;
0019 
0020 private:
0021   double roz_min_ = 0.;
0022   double roz_max_ = 0.;
0023   unsigned roz_bins_ = 42;
0024   std::vector<double> phi_edges_;
0025   double roz_bin_size_ = 0.;
0026 };
0027 
0028 #endif