ViewVC Help
View File | Revision Log | Show Annotations | Root Listing
root/cvsroot/UserCode/MitPhysics/Mods/interface/PhotonTreeWriter.h
(Generate patch)

Comparing UserCode/MitPhysics/Mods/interface/PhotonTreeWriter.h (file contents):
Revision 1.38 by veverka, Sat Sep 14 00:19:00 2013 UTC vs.
Revision 1.39 by veverka, Mon Oct 7 12:47:49 2013 UTC

# Line 91 | Line 91 | namespace mithep
91    class PhotonTreeWriterPhoton
92    {
93      public:  
94 <    void SetVars(const Photon *p, const DecayParticle *c, const Electron *ele, const SuperCluster *pfsc, const MCParticle *m, PhotonFix &phfixph, PhotonFix &phfixele, const TrackCol* trackCol,const VertexCol* vtxCol, const PFCandidateCol* candCol, Double_t _tRho, Bool_t fillclusterarrays, const ElectronCol* els, const DecayParticleCol *convs, const BaseVertex *bs, Bool_t applyElectronVeto=kTRUE, const Vertex* realVtx = NULL);
94 >    void SetVars(const Photon *p,
95 >                 const DecayParticle *c,
96 >                 const Electron *ele,
97 >                 const SuperCluster *pfsc,
98 >                 const MCParticle *m,
99 >                 PhotonFix &phfixph,
100 >                 PhotonFix &phfixele,
101 >                 const TrackCol* trackCol,
102 >                 const VertexCol* vtxCol,
103 >                 const PFCandidateCol* candCol,
104 >                 Double_t _tRho,
105 >                 Bool_t fillclusterarrays,
106 >                 const PhotonCol* ps,
107 >                 const SuperClusterCol* scs,
108 >                 const ElectronCol* els,
109 >                 const DecayParticleCol *convs,
110 >                 const BaseVertex *bs,
111 >                 Bool_t applyElectronVeto=kTRUE,
112 >                 const Vertex* realVtx = NULL);
113        Float_t Ecor()    const { return ecor;    };
114        Float_t Ecorerr() const { return ecorerr; };
115        Float_t Ecorele()    const { return ecorele;    };
# Line 100 | Line 118 | namespace mithep
118        
119      private:  
120        UChar_t hasphoton;
121 +      UInt_t  index;
122        Float_t e;
123        Float_t pt;
124        Float_t eta;
# Line 107 | Line 126 | namespace mithep
126        Float_t r9;
127        Float_t e3x3;
128        Float_t e5x5;
129 +      UInt_t  scindex;
130        Float_t sce;
131        Float_t scrawe;
132        Float_t scpse;
# Line 712 | Line 732 | namespace mithep
732      void                SetPUInfoName(const char *n)      { fPileUpName = n;             }
733      void                SetBeamspotName(const char *n)    { fBeamspotName = n;           }
734      void                SetPFCandName(const char *n)      { fPFCandName = n;             }
735 <    void                SetSuperClusterName(const char *n) { fSuperClusterName = n;      }
735 >    void                SetPFSuperClusterName(const char *n) { fPFSuperClusterName = n;      }
736      void                SetPFJetName(const char *n)       { fPFJetName = n;              }
737      void                SetGenJetName(const char *n)      { fGenJetName = n;             }
738      void                SetuncorrPFJetName(const char *n) { funcorrPFJetName = n;        }
# Line 765 | Line 785 | namespace mithep
785      
786      void                SetBeamspotWidth(Double_t x)            { fBeamspotWidth = x; }
787  
788 <      void                SetElectronMVAWeightsSubdet0Pt10To20(TString s)  
789 <                          { fElectronMVAWeights_Subdet0Pt10To20  = s; }
790 <      void                SetElectronMVAWeightsSubdet1Pt10To20(TString s)  
791 <                          { fElectronMVAWeights_Subdet1Pt10To20  = s; }
792 <      void                SetElectronMVAWeightsSubdet2Pt10To20(TString s)  
793 <                          { fElectronMVAWeights_Subdet2Pt10To20  = s; }
794 <      void                SetElectronMVAWeightsSubdet0Pt20ToInf(TString s)
795 <                          { fElectronMVAWeights_Subdet0Pt20ToInf = s; }
796 <      void                SetElectronMVAWeightsSubdet1Pt20ToInf(TString s)
797 <                          { fElectronMVAWeights_Subdet1Pt20ToInf = s; }
798 <      void                SetElectronMVAWeightsSubdet2Pt20ToInf(TString s)
799 <                          { fElectronMVAWeights_Subdet2Pt20ToInf = s; }
788 >    void                SetElectronMVAWeightsSubdet0Pt10To20(TString s)
789 >                        { fElectronMVAWeights_Subdet0Pt10To20  = s; }
790 >    void                SetElectronMVAWeightsSubdet1Pt10To20(TString s)
791 >                        { fElectronMVAWeights_Subdet1Pt10To20  = s; }
792 >    void                SetElectronMVAWeightsSubdet2Pt10To20(TString s)
793 >                        { fElectronMVAWeights_Subdet2Pt10To20  = s; }
794 >    void                SetElectronMVAWeightsSubdet0Pt20ToInf(TString s)
795 >                        { fElectronMVAWeights_Subdet0Pt20ToInf = s; }
796 >    void                SetElectronMVAWeightsSubdet1Pt20ToInf(TString s)
797 >                        { fElectronMVAWeights_Subdet1Pt20ToInf = s; }
798 >    void                SetElectronMVAWeightsSubdet2Pt20ToInf(TString s)
799 >                        { fElectronMVAWeights_Subdet2Pt20ToInf = s; }
800 >
801 >    void                SetDoSynching(bool b) {fDoSynching = b;}
802 >
803 >    template<typename Element, typename Collection>
804 >    static UInt_t       IndexOfElementInCollection(
805 >                          const Element *element,
806 >                          const Collection *collection
807 >                          );
808  
781      void                SetDoSynching(bool b) {fDoSynching = b;}
782
783
784    
809    protected:
810      void                Process();
811      void                SlaveBegin();
# Line 842 | Line 866 | namespace mithep
866      TString             fConversionName;
867      TString             fPFConversionName;
868      TString             fTrackBranchName;
869 <    TString             fPileUpDenName;    
869 >    TString             fPileUpDenName;
870      TString             fPVName;
871      TString             fBeamspotName;
872      TString             fPFCandName;
# Line 851 | Line 875 | namespace mithep
875  
876      TString             fMCParticleName;
877      TString             fMCEventInfoName;
878 <    
878 >
879      TString             fPileUpName;
880 <    TString             fSuperClusterName;
880 >    TString             fPFSuperClusterName;
881      TString             fPFMetName;
882      TString             fPFJetName;
883  
860
884      TString             funcorrPFJetName;
885      TString             fGenJetName;   //added to do pfmet correction 05/01/2012
886  
864
887      TString             fLeptonTagElectronsName;
888      TString             fLeptonTagMuonsName;
889      TString             fLeptonTagSoftElectronsName;
# Line 893 | Line 915 | namespace mithep
915      const MCParticleCol           *fMCParticles;
916      const MCEventInfo             *fMCEventInfo;
917      const PileupInfoCol           *fPileUp;    
918 <    const SuperClusterCol         *fSuperClusters;  
918 >    const SuperClusterCol         *fPFSuperClusters;  
919      const PFMetCol                *fPFMet;
920      const JetCol                  *fPFJets;
921      const GenJetCol               *fGenJets;

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines