6 : tokenCTPPSPixelDigi_(consumes<edm::DetSetVector<
CTPPSPixelDigi> >(conf.getParameter<edm::
InputTag>(
"tag"))),
9 verbosity_(conf.getUntrackedParameter<int>(
"RPixVerbosity")),
11 produces<edm::DetSetVector<CTPPSPixelCluster> >();
20 desc.
add<
int>(
"SeedADCThreshold", 2);
21 desc.
add<
int>(
"ADCThreshold", 2);
22 desc.
add<
double>(
"ElectronADCGain", 135.0);
23 desc.
add<
int>(
"VCaltoElectronGain", 50);
24 desc.
add<
int>(
"VCaltoElectronOffset", -411);
25 desc.
add<
bool>(
"doSingleCalibration",
false);
26 descriptions.
add(
"ctppsPixelClusters", desc);
42 run(*rpd, output, mask, gainCalibrations);
52 for (
const auto &ds_digi : input) {
57 unsigned int cluN = 0;
58 for (std::vector<CTPPSPixelCluster>::iterator iit = ds_cluster.
data.begin(); iit != ds_cluster.
data.end();
60 edm::LogInfo(
"CTPPSPixelClusterProducer") <<
"Cluster " << ++cluN <<
" avg row " << (*iit).avg_row()
61 <<
" avg col " << (*iit).avg_col() <<
" ADC.size " << (*iit).size();
OrphanHandle< PROD > put(std::unique_ptr< PROD > product)
Put a new product.
ParameterDescriptionBase * addUntracked(U const &iLabel, T const &value)
edm::ESGetToken< CTPPSPixelAnalysisMask, CTPPSPixelAnalysisMaskRcd > tokenCTPPSPixelAnalysisMask_
bool getByToken(EDGetToken token, Handle< PROD > &result) const
#define DEFINE_FWK_MODULE(type)
edm::EDGetTokenT< edm::DetSetVector< CTPPSPixelDigi > > tokenCTPPSPixelDigi_
void run(const edm::DetSetVector< CTPPSPixelDigi > &input, edm::DetSetVector< CTPPSPixelCluster > &output, const CTPPSPixelAnalysisMask &mask, const CTPPSPixelGainCalibrations &gainCalibration)
static std::string const input
reference find_or_insert(det_id_type id)
bool getData(T &iHolder) const
ParameterDescriptionBase * add(U const &iLabel, T const &value)
edm::ESGetToken< CTPPSPixelGainCalibrations, CTPPSPixelGainCalibrationsRcd > tokenGainCalib_
Log< level::Info, false > LogInfo
void produce(edm::Event &, const edm::EventSetup &) override
RPixDetClusterizer clusterizer_
void add(std::string const &label, ParameterSetDescription const &psetDescription)
void buildClusters(unsigned int detId, const std::vector< CTPPSPixelDigi > &digi, std::vector< CTPPSPixelCluster > &clusters, const CTPPSPixelGainCalibrations *pcalibration, const CTPPSPixelAnalysisMask *mask)
CTPPSPixelClusterProducer(const edm::ParameterSet ¶m)
static void fillDescriptions(edm::ConfigurationDescriptions &descriptions)
~CTPPSPixelClusterProducer() override