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.17 by jbrinson, Wed Mar 20 12:56:37 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  
# Line 100 | Line 101 | class OSUAnalysis : public edm::EDAnalyz
101        //inner vector corresponds to each object in input collection
102        //bool         tells if object passes or fails cuts
103        typedef map<string, vector < vector<bool> > > flagMap;
104 <      
104 >
105        //counterMap:
106        //string holds input collection type
107        //vector corresponds to each cut
# Line 124 | Line 125 | class OSUAnalysis : public edm::EDAnalyz
125        edm::InputTag triggers_;
126        std::string puFile_;
127        std::string deadEcalFile_;
128 +      std::string muonSFFile_;
129        std::string dataPU_;
130 +      std::string electronSFID_;
131 +      std::string muonSF_;
132        std::string dataset_;
133        std::string datasetType_;
134        vector<edm::ParameterSet> channels_;
# Line 133 | Line 137 | class OSUAnalysis : public edm::EDAnalyz
137        bool doPileupReweighting_;
138  
139        struct DeadEcal {
140 <        double etaEcal;
141 <        double phiEcal;
140 >        double etaEcal;
141 >        double phiEcal;
142        };
143 <      
143 >
144        std::vector<DeadEcal> DeadEcalVec;
145  
146  
# Line 156 | Line 160 | class OSUAnalysis : public edm::EDAnalyz
160        edm::Handle<BNphotonCollection> photons;
161        edm::Handle<BNsuperclusterCollection> superclusters;
162  
163 <      const BNprimaryvertex *chosenPrimaryVertex;
160 <
163 >      flagMap cumulativeFlags;
164  
165        vector<map<string, TH1D*> > oneDHists_;
166        vector<map<string, TH2D*> > twoDHists_;
# Line 168 | Line 171 | class OSUAnalysis : public edm::EDAnalyz
171        vector<CutFlow *> cutFlows_;
172  
173        typedef struct {
174 <        string name;
175 <        string title;
176 <        vector<double> bins;
177 <        string inputCollection;
178 <        vector<string> inputVariables;
174 >        string name;
175 >        string title;
176 >        vector<double> bins;
177 >        string inputCollection;
178 >        vector<string> inputVariables;
179        } histogram;
180  
181        struct cut {
182 <        string inputCollection;
183 <        vector<string> functions;
184 <        vector<string> variables;
185 <        vector<string> comparativeOperators;// >, <, =, etc.
186 <        vector<double> cutValues;
187 <        vector<string> logicalOperators;//and, or
188 <        int numSubcuts;
189 <        int    numberRequired;
190 <        string eventComparativeOperator;
191 <        string name;
182 >        string inputCollection;
183 >        vector<string> functions;
184 >        vector<string> variables;
185 >        vector<string> comparativeOperators;// >, <, =, etc.
186 >        vector<double> cutValues;
187 >        vector<string> logicalOperators;//and, or
188 >        int numSubcuts;
189 >        int    numberRequired;
190 >        string eventComparativeOperator;
191 >        string name;
192        };
193  
194        struct channel {
195 <        string name;
196 <        vector<string> triggers;
197 <        vector<cut> cuts;
195 >        string name;
196 >        vector<string> triggers;
197 >        vector<cut> cuts;
198        };
199  
200        vector<string>  objectsToGet;
# Line 201 | Line 204 | class OSUAnalysis : public edm::EDAnalyz
204        vector<histogram> histograms;
205  
206        PUWeight *puWeight_;
207 +      MuonSFWeight *muonSFWeight_;
208 +      ElectronSFWeight *electronSFWeight_;
209  
210        template <class InputCollection> void setObjectFlags(cut &, uint, flagMap &, flagMap &, InputCollection, string);
211        template <class InputCollection1, class InputCollection2> void setObjectFlags(cut &, uint, flagMap &, flagMap &, InputCollection1, InputCollection2, vector<bool>, vector<bool>, string);
# Line 214 | Line 219 | class OSUAnalysis : public edm::EDAnalyz
219        int getPdgIdBinValue(int);
220        int findTauMotherIndex(const BNmcparticle*);
221  
222 +      template <class InputObject> double getGenDeltaRLowest(InputObject);
223 +
224 +
225 +      const BNprimaryvertex *chosenVertex ();
226 +      const BNmet *chosenMET ();
227 +      const BNelectron *chosenElectron ();
228 +      const BNmuon *chosenMuon ();
229  
230    };
231  

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines