Go to the documentation of this file.
12 produces<edm::DetSetVector<CTPPSPixelCluster> >();
19 desc.addUntracked<
int>(
"RPixVerbosity", 0);
21 desc.add<
int>(
"SeedADCThreshold", 2);
22 desc.add<
int>(
"ADCThreshold", 2);
23 desc.add<
double>(
"ElectronADCGain", 135.0);
24 desc.add<
int>(
"VCaltoElectronGain", 50);
25 desc.add<
int>(
"VCaltoElectronOffset", -411);
26 desc.add<
bool>(
"doSingleCalibration",
false);
27 descriptions.
add(
"ctppsPixelClusters",
desc);
56 for (
const auto &ds_digi :
input) {
61 unsigned int cluN = 0;
62 for (std::vector<CTPPSPixelCluster>::iterator iit = ds_cluster.
data.begin(); iit != ds_cluster.
data.end();
64 edm::LogInfo(
"CTPPSPixelClusterProducer") <<
"Cluster " << ++cluN <<
" avg row " << (*iit).avg_row()
65 <<
" avg col " << (*iit).avg_col() <<
" ADC.size " << (*iit).size();
T const * product() const
static const std::string input
CTPPSPixelGainCalibrationDBService theGainCalibrationDB
CTPPSPixelClusterProducer(const edm::ParameterSet ¶m)
void buildClusters(unsigned int detId, const std::vector< CTPPSPixelDigi > &digi, std::vector< CTPPSPixelCluster > &clusters, const CTPPSPixelGainCalibrations *pcalibration, const CTPPSPixelAnalysisMask *mask)
T getUntrackedParameter(std::string const &, T const &) const
Log< level::Info, false > LogInfo
~CTPPSPixelClusterProducer() override
edm::EDGetTokenT< edm::DetSetVector< CTPPSPixelDigi > > tokenCTPPSPixelDigi_
const CTPPSPixelGainCalibrations * getCalibs() const
#define DEFINE_FWK_MODULE(type)
void add(std::string const &label, ParameterSetDescription const &psetDescription)
edm::ESGetToken< CTPPSPixelAnalysisMask, CTPPSPixelAnalysisMaskRcd > tokenCTPPSPixelAnalysisMask_
virtual void getDB(const edm::Event &e, const edm::EventSetup &c)
void run(const edm::DetSetVector< CTPPSPixelDigi > &input, edm::DetSetVector< CTPPSPixelCluster > &output, const CTPPSPixelAnalysisMask *mask)
ESHandle< T > getHandle(const ESGetToken< T, R > &iToken) const
void produce(edm::Event &, const edm::EventSetup &) override
static void fillDescriptions(edm::ConfigurationDescriptions &descriptions)
RPixDetClusterizer clusterizer_
T getParameter(std::string const &) const