CMS 3D CMS Logo

/afs/cern.ch/work/a/aaltunda/public/www/CMSSW_5_3_14/src/EgammaAnalysis/ElectronTools/interface/SimpleElectron.h

Go to the documentation of this file.
00001 #ifndef SimpleElectron_H
00002 #define SimpleElectron_H
00003 
00004 class SimpleElectron
00005 {
00006         public:
00007             SimpleElectron(){}
00008             SimpleElectron( double run, 
00009                         double eClass, 
00010                         double r9, 
00011                         double scEnergy, 
00012                         double scEnergyError, 
00013                         double trackMomentum, 
00014                         double trackMomentumError, 
00015                         double regEnergy, 
00016                         double regEnergyError, 
00017                         double combinedMomentum, 
00018                         double combinedMomentumError, 
00019                         double eta, 
00020                         bool isEB, 
00021                         bool isMC, 
00022                         bool isEcalDriven, 
00023                         bool isTrackerDriven
00024                       ) : 
00025                         run_(run),
00026                         eClass_(eClass), 
00027                         r9_(r9),
00028                         scEnergy_(scEnergy), 
00029                         scEnergyError_(scEnergyError), 
00030                         trackMomentum_(trackMomentum), 
00031                         trackMomentumError_(trackMomentumError), 
00032                         regEnergy_(regEnergy), 
00033                         regEnergyError_(regEnergyError), 
00034                         eta_(eta), 
00035                         isEB_(isEB), 
00036                         isMC_(isMC), 
00037                         isEcalDriven_(isEcalDriven), 
00038                         isTrackerDriven_(isTrackerDriven), 
00039                         combinedMomentum_(combinedMomentum), 
00040                         combinedMomentumError_(combinedMomentumError) 
00041         {}
00042             ~SimpleElectron(){} 
00043 
00044         //accessors
00045         double getNewEnergy(){return newEnergy_;}
00046         double getNewEnergyError(){return newEnergyError_;}
00047         double getCombinedMomentum(){return combinedMomentum_;}
00048         double getCombinedMomentumError(){return combinedMomentumError_;}
00049         double getScale(){return scale_;}
00050         double getSmearing(){return smearing_;}
00051         double getSCEnergy(){return scEnergy_;}
00052         double getSCEnergyError(){return scEnergyError_;}
00053         double getRegEnergy(){return regEnergy_;}
00054         double getRegEnergyError(){return regEnergyError_;}
00055         double getTrackerMomentum(){return trackMomentum_;}
00056         double getTrackerMomentumError(){return trackMomentumError_;}
00057         double getEta(){return eta_;}
00058         float getR9(){return r9_;}
00059         int getElClass(){return eClass_;}
00060         int getRunNumber(){return run_;}
00061         bool isEB(){return isEB_;}
00062         bool isMC(){return isMC_;}
00063         bool isEcalDriven(){return isEcalDriven_;}
00064         bool isTrackerDriven(){return isTrackerDriven_;}
00065     
00066         //setters
00067         void setCombinedMomentum(double combinedMomentum){combinedMomentum_ = combinedMomentum;}
00068         void setCombinedMomentumError(double combinedMomentumError){combinedMomentumError_ = combinedMomentumError;}
00069         void setNewEnergy(double newEnergy){newEnergy_ = newEnergy;}
00070         void setNewEnergyError(double newEnergyError){newEnergyError_ = newEnergyError;}
00071 
00072         private:
00073         double run_; 
00074         double eClass_;
00075         double r9_;
00076         double scEnergy_; 
00077         double scEnergyError_; 
00078         double trackMomentum_; 
00079         double trackMomentumError_; 
00080         double regEnergy_; 
00081         double regEnergyError_;
00082         double eta_;
00083         bool isEB_;
00084         bool isMC_;
00085         bool isEcalDriven_;
00086         bool isTrackerDriven_;
00087         double newEnergy_; 
00088         double newEnergyError_; 
00089         double combinedMomentum_; 
00090         double combinedMomentumError_;
00091         double scale_; 
00092         double smearing_;
00093 };
00094 
00095 #endif