File indexing completed on 2024-04-06 12:11:16
0001 #ifndef FastSimDataFilter_h
0002 #define FastSimDataFilter_h
0003
0004 #include "FWCore/Framework/interface/stream/EDFilter.h"
0005 #include "DataFormats/Math/interface/Vector3D.h"
0006 #include "DataFormats/CaloTowers/interface/CaloTowerCollection.h"
0007
0008 #include <vector>
0009 #include <utility>
0010 #include <ostream>
0011 #include <string>
0012 #include <algorithm>
0013 #include <cmath>
0014
0015 namespace edm {
0016 class Event;
0017 class EventSetup;
0018 class ParameterSet;
0019 }
0020
0021 namespace cms {
0022
0023 class FastSimDataFilter : public edm::stream::EDFilter<> {
0024 public:
0025 FastSimDataFilter(const edm::ParameterSet& pset);
0026 ~FastSimDataFilter() override = default;
0027
0028 bool filter(edm::Event&, const edm::EventSetup&) override;
0029 virtual void beginJob();
0030 virtual void endJob();
0031
0032 private:
0033 typedef math::RhoEtaPhiVector Vector;
0034 const edm::EDGetTokenT<CaloTowerCollection> tokTowers_;
0035
0036 const double towercut;
0037 int ntotal, npassed;
0038 };
0039 }
0040 #endif