CMS 3D CMS Logo

PhotonID.cc

Go to the documentation of this file.
00001 #include "DataFormats/EgammaCandidates/interface/PhotonID.h"
00002 
00003 using namespace reco;
00004 
00005 
00006 PhotonID::PhotonID(){
00007   isLooseEM_=false;
00008   isLoosePhoton_=false;
00009   isTightPhoton_=false;
00010   isolationEcalRecHit_=999;
00011   isolationHcalRecHit_=999;
00012   isolationSolidTrkCone_=999;
00013   isolationHollowTrkCone_=999;
00014   nTrkSolidCone_=999;
00015   nTrkHollowTrkCone_=999;
00016   r9_ = 0;
00017   isEBPho_=false;
00018   isEEPho_=false;
00019   isEBGap_=false;
00020   isEEGap_=false;
00021   isEBEEGap_=false;
00022   isAlsoElectron_=false;
00023 }
00024 
00025 PhotonID::PhotonID(bool isLooseEM,
00026                    bool isLoosePho,
00027                    bool isTightPho, 
00028                    float TrkCone,
00029                    float HollowCone, 
00030                    int nTrkCone, 
00031                    int nHollow,
00032                    float EcalRecHitIso,
00033                    float HcalRecHitIso,
00034                    float r9,
00035                    bool EBPho, 
00036                    bool EEPho, 
00037                    bool EBGap, 
00038                    bool EEGap, 
00039                    bool EBEEGap,
00040                    bool isAlsoElectron){
00041 
00042   isLooseEM_ = isLooseEM;
00043   isLoosePhoton_ = isLoosePho;
00044   isTightPhoton_ = isTightPho;
00045   isolationEcalRecHit_ = EcalRecHitIso;
00046   isolationHcalRecHit_ = HcalRecHitIso;
00047   isolationSolidTrkCone_=TrkCone;
00048   isolationHollowTrkCone_=HollowCone;
00049   nTrkSolidCone_=nTrkCone;
00050   nTrkHollowTrkCone_=nHollow;
00051   r9_ = r9;
00052   isEBPho_=EBPho;
00053   isEEPho_=EEPho;
00054   isEBGap_=EBGap;
00055   isEEGap_=EEGap;
00056   isEBEEGap_=EBEEGap;
00057   isAlsoElectron_ = isAlsoElectron;
00058 }
00059 
00060 
00061 void PhotonID::setFiducialFlags(bool EBPho, 
00062                                 bool EEPho, 
00063                                 bool EBGap, 
00064                                 bool EEGap, 
00065                                 bool EBEEGap){
00066   isEBPho_=EBPho;
00067   isEEPho_=EEPho;
00068   isEBGap_=EBGap;
00069   isEEGap_=EEGap;
00070   isEBEEGap_=EBEEGap;
00071 }
00072 
00073 
00074 void PhotonID::setDecision(bool decisionLooseEM, bool decisionLoosePho,
00075                            bool decisionTightPho){
00076   isLooseEM_ = decisionLooseEM;
00077   isLoosePhoton_ = decisionLoosePho;
00078   isTightPhoton_ = decisionTightPho;
00079 
00080 }
00081 
00082 

Generated on Tue Jun 9 17:30:43 2009 for CMSSW by  doxygen 1.5.4