Definition at line 15 of file PFClusterTimeSelector.cc.
Definition at line 45 of file PFClusterTimeSelector.cc.
References GOODCOLL_filter_cfg::cut, cutInfo_, cuts, PFClusterTimeSelector::CutInfo::depth, PFClusterTimeSelector::CutInfo::endcap, edm::ParameterSet::getParameter(), info(), PFClusterTimeSelector::CutInfo::maxE, PFClusterTimeSelector::CutInfo::maxTime, PFClusterTimeSelector::CutInfo::minE, and PFClusterTimeSelector::CutInfo::minTime.
47 std::vector<edm::ParameterSet>
cuts = iConfig.
getParameter<std::vector<edm::ParameterSet> >(
"cuts");
48 for (
const auto&
cut : cuts) {
50 info.depth =
cut.getParameter<
double>(
"depth");
51 info.minE =
cut.getParameter<
double>(
"minEnergy");
52 info.maxE =
cut.getParameter<
double>(
"maxEnergy");
53 info.minTime =
cut.getParameter<
double>(
"minTime");
54 info.maxTime =
cut.getParameter<
double>(
"maxTime");
55 info.endcap =
cut.getParameter<
bool>(
"endcap");
59 produces<reco::PFClusterCollection>();
60 produces<reco::PFClusterCollection>(
"OOT");
std::vector< CutInfo > cutInfo_
TkSoA const *__restrict__ CAHitNtupletGeneratorKernelsGPU::QualityCuts cuts
T getParameter(std::string const &) const
edm::EDGetTokenT< reco::PFClusterCollection > clusters_
PFClusterTimeSelector::~PFClusterTimeSelector |
( |
| ) |
|
|
overridedefault |
Definition at line 63 of file PFClusterTimeSelector.cc.
References HLT_FULL_cff::clusters, clusters_, cutInfo_, HLT_FULL_cff::depth, PFLayer::ECAL_BARREL, PFLayer::ECAL_ENDCAP, relval_parameters_module::energy, edm::Event::getByToken(), PFLayer::HCAL_BARREL1, PFLayer::HCAL_BARREL2, PFLayer::HCAL_ENDCAP, info(), phase1PixelTopology::layer, eostools::move(), submitPVResolutionJobs::out, and edm::Event::put().
66 auto out = std::make_unique<reco::PFClusterCollection>();
67 auto outOOT = std::make_unique<reco::PFClusterCollection>();
69 for (
const auto& cluster : *clusters) {
70 const double energy = cluster.energy();
71 const double time = cluster.time();
72 const double depth = cluster.depth();
75 if (energy < info.minE || energy >
info.maxE)
77 if (depth < 0.9 * info.depth || depth > 1.1 *
info.depth)
84 if (time >
info.minTime && time <
info.maxTime)
85 out->push_back(cluster);
87 outOOT->push_back(cluster);
OrphanHandle< PROD > put(std::unique_ptr< PROD > product)
Put a new product.
bool getByToken(EDGetToken token, Handle< PROD > &result) const
std::vector< CutInfo > cutInfo_
constexpr std::array< uint8_t, layerIndexSize > layer
edm::EDGetTokenT< reco::PFClusterCollection > clusters_
std::vector<CutInfo> PFClusterTimeSelector::cutInfo_ |
|
protected |