ViewVC Help
View File | Revision Log | Show Annotations | Root Listing
root/cvsroot/UserCode/OSUT3Analysis/AnaTools/plugins/OSUAnalysis.h
(Generate patch)

Comparing UserCode/OSUT3Analysis/AnaTools/plugins/OSUAnalysis.h (file contents):
Revision 1.18 by wulsin, Tue Mar 26 13:17:54 2013 UTC vs.
Revision 1.25 by lantonel, Thu Apr 25 08:32:26 2013 UTC

# Line 47 | Line 47
47   #include "OSUT3Analysis/AnaTools/interface/PUWeight.h"
48   #include "OSUT3Analysis/AnaTools/interface/SFWeight.h"
49  
50 <
51 <
50 > #ifdef DISPLACED_SUSY
51 > #include "DisplacedSUSY/Configuration/interface/CTauWeight.h"
52 > #endif
53  
54   using namespace std;
55  
# Line 69 | Line 70 | class OSUAnalysis : public edm::EDAnalyz
70        double valueLookup (const BNelectron* object, string variable, string function = "");
71        double valueLookup (const BNelectron* object1, const BNelectron* object2, string variable, string function = "");
72        double valueLookup (const BNelectron* object1, const BNmuon* object2, string variable, string function = "");
73 +      double valueLookup (const BNelectron* object1, const BNjet* object2, string variable, string function = "");
74 +      double valueLookup (const BNelectron* object1, const BNtrack* object2, string variable, string function = "");
75 +      double valueLookup (const BNmuon* object1, const BNjet* object2, string variable, string function = "");
76 +      double valueLookup (const BNmuon* object1, const BNtrack* object2, string variable, string function = "");
77 +      double valueLookup (const BNmuon* object1, const BNtau* object2, string variable, string function = "");
78 +      double valueLookup (const BNtau* object1, const BNtau* object2, string variable, string function = "");
79 +      double valueLookup (const BNtau* object1, const BNtrack* object2, string variable, string function);
80        double valueLookup (const BNevent* object, string variable, string function = "");
81        double valueLookup (const BNtau* object, string variable, string function = "");
82        double valueLookup (const BNmet* object, string variable, string function = "");
83        double valueLookup (const BNtrack* object, string variable, string function = "");
84 +      double valueLookup (const BNtrack* object1, const BNevent* object2, string variable, string function = "");
85        double valueLookup (const BNgenjet* object, string variable, string function = "");
86        double valueLookup (const BNmcparticle* object, string variable, string function = "");
87        double valueLookup (const BNprimaryvertex* object, string variable, string function = "");
# Line 80 | Line 89 | class OSUAnalysis : public edm::EDAnalyz
89        double valueLookup (const BNphoton* object, string variable, string function = "");
90        double valueLookup (const BNsupercluster* object, string variable, string function = "");
91  
92 + #ifdef DISPLACED_SUSY
93 +      double valueLookup (const BNstop* object, string variable, string function = "");
94 + #endif
95        int getTrkIsIso (const BNtrack* track1, const BNtrackCollection* trackColl);
96        double getTrkPtTrue (const BNtrack* track1, const BNmcparticleCollection* genPartColl);
97        double getTrkPtRes (const BNtrack* track1);
98        double getTrkIsIso (const BNtrack* track1);
99 +      double getTrkCaloTotRhoCorr(const BNtrack* track);
100        void WriteDeadEcal ();
101        int getTrkIsMatchedDeadEcal (const BNtrack* track1);
102  
# Line 91 | Line 104 | class OSUAnalysis : public edm::EDAnalyz
104        //BNtrigobj
105  
106        vector<string> splitString (string);
107 <
107 >      void getTwoObjs(string tempInputCollection, string& obj1, string& obj2);
108 >      string getObjToGet(string obj);  
109  
110      private:
111  
# Line 118 | Line 132 | class OSUAnalysis : public edm::EDAnalyz
132        edm::InputTag tracks_;
133        edm::InputTag genjets_;
134        edm::InputTag mcparticles_;
135 +      edm::InputTag stops_;
136        edm::InputTag primaryvertexs_;
137        edm::InputTag bxlumis_;
138        edm::InputTag photons_;
# Line 136 | Line 151 | class OSUAnalysis : public edm::EDAnalyz
151        bool plotAllObjectsInPassingEvents_;
152        bool doPileupReweighting_;
153        bool printEventInfo_;  
154 +      bool useTrackCaloRhoCorr_;  // to use the calo-based rho correction for the by-hand calculation of the track isolation energy
155 +      vector<double> stopCTau_;
156  
157        struct DeadEcal {
158          double etaEcal;
# Line 160 | Line 177 | class OSUAnalysis : public edm::EDAnalyz
177        edm::Handle<BNbxlumiCollection> bxlumis;
178        edm::Handle<BNphotonCollection> photons;
179        edm::Handle<BNsuperclusterCollection> superclusters;
180 + #ifdef DISPLACED_SUSY
181 +      edm::Handle<BNstopCollection> stops;
182 + #endif
183 +      edm::Handle<double> rhokt6CaloJetsHandle_;  
184  
185        flagMap cumulativeFlags;
186  
# Line 207 | Line 228 | class OSUAnalysis : public edm::EDAnalyz
228        PUWeight *puWeight_;
229        MuonSFWeight *muonSFWeight_;
230        ElectronSFWeight *electronSFWeight_;
231 + #ifdef DISPLACED_SUSY
232 +      CTauWeight *cTauWeight_;
233 + #endif
234 +      double cTauScaleFactor_;
235  
236        template <class InputCollection> void setObjectFlags(cut &, uint, flagMap &, flagMap &, InputCollection, string);
237        template <class InputCollection1, class InputCollection2> void setObjectFlags(cut &, uint, flagMap &, flagMap &, InputCollection1, InputCollection2, vector<bool>, vector<bool>, string);
# Line 215 | Line 240 | class OSUAnalysis : public edm::EDAnalyz
240        template <class InputCollection1, class InputCollection2> void fill1DHistogram(TH1*, histogram, InputCollection1, InputCollection2, vector<bool>, vector<bool>, vector<bool>, double);
241        template <class InputCollection> void fill2DHistogram(TH2*, histogram, InputCollection, vector<bool>, double);
242        template <class InputCollection1, class InputCollection2> void fill2DHistogram(TH2*, histogram, InputCollection1, InputCollection2, vector<bool>, vector<bool>, vector<bool>, double);
243 +      bool getPreviousCumulativeFlags(uint currentCutIndex, flagMap &individualFlags, string obj1Type, uint object1);  
244  
245        template <class InputObject> int getGenMatchedParticleIndex(InputObject);
246        int getPdgIdBinValue(int);

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines