Description: [one line class summary]
Implementation: [Notes on implementation]
Definition at line 63 of file ClusterSummaryProducer.h.
Definition at line 53 of file ClusterSummaryProducer.cc.
References ClusterSummary::addClusChargeByIndex(), ClusterSummary::addClusSizeByIndex(), ClusterSummary::addNClusByIndex(), edmNew::DetSetVector< T >::begin(), cCluster, ClusterVariables::charge(), ClusterVariables::clusterSize(), nano_mu_local_reco_cff::clusterSize, ALCARECOPPSCalTrackBasedSel_cff::detid, doPixels, doStrips, edmNew::DetSetVector< T >::end(), dqmdumpme::first, ALCARECOEcalPhiSym_cff::float, ClusterSummary::getClusChargeByIndex(), ClusterSummary::getClusSizeByIndex(), ClusterSummary::getNClusByIndex(), edmNew::DetSetVector< T >::id(), iEvent, callgraph::module, moduleNames, eostools::move(), DQMOffline_LumiMonitoring_cff::pixelClusters, pixelClusters_, ClusterSummary::reset(), mps_fire::result, HLT_2024v14_cff::stripClusters, stripClusters_, and verbose.
56 std::vector<bool> selectedVector(
selectors.size(),
false);
58 auto getSelections = [&](
const uint32_t
detid) {
59 for (
unsigned int iS = 0; iS <
selectors.size(); ++iS)
62 auto fillSelections = [&](
const int clusterSize,
const float clusterCharge) {
63 for (
unsigned int iS = 0; iS <
selectors.size(); ++iS) {
64 if (!selectedVector[iS])
81 getSelections(itClusters->
id());
85 fillSelections(Summaryinfo.clusterSize(), Summaryinfo.charge());
98 getSelections(itClusters->
id());
101 fillSelections(cluster->size(),
float(cluster->charge()) / 1000.);
124 edm::LogInfo(
"ClusterSummaryProducer") <<
"-------------------------------------------------------" << std::endl;
129 auto result = std::make_unique<ClusterSummary>();
float getClusChargeByIndex(const int mod) const
std::vector< std::string > moduleNames
edm::EDGetTokenT< edmNew::DetSetVector< SiStripCluster > > stripClusters_
void addClusChargeByIndex(const int mod, const float val)
void addClusSizeByIndex(const int mod, const int val)
data_type const * const_iterator
const_iterator end(bool update=false) const
int getNClusByIndex(const int mod) const
id_type id(size_t cell) const
Log< level::Info, false > LogInfo
boost::transform_iterator< IterHelp, const_IdIter > const_iterator
const_iterator begin(bool update=false) const
edm::EDGetTokenT< edmNew::DetSetVector< SiPixelCluster > > pixelClusters_
int getClusSizeByIndex(const int mod) const
void addNClusByIndex(const int mod, const int val)