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.3 by lantonel, Wed Jan 30 20:07:49 2013 UTC vs.
Revision 1.4 by lantonel, Thu Jan 31 22:05:56 2013 UTC

# Line 54 | Line 54 | class OSUAnalysis : public edm::EDAnalyz
54        bool evaluateTriggers   (vector<string>,const BNtriggerCollection*);
55        double applyFunction(string, double);
56  
57 <      double valueLookup (const BNjet*, string, string);
58 <      double valueLookup (const BNmuon*, string, string);
59 <      double valueLookup (const BNelectron*, string, string);
60 <      double valueLookup (const BNevent*, string, string);
61 <      double valueLookup (const BNtau*, string, string);
62 <      double valueLookup (const BNmet*, string, string);
63 <      double valueLookup (const BNtrack*, string, string);
64 <      double valueLookup (const BNgenjet*, string, string);
65 <      double valueLookup (const BNmcparticle*, string, string);
66 <      double valueLookup (const BNprimaryvertex*, string, string);
67 <      double valueLookup (const BNbxlumi*, string, string);
68 <      double valueLookup (const BNphoton*, string, string);
69 <      double valueLookup (const BNsupercluster*, string, string);
57 >      double valueLookup (const BNjet* object, string variable, string function = "");
58 >      double valueLookup (const BNmuon* object, string variable, string function = "");
59 >      double valueLookup (const BNelectron* object, string variable, string function = "");
60 >      double valueLookup (const BNevent* object, string variable, string function = "");
61 >      double valueLookup (const BNtau* object, string variable, string function = "");
62 >      double valueLookup (const BNmet* object, string variable, string function = "");
63 >      double valueLookup (const BNtrack* object, string variable, string function = "");
64 >      double valueLookup (const BNgenjet* object, string variable, string function = "");
65 >      double valueLookup (const BNmcparticle* object, string variable, string function = "");
66 >      double valueLookup (const BNprimaryvertex* object, string variable, string function = "");
67 >      double valueLookup (const BNbxlumi* object, string variable, string function = "");
68 >      double valueLookup (const BNphoton* object, string variable, string function = "");
69 >      double valueLookup (const BNsupercluster* object, string variable, string function = "");
70        //BNskimbits
71      //BNtrigger
71        //BNtrigobj
72  
73        vector<string> splitString (string);
# Line 107 | Line 106 | class OSUAnalysis : public edm::EDAnalyz
106  
107  
108        vector<edm::ParameterSet> channels_;
109 +      vector<edm::ParameterSet> histogramSets_;
110  
111        vector<map<string, TH1D*> > oneDHists_;
112  
# Line 115 | Line 115 | class OSUAnalysis : public edm::EDAnalyz
115        CutFlow *masterCutFlow_;
116        vector<CutFlow *> cutFlows_;
117  
118 +      typedef struct {
119 +        string name;
120 +        string title;
121 +        vector<double> bins;
122 +        string inputCollection;
123 +        string inputVariable;
124 +        string function;
125 +      } histogram;
126  
127        struct cut {
128          string inputCollection;
# Line 131 | Line 139 | class OSUAnalysis : public edm::EDAnalyz
139          string name;
140          vector<string> triggers;
141          vector<cut> cuts;
134        vector<string> inputCollections;
142        };
143  
144 +      vector<string>  objectsToPlot;
145        vector<string>  allNecessaryObjects;
146        vector<channel> channels;
147 +      vector<histogram> histograms;
148  
149        template <class InputCollection> void setObjectFlags(cut &, uint, flagMap &, flagMap &, InputCollection, string);
150 +      template <class InputCollection>  void fillHistogram(TH1D*, histogram, InputCollection);
151  
152  
153  

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines