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();
62 bool filter = cluster.filter();
67 barycenter = std::round(barycenter);
70 avgCharge = std::round(avgCharge);
73 barycenter = std::round(barycenter);
74 avgCharge = std::round(avgCharge);
77 barycenter = std::round(barycenter * 10) / 10;
80 avgCharge = std::round(avgCharge);
83 barycenter = std::round(barycenter * 10) / 10;
86 avgCharge = std::round(avgCharge * 10) / 10;
102 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