CMS 3D CMS Logo

SingleEleCalibSelector.h
Go to the documentation of this file.
1 #ifndef SingleEleCalibSelector_h
2 #define SingleEleCalibSelector_h
3 
13 
14 #include <functional>
15 #include <vector>
16 #include <map>
17 
19 public:
22  typedef std::vector<const reco::GsfElectron*> container;
23  typedef container::const_iterator const_iterator;
24 
29 
30  const_iterator begin() const { return selected_.begin(); }
31  const_iterator end() const { return selected_.end(); }
32 
34 
35 private:
36  container selected_;
37 
39 
40  DetId findMaxHit(const std::vector<std::pair<DetId, float> >& v1,
41  const EBRecHitCollection* EBhits,
42  const EERecHitCollection* EEhits);
43 
44  double EnergyNxN(const std::vector<DetId>& vNxN, const EBRecHitCollection* EBhits, const EERecHitCollection* EEhits);
45 
50 };
51 
52 #endif
const_iterator end() const
reco::GsfElectronCollection collection
edm::ESHandle< CaloTopology > theCaloTopology
the selected collection
DetId findMaxHit(const std::vector< std::pair< DetId, float > > &v1, const EBRecHitCollection *EBhits, const EERecHitCollection *EEhits)
const_iterator begin() const
void select(edm::Handle< collection >, const edm::Event &, const edm::EventSetup &)
std::vector< GsfElectron > GsfElectronCollection
collection of GsfElectron objects
std::vector< const reco::GsfElectron * > container
container::const_iterator const_iterator
double EnergyNxN(const std::vector< DetId > &vNxN, const EBRecHitCollection *EBhits, const EERecHitCollection *EEhits)
Definition: DetId.h:17
SingleEleCalibSelector(const edm::ParameterSet &iConfig)
ctor
reco::GsfElectronRef electron