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.20 by wulsin, Wed Mar 27 22:38:08 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 68 | Line 69 | class OSUAnalysis : public edm::EDAnalyz
69        double valueLookup (const BNelectron* object, string variable, string function = "");
70        double valueLookup (const BNelectron* object1, const BNelectron* object2, string variable, string function = "");
71        double valueLookup (const BNelectron* object1, const BNmuon* object2, string variable, string function = "");
72 +      double valueLookup (const BNelectron* object1, const BNtrack* object2, string variable, string function = "");
73 +      double valueLookup (const BNmuon* object1, const BNtrack* object2, string variable, string function = "");
74 +      double valueLookup (const BNmuon* object1, const BNtau* object2, string variable, string function = "");
75 +      double valueLookup (const BNtau* object1, const BNtau* object2, string variable, string function = "");
76        double valueLookup (const BNevent* object, string variable, string function = "");
77        double valueLookup (const BNtau* object, string variable, string function = "");
78        double valueLookup (const BNmet* object, string variable, string function = "");
79        double valueLookup (const BNtrack* object, string variable, string function = "");
80 +      double valueLookup (const BNtrack* object1, const BNevent* object2, string variable, string function = "");
81        double valueLookup (const BNgenjet* object, string variable, string function = "");
82        double valueLookup (const BNmcparticle* object, string variable, string function = "");
83        double valueLookup (const BNprimaryvertex* object, string variable, string function = "");
# Line 83 | Line 89 | class OSUAnalysis : public edm::EDAnalyz
89        double getTrkPtTrue (const BNtrack* track1, const BNmcparticleCollection* genPartColl);
90        double getTrkPtRes (const BNtrack* track1);
91        double getTrkIsIso (const BNtrack* track1);
92 +      double getTrkCaloTotRhoCorr(const BNtrack* track);
93        void WriteDeadEcal ();
94        int getTrkIsMatchedDeadEcal (const BNtrack* track1);
95  
# Line 100 | Line 107 | class OSUAnalysis : public edm::EDAnalyz
107        //inner vector corresponds to each object in input collection
108        //bool         tells if object passes or fails cuts
109        typedef map<string, vector < vector<bool> > > flagMap;
110 <      
110 >
111        //counterMap:
112        //string holds input collection type
113        //vector corresponds to each cut
# Line 124 | Line 131 | class OSUAnalysis : public edm::EDAnalyz
131        edm::InputTag triggers_;
132        std::string puFile_;
133        std::string deadEcalFile_;
134 +      std::string muonSFFile_;
135        std::string dataPU_;
136 +      std::string electronSFID_;
137 +      std::string muonSF_;
138        std::string dataset_;
139        std::string datasetType_;
140        vector<edm::ParameterSet> channels_;
141        vector<edm::ParameterSet> histogramSets_;
142        bool plotAllObjectsInPassingEvents_;
143        bool doPileupReweighting_;
144 +      bool printEventInfo_;  
145 +      bool useTrackCaloRhoCorr_;  // to use the calo-based rho correction for the by-hand calculation of the track isolation energy
146  
147        struct DeadEcal {
148 <        double etaEcal;
149 <        double phiEcal;
148 >        double etaEcal;
149 >        double phiEcal;
150        };
151 <      
151 >
152        std::vector<DeadEcal> DeadEcalVec;
153  
154  
# Line 155 | Line 167 | class OSUAnalysis : public edm::EDAnalyz
167        edm::Handle<BNbxlumiCollection> bxlumis;
168        edm::Handle<BNphotonCollection> photons;
169        edm::Handle<BNsuperclusterCollection> superclusters;
170 +      edm::Handle<double> rhokt6CaloJetsHandle_;  
171  
172 <      const BNprimaryvertex *chosenPrimaryVertex;
160 <
172 >      flagMap cumulativeFlags;
173  
174        vector<map<string, TH1D*> > oneDHists_;
175        vector<map<string, TH2D*> > twoDHists_;
# Line 168 | Line 180 | class OSUAnalysis : public edm::EDAnalyz
180        vector<CutFlow *> cutFlows_;
181  
182        typedef struct {
183 <        string name;
184 <        string title;
185 <        vector<double> bins;
186 <        string inputCollection;
187 <        vector<string> inputVariables;
183 >        string name;
184 >        string title;
185 >        vector<double> bins;
186 >        string inputCollection;
187 >        vector<string> inputVariables;
188        } histogram;
189  
190        struct cut {
191 <        string inputCollection;
192 <        vector<string> functions;
193 <        vector<string> variables;
194 <        vector<string> comparativeOperators;// >, <, =, etc.
195 <        vector<double> cutValues;
196 <        vector<string> logicalOperators;//and, or
197 <        int numSubcuts;
198 <        int    numberRequired;
199 <        string eventComparativeOperator;
200 <        string name;
191 >        string inputCollection;
192 >        vector<string> functions;
193 >        vector<string> variables;
194 >        vector<string> comparativeOperators;// >, <, =, etc.
195 >        vector<double> cutValues;
196 >        vector<string> logicalOperators;//and, or
197 >        int numSubcuts;
198 >        int    numberRequired;
199 >        string eventComparativeOperator;
200 >        string name;
201        };
202  
203        struct channel {
204 <        string name;
205 <        vector<string> triggers;
206 <        vector<cut> cuts;
204 >        string name;
205 >        vector<string> triggers;
206 >        vector<cut> cuts;
207        };
208  
209        vector<string>  objectsToGet;
# Line 201 | Line 213 | class OSUAnalysis : public edm::EDAnalyz
213        vector<histogram> histograms;
214  
215        PUWeight *puWeight_;
216 +      MuonSFWeight *muonSFWeight_;
217 +      ElectronSFWeight *electronSFWeight_;
218  
219        template <class InputCollection> void setObjectFlags(cut &, uint, flagMap &, flagMap &, InputCollection, string);
220        template <class InputCollection1, class InputCollection2> void setObjectFlags(cut &, uint, flagMap &, flagMap &, InputCollection1, InputCollection2, vector<bool>, vector<bool>, string);
# Line 214 | Line 228 | class OSUAnalysis : public edm::EDAnalyz
228        int getPdgIdBinValue(int);
229        int findTauMotherIndex(const BNmcparticle*);
230  
231 +      template <class InputObject> double getGenDeltaRLowest(InputObject);
232 +
233 +
234 +      const BNprimaryvertex *chosenVertex ();
235 +      const BNmet *chosenMET ();
236 +      const BNelectron *chosenElectron ();
237 +      const BNmuon *chosenMuon ();
238  
239    };
240  

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines