48 produces<edmNew::DetSetVector<SiStripApproximateCluster>>();
52 auto result = std::make_unique<edmNew::DetSetVector<SiStripApproximateCluster>>();
58 for (
const auto& cluster : detClusters) {
59 float barycenter = cluster.barycenter();
60 uint8_t
width = cluster.width();
61 float avgCharge = cluster.avgCharge();
66 barycenter = std::round(barycenter);
69 avgCharge = std::round(avgCharge);
72 barycenter = std::round(barycenter);
73 avgCharge = std::round(avgCharge);
76 barycenter = std::round(barycenter * 10) / 10;
79 avgCharge = std::round(avgCharge);
82 barycenter = std::round(barycenter * 10) / 10;
85 avgCharge = std::round(avgCharge * 10) / 10;
101 descriptions.
add(
"SiStripApprox2ApproxClusters",
desc);
T getParameter(std::string const &) const
#define DEFINE_FWK_MODULE(type)
edm::EDGetTokenT< edmNew::DetSetVector< SiStripApproximateCluster > > clusterToken
std::string approxVersionS
SiStripApprox2ApproxClusters(const edm::ParameterSet &conf)
void add(std::string const &label, ParameterSetDescription const &psetDescription)
bool isSaturated(const Digi &digi, const int &maxADCvalue, int ifirst, int n)
static void fillDescriptions(edm::ConfigurationDescriptions &descriptions)
void produce(edm::Event &, const edm::EventSetup &) override
edm::InputTag inputApproxClusters