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.11 by lantonel, Sun Mar 3 17:14:18 2013 UTC vs.
Revision 1.15 by lantonel, Fri Mar 15 13:08:45 2013 UTC

# Line 6 | Line 6
6   #include <string>
7   #include <vector>
8  
9 + #include <fstream>
10 + #include <iostream>
11 + #include <algorithm>
12   #include "TH1.h"
13   #include "TH2.h"
14   #include "TH1D.h"
# Line 75 | Line 78 | class OSUAnalysis : public edm::EDAnalyz
78        double valueLookup (const BNbxlumi* object, string variable, string function = "");
79        double valueLookup (const BNphoton* object, string variable, string function = "");
80        double valueLookup (const BNsupercluster* object, string variable, string function = "");
81 +
82 +      int getTrkIsIso (const BNtrack* track1, const BNtrackCollection* trackColl);
83 +      double getTrkPtTrue (const BNtrack* track1, const BNmcparticleCollection* genPartColl);
84 +      double getTrkPtRes (const BNtrack* track1);
85 +      double getTrkIsIso (const BNtrack* track1);
86 +      void WriteDeadEcal ();
87 +      int getTrkIsMatchedDeadEcal (const BNtrack* track1);
88 +
89        //BNskimbits
90        //BNtrigobj
91  
# Line 112 | Line 123 | class OSUAnalysis : public edm::EDAnalyz
123        edm::InputTag superclusters_;
124        edm::InputTag triggers_;
125        std::string puFile_;
126 +      std::string deadEcalFile_;
127        std::string dataPU_;
128        std::string dataset_;
129        std::string datasetType_;
130        vector<edm::ParameterSet> channels_;
131        vector<edm::ParameterSet> histogramSets_;
132        bool plotAllObjectsInPassingEvents_;
133 +      bool doPileupReweighting_;
134  
135 +      struct DeadEcal {
136 +        double etaEcal;
137 +        double phiEcal;
138 +      };
139 +      
140 +      std::vector<DeadEcal> DeadEcalVec;
141 +
142 +
143 +      //Collections
144        edm::Handle<BNtriggerCollection> triggers;
145        edm::Handle<BNjetCollection> jets;
146        edm::Handle<BNmuonCollection> muons;
# Line 172 | Line 194 | class OSUAnalysis : public edm::EDAnalyz
194          vector<cut> cuts;
195        };
196  
197 +      vector<string>  objectsToGet;
198 +      vector<string>  objectsToCut;
199        vector<string>  objectsToPlot;
176      vector<string>  allNecessaryObjects;
200        vector<channel> channels;
201        vector<histogram> histograms;
202  
203        PUWeight *puWeight_;
204  
205        template <class InputCollection> void setObjectFlags(cut &, uint, flagMap &, flagMap &, InputCollection, string);
206 <      template <class InputCollection1, class InputCollection2> void setObjectFlags(cut &, uint, flagMap &, flagMap &, InputCollection1, InputCollection2, string);
206 >      template <class InputCollection1, class InputCollection2> void setObjectFlags(cut &, uint, flagMap &, flagMap &, InputCollection1, InputCollection2, vector<bool>, vector<bool>, string);
207 >
208        template <class InputCollection> void fill1DHistogram(TH1*, histogram, InputCollection, vector<bool>, double);
209        template <class InputCollection1, class InputCollection2> void fill1DHistogram(TH1*, histogram, InputCollection1, InputCollection2, vector<bool>, vector<bool>, vector<bool>, double);
210        template <class InputCollection> void fill2DHistogram(TH2*, histogram, InputCollection, vector<bool>, double);

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines