|
|
Go to the documentation of this file.
14 std::vector<std::string> wantedsubdets = iConfig.
getParameter<std::vector<std::string> >(
"wantedSubDets");
15 for (
const auto& iS : wantedsubdets) {
30 std::vector<edm::ParameterSet> wantedusersubdets_ps =
31 iConfig.
getParameter<std::vector<edm::ParameterSet> >(
"wantedUserSubDets");
32 for (
const auto& iS : wantedusersubdets_ps) {
35 std::vector<std::string>
selection = iS.getParameter<std::vector<std::string> >(
"selection");
50 produces<ClusterSummary>().setBranchAlias(
"trackerClusterSummary");
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());
98 getSelections(itClusters->
id());
101 fillSelections(cluster->size(),
float(cluster->charge()) / 1000.);
117 std::cout <<
"-------------------------------------------------------" << std::endl;
121 auto result = std::make_unique<ClusterSummary>();
130 edm::LogInfo(
"ClusterSummaryProducer") <<
"+++++++++++++++++++++++++++++++ " << std::endl <<
"Getting info on ";
id_type id(size_t cell) const
void beginStream(edm::StreamID) override
boost::transform_iterator< IterHelp, const_IdIter > const_iterator
int getClusSizeByIndex(const int mod) const
const_iterator begin(bool update=false) const
#define DEFINE_FWK_MODULE(type)
edm::EDGetTokenT< edmNew::DetSetVector< SiPixelCluster > > pixelClusters_
void addClusChargeByIndex(const int mod, const float val)
const unsigned clusterSize() const
static constexpr int verbose
static const std::vector< std::string > subDetNames
void addNClusByIndex(const int mod, const int val)
std::pair< DetIdSelector, ClusterSummary::CMSTracker > ModuleSelection
void addClusSizeByIndex(const int mod, const int val)
std::vector< std::string > moduleNames
edm::EDGetTokenT< edmNew::DetSetVector< SiStripCluster > > stripClusters_
float getClusChargeByIndex(const int mod) const
T getParameter(std::string const &) const
void produce(edm::Event &, const edm::EventSetup &) override
int getNClusByIndex(const int mod) const
ClusterSummaryProducer(const edm::ParameterSet &)
const_iterator end(bool update=false) const
static const std::vector< std::vector< std::string > > subDetSelections
const data_type * const_iterator