File indexing completed on 2024-09-07 04:35:04
0001 #ifndef CALIBELECTRON_H
0002 #define CALIBELECTRON_H
0003
0004 #include <TROOT.h>
0005 #include <TLorentzVector.h>
0006
0007 #include <vector>
0008 #include "DataFormats/EcalRecHit/interface/EcalRecHitCollections.h"
0009 #include "DataFormats/EgammaCandidates/interface/GsfElectron.h"
0010 #include "DataFormats/EgammaCandidates/interface/GsfElectronFwd.h"
0011
0012 namespace calib {
0013 class CalibElectron {
0014 public:
0015 CalibElectron();
0016 CalibElectron(const reco::GsfElectron* ele,
0017 const EcalRecHitCollection* theHits,
0018 const EcalRecHitCollection* theEEHits)
0019 : theElectron_(ele), theHits_(theHits), theEEHits_(theEEHits) {}
0020
0021 ~CalibElectron() {}
0022
0023 std::vector<std::pair<int, float> > getCalibModulesWeights(TString calibtype);
0024 const reco::GsfElectron* getRecoElectron() { return theElectron_; }
0025 const EcalRecHitCollection* getRecHits() { return theHits_; }
0026 const EcalRecHitCollection* getEERecHits() { return theEEHits_; }
0027
0028 private:
0029 const reco::GsfElectron* theElectron_;
0030
0031 const EcalRecHitCollection* theHits_;
0032 const EcalRecHitCollection* theEEHits_;
0033 };
0034 }
0035 #endif