ViewVC Help
View File | Revision Log | Show Annotations | Root Listing
root/cvsroot/UserCode/MitHzz4l/Selection/interface/SelectionFuncs.h
(Generate patch)

Comparing UserCode/MitHzz4l/Selection/interface/SelectionFuncs.h (file contents):
Revision 1.9 by anlevin, Sat Oct 13 19:48:23 2012 UTC vs.
Revision 1.12 by anlevin, Wed Feb 6 22:31:33 2013 UTC

# Line 21 | Line 21 | using namespace std;
21   #include <TClonesArray.h>           // ROOT array class
22   #include <TFile.h>
23   #include <TH1F.h>
24 + #include "TRegexp.h"
25  
26 + #include "FactorizedJetCorrector.h"
27 + #include "JetCorrectorParameters.h"
28 +
29 + #include "PFJetCol.h"
30 + #include "JetIDMVA.h"
31 + #include "JetSelection.h"
32   #include "MuonTools.h"
33   #include "ElectronTools.h"
34   #include "RunLumiRangeMap.h"
# Line 32 | Line 39 | using namespace std;
39   #include "Vertex.h"
40   #include "PFCandidateCol.h"
41  
42 + #include "GenInfoStruct.h"
43   #include "ParseArgs.h"
44   #include "EventData.h"
45   #include "WeightStruct.h"
46   #include "PileupInfoCol.h"
47   #include "EfficiencyWeightsInterface.h"
40 #include "FOArgs.h"
48  
49   using namespace mithep;
50  
51 < bool setPV(ControlFlags ctrl,
51 > void increment(map<TString, map<TString,int>* > &counterMap, TString cutName, int z1type=0, int z2type=0);
52 > bool setPV(ControlFlags &ctrl,
53             const mithep::Array<mithep::Vertex> * vtxArr,
54             const mithep::Vertex* &vtx);
55  
56   void writeEntries(ControlFlags ctrl, unsigned total_unskimmed);
49 void writeEntries(FOFlags foctrl, unsigned total_unskimmed);
57   void getEATargets(ControlFlags &ctrl, mithep::MuonTools::EMuonEffectiveAreaTarget &eraMu, mithep::ElectronTools::EElectronEffectiveAreaTarget &eraEle);
51 void getEATargets(FOFlags foctrl, mithep::MuonTools::EMuonEffectiveAreaTarget &eraMu, mithep::ElectronTools::EElectronEffectiveAreaTarget &eraEle);
58   unsigned makePFnoPUArray(const mithep::Array<PFCandidate> * fPFCandidates,
59                           vector<bool> &pfNoPileUpFlag,
60                           const mithep::Array<mithep::Vertex>     * vtxArr );
61 < void setEffiencyWeights(unsigned era,
62 <                        EventData & evtdat,
63 <                        std::bitset<1024> triggerBits,
64 <                        mithep::TriggerTable *hltTable,
65 <                        mithep::Array<mithep::TriggerObject> *hltObjArr,
66 <                        mithep::TriggerObjectsTable *fTrigObjs,
67 <                        WeightStruct & weights ) ;
61 > void setEfficiencyWeights(ControlFlags &ctrl,
62 >                          unsigned era,
63 >                          EventData & evtdat,
64 >                          std::bitset<1024> triggerBits,
65 >                          mithep::TriggerTable *hltTable,
66 >                          mithep::Array<mithep::TriggerObject> *hltObjArr,
67 >                          mithep::TriggerObjectsTable *fTrigObjs,
68 >                          WeightStruct & weights ) ;
69   void initEvtRhoMap(map<unsigned,float> &);
70   void setEra(string, ControlFlags&);
71   unsigned getNPU(mithep::Array<mithep::PileupInfo> *puArr, int bx=0);
72   void initPUWeights();
73 < double getPUWeight(unsigned era, unsigned npu);
73 > double getPUWeight(int era, TString fname, unsigned npu);
74 > void initJets(ControlFlags ctrl,
75 >              string cmsswpath,
76 >              vector<TString> &fJetCorrParsv,
77 >              vector<JetCorrectorParameters> &correctionParameters,
78 >              FactorizedJetCorrector *&fJetCorrector,
79 >              JetIDMVA *&fJetIDMVA);
80 > int getGenSampleType(TString ofname);
81   TString getChannel(int z1type, int z2type);
82 + float weightTruePileupSummer12toMoriond(float input);
83 + // PU weight functions from Mangano:
84 + float weightTruePileupV07toIchep52X(float input);
85 + float weightTruePileupV07toHcp53X(float input);
86 + float weightTruePileupV10toIchep53X(float input);
87 + float weightTruePileupV10toHcp53X(float input);
88 + float weightTrue2011(float input);
89 + float weightTrue2011to2012(float input);
90   #endif

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines