Description: [one line class summary]
Implementation: [Notes on implementation]
Definition at line 68 of file ClusterSummaryProducer.h.
Definition at line 48 of file ClusterSummaryProducer.cc.
References ClusterSummary::addClusChargeByIndex(), ClusterSummary::addClusSizeByIndex(), ClusterSummary::addNClusByIndex(), edmNew::DetSetVector< T >::begin(), cCluster, ClusterVariables::charge(), ClusterVariables::clusterSize(), gather_cfg::cout, doPixels, doStrips, edmNew::DetSetVector< T >::end(), plotBeamSpotDB::first, objects.autophobj::float, edm::Event::getByToken(), ClusterSummary::getClusChargeByIndex(), ClusterSummary::getClusSizeByIndex(), ClusterSummary::getNClusByIndex(), edmNew::DetSetVector< T >::id(), moduleNames, eostools::move(), HiRegitMuonDetachedTripletStep_cff::pixelClusters, pixelClusters_, edm::Event::put(), ClusterSummary::reset(), mps_fire::result, selectors, HiRegitMuonDetachedTripletStep_cff::stripClusters, and stripClusters_.
Referenced by ~ClusterSummaryProducer().
52 std::vector<bool> selectedVector(
selectors.size(),
false);
54 auto getSelections = [&] (
const uint32_t detid ){
55 for(
unsigned int iS = 0; iS <
selectors.size(); ++iS)
58 auto fillSelections = [&] (
const int clusterSize,
const float clusterCharge ){
59 for(
unsigned int iS = 0; iS <
selectors.size(); ++iS){
60 if(!selectedVector[iS])
continue;
75 for(;itClusters!=stripClusters->end();++itClusters){
76 getSelections(itClusters->
id());
79 fillSelections(Summaryinfo.clusterSize(),Summaryinfo.charge());
91 for(;itClusters!=pixelClusters->end();++itClusters){
92 getSelections(itClusters->
id());
94 fillSelections(cluster->size(),
float(cluster->charge())/1000.);
111 std::cout <<
"-------------------------------------------------------" << std::endl;
115 auto result = std::make_unique<ClusterSummary>();
boost::transform_iterator< IterHelp, const_IdIter > const_iterator
const_iterator end(bool update=false) const
OrphanHandle< PROD > put(std::unique_ptr< PROD > product)
Put a new product.
std::vector< std::string > moduleNames
edm::EDGetTokenT< edmNew::DetSetVector< SiStripCluster > > stripClusters_
void addClusChargeByIndex(const int mod, const float val)
bool getByToken(EDGetToken token, Handle< PROD > &result) const
void addClusSizeByIndex(const int mod, const int val)
ModuleSelections selectors
data_type const * const_iterator
id_type id(size_t cell) const
int getClusSizeByIndex(const int mod) const
int getNClusByIndex(const int mod) const
float getClusChargeByIndex(const int mod) const
edm::EDGetTokenT< edmNew::DetSetVector< SiPixelCluster > > pixelClusters_
void addNClusByIndex(const int mod, const int val)
const_iterator begin(bool update=false) const