10 template<
typename FECODEC,
typename DATA>
23 HGCalEESensitive_(conf.getParameter<
std::
string>(
"HGCalEESensitive_tag")),
24 HGCalHESiliconSensitive_(conf.getParameter<
std::
string>(
"HGCalHESiliconSensitive_tag")),
27 typedef std::unique_ptr<HGCalTriggerGeometryBase>
ReturnType;
39 for(
const auto& digi :
coll )
44 digi.decode(codec_, data);
45 for(
const auto& triggercell : data.payload)
47 if(triggercell.hwPt()>0)
52 int cellThickness = 0;
54 if( subdet ==
HGCEE ){
55 cellThickness = (hgceeTopoHandle_)->dddConstants().waferTypeL((
unsigned int)detid.wafer() );
56 }
else if( subdet ==
HGCHEF ){
57 cellThickness = (hgchefTopoHandle_)->dddConstants().waferTypeL((
unsigned int)detid.wafer() );
58 }
else if( subdet ==
HGCHEB ){
59 edm::LogWarning(
"DataNotFound") <<
"ATTENTION: the BH trgCells are not yet implemented !! ";
62 calibration_.calibrate(calibratedtriggercell, cellThickness);
63 cluster_product_->push_back(0,calibratedtriggercell);
74 virtual void reset() override final
96 "SingleCellClusterAlgoBestChoice");
100 "SingleCellClusterAlgoThreshold");
BXVector< HGCalTriggerCell > HGCalTriggerCellBxCollection
ParameterSet const & getParameterSet(ParameterSetID const &id)
std::string HGCalHESiliconSensitive_
SingleCellClusterAlgo< HGCalTriggerCellThresholdCodec, HGCalTriggerCellThresholdCodec::data_type > SingleCellClusterAlgoThreshold
virtual void reset() override final
SingleCellClusterAlgo(const edm::ParameterSet &conf)
virtual void run(const l1t::HGCFETriggerDigiCollection &coll, const edm::EventSetup &es) override final
edm::ESHandle< HGCalTopology > hgchefTopoHandle_
virtual void putInEvent(edm::Event &evt) override final
virtual void setProduces(edm::EDProducer &prod) const override final
std::unique_ptr< l1t::HGCalTriggerCellBxCollection > cluster_product_
int subdetId() const
get the contents of the subdetector field (not cast into any detector's numbering enum) ...
edm::ESHandle< HGCalTopology > hgceeTopoHandle_
HGCalTriggerCellCalibration calibration_
SingleCellClusterAlgo< HGCalTriggerCellBestChoiceCodec, HGCalTriggerCellBestChoiceCodec::data_type > SingleCellClusterAlgoBestChoice
std::unique_ptr< HGCalTriggerGeometryBase > ReturnType
char data[epos_bytes_allocation]
#define DEFINE_EDM_PLUGIN(factory, type, name)
std::string HGCalEESensitive_