1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
|
#ifndef ClusterMTCCFilter_H
#define ClusterMTCCFilter_H
// -*- C++ -*-
//
// Package: SiStripChannelChargeFilter
// Class : ClusterMTCCFilter
//
//
// Original Author: dkcira
#include "FWCore/Framework/interface/stream/EDFilter.h"
#include "FWCore/ParameterSet/interface/ParameterSet.h"
#include "FWCore/Framework/interface/Event.h"
#include "FWCore/Framework/interface/EventSetup.h"
#include "DataFormats/SiStripCluster/interface/SiStripCluster.h"
#include "DataFormats/DetId/interface/DetId.h"
#include "Geometry/Records/interface/IdealGeometryRecord.h"
class TrackerTopology;
namespace cms {
class ClusterMTCCFilter : public edm::stream::EDFilter<> {
public:
ClusterMTCCFilter(const edm::ParameterSet& ps);
~ClusterMTCCFilter() override = default;
bool filter(edm::Event& e, edm::EventSetup const& c) override;
private:
std::string clusterProducer;
unsigned int ChargeThresholdTIB;
unsigned int ChargeThresholdTOB;
unsigned int ChargeThresholdTEC;
unsigned int MinClustersDiffComponents;
std::vector<uint32_t> ModulesToBeExcluded;
// unsigned int: generalized_layer: 10*subdetId + layer
std::map<unsigned int, std::vector<SiStripCluster> > clusters_in_subcomponents;
edm::ESGetToken<TrackerTopology, IdealGeometryRecord> tTopoToken_;
};
} // namespace cms
#endif
|