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 
18 
20 
21  public:
22 
25  typedef std::vector<const reco::GsfElectron *> container;
26  typedef container::const_iterator const_iterator;
27 
29  SingleEleCalibSelector (const edm::ParameterSet& iConfig) ;
32 
33  const_iterator begin() const { return selected_.begin(); }
34  const_iterator end() const { return selected_.end(); }
35 
37 
38  private:
39 
40  container selected_ ;
41 
43 
44  DetId findMaxHit (const std::vector<std::pair<DetId,float> > & v1,
45  const EBRecHitCollection* EBhits,
46  const EERecHitCollection* EEhits);
47 
48  double EnergyNxN(const std::vector<DetId> & vNxN,
49  const EBRecHitCollection* EBhits,
50  const EERecHitCollection* EEhits);
51 
56 };
57 
58 #endif
59 
60 
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
container::const_iterator const_iterator
std::vector< const reco::GsfElectron * > container
double EnergyNxN(const std::vector< DetId > &vNxN, const EBRecHitCollection *EBhits, const EERecHitCollection *EEhits)
Definition: DetId.h:18
SingleEleCalibSelector(const edm::ParameterSet &iConfig)
ctor
reco::GsfElectronRef electron