#include <CTPPSPixelClusterProducer.h>
Definition at line 39 of file CTPPSPixelClusterProducer.h.
CTPPSPixelClusterProducer::CTPPSPixelClusterProducer |
( |
const edm::ParameterSet & |
param | ) |
|
|
explicit |
CTPPSPixelClusterProducer::~CTPPSPixelClusterProducer |
( |
| ) |
|
|
override |
Definition at line 21 of file CTPPSPixelClusterProducer.cc.
References edm::ConfigurationDescriptions::add(), edm::ParameterSetDescription::add(), edm::ParameterSetDescription::addUntracked(), and AlCaHLTBitMon_QueryRunRegistry::string.
25 desc.
add<
int>(
"SeedADCThreshold",2);
26 desc.
add<
int>(
"ADCThreshold",2);
27 desc.
add<
double>(
"ElectronADCGain",135.0);
28 desc.add<
int>(
"VCaltoElectronGain",50);
29 desc.add<
int>(
"VCaltoElectronOffset",-411);
30 desc.add<
bool>(
"doSingleCalibration",
false);
31 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 34 of file CTPPSPixelClusterProducer.cc.
References edm::EventSetup::get(), edm::eventsetup::EventSetupRecordImplementation< T >::get(), edm::Event::getByToken(), CTPPSPixelGainCalibrationDBService::getDB(), convertSQLitetoXML_cfg::output, edm::ESHandle< T >::product(), edm::Event::put(), run(), theGainCalibrationDB, and tokenCTPPSPixelDigi_.
OrphanHandle< PROD > put(std::unique_ptr< PROD > product)
Put a new product.
bool getByToken(EDGetToken token, Handle< PROD > &result) const
void run(const edm::DetSetVector< CTPPSPixelDigi > &input, edm::DetSetVector< CTPPSPixelCluster > &output, const CTPPSPixelAnalysisMask *mask)
edm::EDGetTokenT< edm::DetSetVector< CTPPSPixelDigi > > tokenCTPPSPixelDigi_
PRODUCT const & get(ESGetToken< PRODUCT, T > const &iToken) const
virtual void getDB(const edm::Event &e, const edm::EventSetup &c)
CTPPSPixelGainCalibrationDBService theGainCalibrationDB
T const * product() const
Definition at line 59 of file CTPPSPixelClusterProducer.cc.
References RPixDetClusterizer::buildClusters(), clusterizer_, edm::DetSet< T >::data, DEFINE_FWK_MODULE, edm::DetSetVector< T >::find_or_insert(), CTPPSPixelGainCalibrationDBService::getCalibs(), RecoTauDiscriminantConfiguration::mask, theGainCalibrationDB, and verbosity_.
Referenced by produce().
62 for (
const auto &ds_digi : input)
69 for(std::vector<CTPPSPixelCluster>::iterator iit = ds_cluster.
data.begin(); iit != ds_cluster.
data.end(); iit++){
70 edm::LogInfo(
"CTPPSPixelClusterProducer") <<
"Cluster " << ++cluN <<
" avg row " 71 << (*iit).avg_row()<<
" avg col " << (*iit).avg_col()<<
" ADC.size " << (*iit).size();
const CTPPSPixelGainCalibrations * getCalibs() const
reference find_or_insert(det_id_type id)
CTPPSPixelGainCalibrationDBService theGainCalibrationDB
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 |