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.15 by lantonel, Fri Mar 15 13:08:45 2013 UTC vs.
Revision 1.22 by jbrinson, Thu Apr 11 15:52:25 2013 UTC

# Line 45 | Line 45
45  
46   #include "OSUT3Analysis/AnaTools/interface/CutFlow.h"
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 68 | 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 BNtrack* object2, string variable, string function = "");
74 +      double valueLookup (const BNmuon* object1, const BNtrack* object2, string variable, string function = "");
75 +      double valueLookup (const BNmuon* object1, const BNtau* object2, string variable, string function = "");
76 +      double valueLookup (const BNtau* object1, const BNtau* object2, string variable, string function = "");
77 +      double valueLookup (const BNtau* object1, const BNtrack* object2, string variable, string function);
78        double valueLookup (const BNevent* object, string variable, string function = "");
79        double valueLookup (const BNtau* object, string variable, string function = "");
80        double valueLookup (const BNmet* object, string variable, string function = "");
81        double valueLookup (const BNtrack* object, string variable, string function = "");
82 +      double valueLookup (const BNtrack* object1, const BNevent* object2, string variable, string function = "");
83        double valueLookup (const BNgenjet* object, string variable, string function = "");
84        double valueLookup (const BNmcparticle* object, string variable, string function = "");
85        double valueLookup (const BNprimaryvertex* object, string variable, string function = "");
# Line 83 | Line 91 | class OSUAnalysis : public edm::EDAnalyz
91        double getTrkPtTrue (const BNtrack* track1, const BNmcparticleCollection* genPartColl);
92        double getTrkPtRes (const BNtrack* track1);
93        double getTrkIsIso (const BNtrack* track1);
94 +      double getTrkCaloTotRhoCorr(const BNtrack* track);
95        void WriteDeadEcal ();
96        int getTrkIsMatchedDeadEcal (const BNtrack* track1);
97  
# Line 100 | Line 109 | class OSUAnalysis : public edm::EDAnalyz
109        //inner vector corresponds to each object in input collection
110        //bool         tells if object passes or fails cuts
111        typedef map<string, vector < vector<bool> > > flagMap;
112 <      
112 >
113        //counterMap:
114        //string holds input collection type
115        //vector corresponds to each cut
# Line 117 | Line 126 | class OSUAnalysis : public edm::EDAnalyz
126        edm::InputTag tracks_;
127        edm::InputTag genjets_;
128        edm::InputTag mcparticles_;
129 +      edm::InputTag stops_;
130        edm::InputTag primaryvertexs_;
131        edm::InputTag bxlumis_;
132        edm::InputTag photons_;
# Line 124 | Line 134 | class OSUAnalysis : public edm::EDAnalyz
134        edm::InputTag triggers_;
135        std::string puFile_;
136        std::string deadEcalFile_;
137 +      std::string muonSFFile_;
138        std::string dataPU_;
139 +      std::string electronSFID_;
140 +      std::string muonSF_;
141        std::string dataset_;
142        std::string datasetType_;
143        vector<edm::ParameterSet> channels_;
144        vector<edm::ParameterSet> histogramSets_;
145        bool plotAllObjectsInPassingEvents_;
146        bool doPileupReweighting_;
147 +      bool printEventInfo_;  
148 +      bool useTrackCaloRhoCorr_;  // to use the calo-based rho correction for the by-hand calculation of the track isolation energy
149 +      vector<double> stopCTau_;
150  
151        struct DeadEcal {
152 <        double etaEcal;
153 <        double phiEcal;
152 >        double etaEcal;
153 >        double phiEcal;
154        };
155 <      
155 >
156        std::vector<DeadEcal> DeadEcalVec;
157  
158  
# Line 155 | Line 171 | class OSUAnalysis : public edm::EDAnalyz
171        edm::Handle<BNbxlumiCollection> bxlumis;
172        edm::Handle<BNphotonCollection> photons;
173        edm::Handle<BNsuperclusterCollection> superclusters;
174 +      edm::Handle<double> rhokt6CaloJetsHandle_;  
175  
176 <      const BNprimaryvertex *chosenPrimaryVertex;
160 <
176 >      flagMap cumulativeFlags;
177  
178        vector<map<string, TH1D*> > oneDHists_;
179        vector<map<string, TH2D*> > twoDHists_;
# Line 168 | Line 184 | class OSUAnalysis : public edm::EDAnalyz
184        vector<CutFlow *> cutFlows_;
185  
186        typedef struct {
187 <        string name;
188 <        string title;
189 <        vector<double> bins;
190 <        string inputCollection;
191 <        vector<string> inputVariables;
187 >        string name;
188 >        string title;
189 >        vector<double> bins;
190 >        string inputCollection;
191 >        vector<string> inputVariables;
192        } histogram;
193  
194        struct cut {
195 <        string inputCollection;
196 <        vector<string> functions;
197 <        vector<string> variables;
198 <        vector<string> comparativeOperators;// >, <, =, etc.
199 <        vector<double> cutValues;
200 <        vector<string> logicalOperators;//and, or
201 <        int numSubcuts;
202 <        int    numberRequired;
203 <        string eventComparativeOperator;
204 <        string name;
195 >        string inputCollection;
196 >        vector<string> functions;
197 >        vector<string> variables;
198 >        vector<string> comparativeOperators;// >, <, =, etc.
199 >        vector<double> cutValues;
200 >        vector<string> logicalOperators;//and, or
201 >        int numSubcuts;
202 >        int    numberRequired;
203 >        string eventComparativeOperator;
204 >        string name;
205        };
206  
207        struct channel {
208 <        string name;
209 <        vector<string> triggers;
210 <        vector<cut> cuts;
208 >        string name;
209 >        vector<string> triggers;
210 >        vector<cut> cuts;
211        };
212  
213        vector<string>  objectsToGet;
# Line 201 | Line 217 | class OSUAnalysis : public edm::EDAnalyz
217        vector<histogram> histograms;
218  
219        PUWeight *puWeight_;
220 +      MuonSFWeight *muonSFWeight_;
221 +      ElectronSFWeight *electronSFWeight_;
222 + #ifdef DISPLACED_SUSY
223 +      CTauWeight *cTauWeight_;
224 + #endif
225 +      double cTauScaleFactor_;
226  
227        template <class InputCollection> void setObjectFlags(cut &, uint, flagMap &, flagMap &, InputCollection, string);
228        template <class InputCollection1, class InputCollection2> void setObjectFlags(cut &, uint, flagMap &, flagMap &, InputCollection1, InputCollection2, vector<bool>, vector<bool>, string);
# Line 214 | Line 236 | class OSUAnalysis : public edm::EDAnalyz
236        int getPdgIdBinValue(int);
237        int findTauMotherIndex(const BNmcparticle*);
238  
239 +      template <class InputObject> double getGenDeltaRLowest(InputObject);
240 +
241 +
242 +      const BNprimaryvertex *chosenVertex ();
243 +      const BNmet *chosenMET ();
244 +      const BNelectron *chosenElectron ();
245 +      const BNmuon *chosenMuon ();
246  
247    };
248  

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines