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.2 by lantonel, Mon Jan 28 13:31:44 2013 UTC vs.
Revision 1.6 by lantonel, Thu Feb 7 14:52:37 2013 UTC

# Line 6 | Line 6
6   #include <string>
7   #include <vector>
8  
9 + #include "TH1.h"
10   #include "TH1D.h"
11   #include "TH2D.h"
12   #include "TLorentzVector.h"
# Line 52 | Line 53 | class OSUAnalysis : public edm::EDAnalyz
53        void analyze (const edm::Event &, const edm::EventSetup &);
54        bool evaluateComparison (double, string, double);
55        bool evaluateTriggers   (vector<string>,const BNtriggerCollection*);
56 <      double valueLookup (const BNjet*, string, string);
57 <      double valueLookup (const BNmuon*, string, string);
58 <      double valueLookup (const BNelectron*, string, string);
59 <      double valueLookup (const BNevent*, string, string);
60 <      double valueLookup (const BNtau*, string, string);
61 <      double valueLookup (const BNmet*, string, string);
62 <      double valueLookup (const BNtrack*, string, string);
63 <      double valueLookup (const BNgenjet*, string, string);
64 <      double valueLookup (const BNmcparticle*, string, string);
65 <      double valueLookup (const BNprimaryvertex*, string, string);
66 <      double valueLookup (const BNbxlumi*, string, string);
67 <      double valueLookup (const BNphoton*, string, string);
68 <      double valueLookup (const BNsupercluster*, string, string);
56 >      double applyFunction(string, double);
57 >
58 >      double valueLookup (const BNjet* object, string variable, string function = "");
59 >      double valueLookup (const BNmuon* object, string variable, string function = "");
60 >      double valueLookup (const BNelectron* object, string variable, string function = "");
61 >      double valueLookup (const BNevent* object, string variable, string function = "");
62 >      double valueLookup (const BNtau* object, string variable, string function = "");
63 >      double valueLookup (const BNmet* object, string variable, string function = "");
64 >      double valueLookup (const BNtrack* object, string variable, string function = "");
65 >      double valueLookup (const BNgenjet* object, string variable, string function = "");
66 >      double valueLookup (const BNmcparticle* object, string variable, string function = "");
67 >      double valueLookup (const BNprimaryvertex* object, string variable, string function = "");
68 >      double valueLookup (const BNbxlumi* object, string variable, string function = "");
69 >      double valueLookup (const BNphoton* object, string variable, string function = "");
70 >      double valueLookup (const BNsupercluster* object, string variable, string function = "");
71        //BNskimbits
69      //BNtrigger
72        //BNtrigobj
73  
74        vector<string> splitString (string);
# Line 103 | Line 105 | class OSUAnalysis : public edm::EDAnalyz
105        edm::InputTag superclusters_;
106        edm::InputTag triggers_;
107  
108 +      TVector3 vertexPosition;
109  
110        vector<edm::ParameterSet> channels_;
111 +      vector<edm::ParameterSet> histogramSets_;
112  
113        vector<map<string, TH1D*> > oneDHists_;
114 +      vector<map<string, TH2D*> > twoDHists_;
115  
116        edm::Service<TFileService> fs_;
117  
118        CutFlow *masterCutFlow_;
119        vector<CutFlow *> cutFlows_;
120  
121 +      typedef struct {
122 +        string name;
123 +        string title;
124 +        vector<double> bins;
125 +        string inputCollection;
126 +        vector<string> inputVariables;
127 +        string function;
128 +      } histogram;
129  
130        struct cut {
131          string inputCollection;
# Line 129 | Line 142 | class OSUAnalysis : public edm::EDAnalyz
142          string name;
143          vector<string> triggers;
144          vector<cut> cuts;
132        vector<string> inputCollections;
145        };
146  
147 +      vector<string>  objectsToPlot;
148        vector<string>  allNecessaryObjects;
149        vector<channel> channels;
150 +      vector<histogram> histograms;
151  
152        template <class InputCollection> void setObjectFlags(cut &, uint, flagMap &, flagMap &, InputCollection, string);
153 +      template <class InputCollection>  void fillHistogram(TH1*, histogram, InputCollection);
154  
155  
156  

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines