Definition at line 15 of file PFClusterTimeSelector.cc.
◆ PFClusterTimeSelector()
Definition at line 45 of file PFClusterTimeSelector.cc.
References DMR_cfg::cut, cutInfo_, edm::ParameterSet::getParameter(), and info().
47 std::vector<edm::ParameterSet>
cuts = iConfig.
getParameter<std::vector<edm::ParameterSet> >(
"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");
T getParameter(std::string const &) const
std::vector< CutInfo > cutInfo_
edm::EDGetTokenT< reco::PFClusterCollection > clusters_
◆ ~PFClusterTimeSelector()
PFClusterTimeSelector::~PFClusterTimeSelector |
( |
| ) |
|
|
overridedefault |
◆ beginRun()
◆ produce()
Definition at line 63 of file PFClusterTimeSelector.cc.
References bsc_activity_cfg::clusters, clusters_, cutInfo_, hcalRecHitTable_cff::depth, PFLayer::ECAL_BARREL, PFLayer::ECAL_ENDCAP, hcalRecHitTable_cff::energy, PFLayer::HCAL_BARREL1, PFLayer::HCAL_BARREL2, PFLayer::HCAL_ENDCAP, iEvent, info(), nano_mu_digi_cff::layer, eostools::move(), MillePedeFileConverter_cfg::out, and hcalRecHitTable_cff::time.
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)
85 out->push_back(cluster);
87 outOOT->push_back(cluster);
std::vector< CutInfo > cutInfo_
edm::EDGetTokenT< reco::PFClusterCollection > clusters_
◆ clusters_
◆ cutInfo_
std::vector<CutInfo> PFClusterTimeSelector::cutInfo_ |
|
protected |