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

Comparing UserCode/MitPhysics/Mods/interface/MuonIDMod.h (file contents):
Revision 1.10 by loizides, Wed Dec 10 11:44:33 2008 UTC vs.
Revision 1.11 by loizides, Wed Dec 10 17:28:22 2008 UTC

# Line 25 | Line 25 | namespace mithep
25                  const char *title="Muon identification module");
26        ~MuonIDMod() {}
27  
28 <      const char    *GetMuonBranchName(const char *name) const { return fMuonBranchName;    }  
29 <      const char    *GetCleanMuonsName(const char *name) const { return fCleanMuonsName;    }  
30 <      const char    *GetMuonIDType(const char *type)     const { return fMuonIDType;       }
31 <      const char    *GetMuonIsoType(const char *type)    const { return fMuonIsoType;      }
32 <      const char    *GetMuonClassType(const char *type)  const { return fMuonClassType;     }
33 <      Double_t       GetTrackIsolationCut(Double_t cut)  const { return fTrackIsolationCut; }
34 <      Double_t       GetCaloIsolationCut(Double_t cut)   const { return fCaloIsolationCut;  }
35 <      Double_t       GetCombIsolationCut(Double_t cut)   const { return fCombIsolationCut;  }
36 <      Double_t       GetMuonPtMin(Double_t pt)           const { return fMuonPtMin;         }
37 <      void           SetMuonBranchName(const char *name)       { fMuonBranchName    = name; }  
38 <      void           SetCleanMuonsName(const char *name)       { fCleanMuonsName    = name; }  
39 <      void           SetMuonIDType(const char *type)           { fMuonIDType       = type; }
40 <      void           SetMuonIsoType(const char *type)          { fMuonIsoType      = type; }
41 <      void           SetMuonClassType(const char *type)        { fMuonClassType     = type; }
42 <      void           SetTrackIsolationCut(Double_t cut)        { fTrackIsolationCut = cut;  }
43 <      void           SetCaloIsolationCut(Double_t cut)         { fCaloIsolationCut  = cut;  }
44 <      void           SetCombIsolationCut(Double_t cut)         { fCombIsolationCut  = cut;  }
45 <      void           SetMuonPtMin(Double_t pt)                 { fMuonPtMin         = pt;  }
28 >      Double_t           GetCaloIsoCut()                const { return fCaloIsolationCut;   }
29 >      const char        *GetClassType()                 const { return fMuonClassType;      }
30 >      const char        *GetCleanName()                 const { return GetCleanMuonsName(); }  
31 >      const char        *GetCleanMuonsName()            const { return fCleanMuonsName;     }  
32 >      Double_t           GetCombIsoCut()                const { return fCombIsolationCut;   }
33 >      const char        *GetIDType()                    const { return fMuonIDType;         }
34 >      const char        *GetInputName()                 const { return fMuonBranchName;     }  
35 >      const char        *GetIsoType()                   const { return fMuonIsoType;        }
36 >      const char        *GetOutputName()                const { return GetCleanMuonsName(); }  
37 >      Double_t           GetPtMin(Double_t pt)          const { return fMuonPtMin;          }
38 >      Double_t           GetTrackIsoCut()               const { return fTrackIsolationCut;  }
39 >      void               SetCaloIsoCut(Double_t cut)          { fCaloIsolationCut  = cut;   }
40 >      void               SetCombIsoCut(Double_t cut)          { fCombIsolationCut  = cut;   }
41 >      void               SetClassType(const char *type)       { fMuonClassType     = type;  }
42 >      void               SetCleanName(const char *name)       { SetCleanMuonsName(name);    }  
43 >      void               SetCleanMuonsName(const char *name)  { fCleanMuonsName    = name;  }  
44 >      void               SetIDType(const char *type)          { fMuonIDType        = type;  }
45 >      void               SetInputName(const char *name)       { fMuonBranchName    = name;  }  
46 >      void               SetIsoType(const char *type)         { fMuonIsoType       = type;  }
47 >      void               SetOutputName(const char *name)      { SetCleanMuonsName(name);    }  
48 >      void               SetPtMin(Double_t pt)                { fMuonPtMin         = pt;    }
49 >      void               SetTrackIsoCut(Double_t cut)         { fTrackIsolationCut = cut;   }
50  
51        enum EMuIdType {
52          kIdUndef = 0,       //not defined
# Line 67 | Line 71 | namespace mithep
71        };
72  
73      protected:
74 <      void           Process();
75 <      void           SlaveBegin();
74 >      void               Process();
75 >      void               SlaveBegin();
76  
77 <      TString        fMuonBranchName;            //name of muon collection (in branch)
78 <      TString        fCleanMuonsName;            //name of exported "good muon" collection
79 <      TString        fMuonIDType;                //type of muon id scheme we impose
80 <      TString        fMuonIsoType;               //type of muon isolations scheme we impose
81 <      TString        fMuonClassType;             //type of muon class we impose
82 <      Double_t       fTrackIsolationCut;         //cut value for track isolation
83 <      Double_t       fCaloIsolationCut;          //cut value for calo isolation
84 <      Double_t       fCombIsolationCut;          //cut value for combined isolation
85 <      Double_t       fMuonPtMin;                 //min muon pt
86 <      const MuonCol *fMuons;                     //!muon branch
87 <      MuonTools     *fMuonTools;                 //!muon tool
88 <      EMuIdType      fMuIDType;                  //!muon id type (imposed)
89 <      EMuIsoType     fMuIsoType;                 //!muon iso type (imposed)
90 <      EMuClassType   fMuClassType;               //!muon class type (imposed)
77 >      TString            fMuonBranchName;      //name of muon collection (input)
78 >      TString            fCleanMuonsName;      //name of exported "good muon" collection
79 >      TString            fMuonIDType;          //type of muon id scheme we impose
80 >      TString            fMuonIsoType;         //type of muon isolations scheme we impose
81 >      TString            fMuonClassType;       //type of muon class we impose
82 >      Double_t           fTrackIsolationCut;   //cut value for track isolation
83 >      Double_t           fCaloIsolationCut;    //cut value for calo isolation
84 >      Double_t           fCombIsolationCut;    //cut value for combined isolation
85 >      Double_t           fMuonPtMin;           //min muon pt
86 >      const MuonCol     *fMuons;               //!muon collection
87 >      MuonTools         *fMuonTools;           //!muon tool
88 >      EMuIdType          fMuIDType;            //!muon id type (imposed)
89 >      EMuIsoType         fMuIsoType;           //!muon iso type (imposed)
90 >      EMuClassType       fMuClassType;         //!muon class type (imposed)
91      
92 <    ClassDef(MuonIDMod,1) // Muon identification module
92 >    ClassDef(MuonIDMod, 1) // Muon identification module
93    };
94   }
95   #endif

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines