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

Comparing UserCode/MitPhysics/Utils/interface/MuonTools.h (file contents):
Revision 1.8 by loizides, Mon May 11 08:01:31 2009 UTC vs.
Revision 1.21 by sixie, Mon Jan 23 20:05:20 2012 UTC

# Line 19 | Line 19
19   #define MITPHYSICS_UTILS_MUONTOOLS_H
20  
21   #include "MitAna/DataTree/interface/Muon.h"
22 < #include "MitAna/DataTree/interface/Collections.h"
22 > #include "MitAna/DataTree/interface/VertexCol.h"
23 > #include "MitAna/DataTree/interface/BeamSpotCol.h"
24   #include "MitCommon/MathTools/interface/MathUtils.h"
25   #include "TH2D.h"
26  
# Line 28 | Line 29 | namespace mithep {
29      public:
30        MuonTools(const char *mutemp="$CMSSW_BASE/src/MitPhysics/data/MuonCaloTemplate.root",
31                  const char *pitemp="$CMSSW_BASE/src/MitPhysics/data/PionCaloTemplate.root");
32 <      ~MuonTools();
32 >      virtual ~MuonTools();
33  
34        enum ESelType {
35          kAllArbitrated,          //All arbitration (DT/CSC/RPC Hits) put on at least one
# Line 44 | Line 45 | namespace mithep {
45                                   //  ===> 1.2 Segment compatability + 0.8 calo compatability > 1.2
46        };
47  
48 <      Bool_t      Init(const char *mutemp, const char *pitemp);
49 <      Bool_t      IsGood(const mithep::Muon *iMuon, ESelType iSel) const;
50 <      Double_t    GetCaloCompatability(const mithep::Muon *iMuon,
51 <                                       Bool_t iEMSpecial, Bool_t iCorrectedHCAL) const;
52 <      Double_t    GetSegmentCompatability(const mithep::Muon *iMuon)             const;
48 >      enum EMuonEffectiveAreaType {
49 >        kMuChargedIso03,
50 >        kMuNeutralIso03,
51 >        kMuChargedIso04,
52 >        kMuNeutralIso04,
53 >        kMuHadEnergy,
54 >        kMuHoEnergy,
55 >        kMuEmEnergy,
56 >        kMuHadS9Energy,
57 >        kMuHoS9Energy,
58 >        kMuEmS9Energy,
59 >        kMuTrkIso03,
60 >        kMuEMIso03,
61 >        kMuHadIso03,
62 >        kMuTrkIso05,
63 >        kMuEMIso05,
64 >        kMuHadIso05
65 >      };
66 >
67 >      Bool_t          Init(const char *mutemp, const char *pitemp);
68 >      Bool_t          IsGood(const mithep::Muon *iMuon, ESelType iSel) const;
69 >      Double_t        GetCaloCompatability(const mithep::Muon *iMuon,
70 >                                         Bool_t iEMSpecial, Bool_t iCorrectedHCAL) const;
71 >      Double_t        GetSegmentCompatability(const mithep::Muon *iMuon)             const;
72 >      static Bool_t   PassD0Cut(const Muon *mu, const VertexCol *vertices, Double_t fD0Cut, Int_t nVertex = 0);
73 >      static Bool_t   PassD0Cut(const Muon *mu, const BeamSpotCol *beamspots, Double_t fD0Cut);
74 >      static Bool_t   PassDZCut(const Muon *mu, const VertexCol *vertices, Double_t fDZCut, Int_t nVertex = 0);
75 >      static Bool_t   PassSoftMuonCut(const Muon *mu, const VertexCol *vertices, const Double_t fDZCut = 0.2,
76 >                                    const Bool_t applyIso = kTRUE);
77 >      static Double_t MuonEffectiveArea(EMuonEffectiveAreaType type, Double_t Eta);
78  
79      protected:
80        void        DeleteHistos();
# Line 77 | Line 103 | namespace mithep {
103        TH2D       *fpion_had_etaEpl;     //!Plus Endcap Hadronic Calo Deposit Template for Pions
104  
105        TH2D       *LoadHisto(const char *fname, TFile *file)                      const;
106 +
107 +    ClassDef(MuonTools, 0) // Muon tools
108    };
109   }
110  
# Line 106 | Line 134 | inline Bool_t mithep::MuonTools::Overflo
134  
135    if (iHist ->GetXaxis()->FindBin(lVal0) == 0                  ||
136        iHist ->GetXaxis()->FindBin(lVal0) >  iHist->GetNbinsX() ||
137 <      iHist ->GetYaxis()->FindBin(lVal0) == 0                  ||
138 <      iHist ->GetYaxis()->FindBin(lVal0) >  iHist->GetNbinsY()) {
137 >      iHist ->GetYaxis()->FindBin(lVal1) == 0                  ||
138 >      iHist ->GetYaxis()->FindBin(lVal1) >  iHist->GetNbinsY()) {
139      return kTRUE;
140    }
141    return kFALSE;

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines