#include <CTPPSPixelClusterProducer.h>
Definition at line 41 of file CTPPSPixelClusterProducer.h.
CTPPSPixelClusterProducer::CTPPSPixelClusterProducer |
( |
const edm::ParameterSet & |
param | ) |
|
|
explicit |
Definition at line 5 of file CTPPSPixelClusterProducer.cc.
9 verbosity_(conf.getUntrackedParameter<
int>(
"RPixVerbosity")),
11 produces<edm::DetSetVector<CTPPSPixelCluster> >();
edm::ESGetToken< CTPPSPixelAnalysisMask, CTPPSPixelAnalysisMaskRcd > tokenCTPPSPixelAnalysisMask_
edm::EDGetTokenT< edm::DetSetVector< CTPPSPixelDigi > > tokenCTPPSPixelDigi_
edm::ESGetToken< CTPPSPixelGainCalibrations, CTPPSPixelGainCalibrationsRcd > tokenGainCalib_
RPixDetClusterizer clusterizer_
CTPPSPixelClusterProducer::~CTPPSPixelClusterProducer |
( |
| ) |
|
|
override |
Definition at line 16 of file CTPPSPixelClusterProducer.cc.
References edm::ConfigurationDescriptions::add(), edm::ParameterSetDescription::add(), edm::ParameterSetDescription::addUntracked(), submitPVResolutionJobs::desc, and HLT_FULL_cff::InputTag.
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);
ParameterDescriptionBase * addUntracked(U const &iLabel, T const &value)
ParameterDescriptionBase * add(U const &iLabel, T const &value)
void add(std::string const &label, ParameterSetDescription const &psetDescription)
get inputs
Definition at line 29 of file CTPPSPixelClusterProducer.cc.
References edm::Event::getByToken(), edm::EventSetup::getData(), convertSQLitetoXML_cfg::output, edm::Event::put(), run(), tokenCTPPSPixelAnalysisMask_, tokenCTPPSPixelDigi_, and tokenGainCalib_.
42 run(*rpd, output, mask, gainCalibrations);
OrphanHandle< PROD > put(std::unique_ptr< PROD > product)
Put a new product.
edm::ESGetToken< CTPPSPixelAnalysisMask, CTPPSPixelAnalysisMaskRcd > tokenCTPPSPixelAnalysisMask_
bool getByToken(EDGetToken token, Handle< PROD > &result) const
edm::EDGetTokenT< edm::DetSetVector< CTPPSPixelDigi > > tokenCTPPSPixelDigi_
void run(const edm::DetSetVector< CTPPSPixelDigi > &input, edm::DetSetVector< CTPPSPixelCluster > &output, const CTPPSPixelAnalysisMask &mask, const CTPPSPixelGainCalibrations &gainCalibration)
bool getData(T &iHolder) const
edm::ESGetToken< CTPPSPixelGainCalibrations, CTPPSPixelGainCalibrationsRcd > tokenGainCalib_
Definition at line 48 of file CTPPSPixelClusterProducer.cc.
References RPixDetClusterizer::buildClusters(), clusterizer_, edm::DetSet< T >::data, edm::DetSetVector< T >::find_or_insert(), and verbosity_.
Referenced by produce().
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();
reference find_or_insert(det_id_type id)
Log< level::Info, false > LogInfo
RPixDetClusterizer clusterizer_
void buildClusters(unsigned int detId, const std::vector< CTPPSPixelDigi > &digi, std::vector< CTPPSPixelCluster > &clusters, const CTPPSPixelGainCalibrations *pcalibration, const CTPPSPixelAnalysisMask *mask)
int CTPPSPixelClusterProducer::verbosity_ |
|
private |