15 energyRanges_(iConfig.getParameter<std::vector<double> >(
"energyRanges")),
16 timingCutsLowBarrel_(iConfig.getParameter<std::vector<double> >(
"timingCutsLowBarrel")),
17 timingCutsHighBarrel_(iConfig.getParameter<std::vector<double> >(
"timingCutsHighBarrel")),
18 timingCutsLowEndcap_(iConfig.getParameter<std::vector<double> >(
"timingCutsLowEndcap")),
19 timingCutsHighEndcap_(iConfig.getParameter<std::vector<double> >(
"timingCutsHighEndcap"))
21 produces<reco::PFClusterCollection>();
32 const std::vector<double>* timingCutsLow =
NULL;
33 const std::vector<double>* timingCutsHigh =
NULL;
34 for(
const auto& cluster : *clusters ) {
35 const double energy = cluster.energy();
36 const double time = cluster.time();
38 switch(cluster.layer()) {
60 if( time > (*timingCutsLow)[
idx] && time < (*timingCutsHigh)[
idx] ) {
61 out->push_back(cluster);
bool getByToken(EDGetToken token, Handle< PROD > &result) const
std::vector< double > timingCutsHighBarrel_
std::vector< double > timingCutsLowBarrel_
void produce(edm::Event &iEvent, const edm::EventSetup &iSetup)
edm::EDGetTokenT< reco::PFClusterCollection > clusters_
OrphanHandle< PROD > put(std::auto_ptr< PROD > product)
Put a new product.
std::vector< double > timingCutsHighEndcap_
tuple idx
DEBUGGING if hasattr(process,"trackMonIterativeTracking2012"): print "trackMonIterativeTracking2012 D...
std::vector< double > energyRanges_
std::vector< PFCluster > PFClusterCollection
collection of PFCluster objects
std::vector< double > timingCutsLowEndcap_
virtual void beginRun(const edm::Run &run, const edm::EventSetup &es)
PFClusterSelector(const edm::ParameterSet &)