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

Comparing UserCode/MitHzz4l/Selection/src/SelectionFuncs.cc (file contents):
Revision 1.12 by dkralph, Tue Oct 23 11:39:21 2012 UTC vs.
Revision 1.13 by dkralph, Mon Dec 17 12:34:02 2012 UTC

# Line 10 | Line 10 | extern map<unsigned,float>       evtrhoM
10   extern bool passes_HLT_MC;
11   extern RunLumiRangeMap rlrm;
12  
13 + //----------------------------------------------------------------------------------------
14 + void increment(map<TString, map<TString,int>* > &counterMap, TString cutName, int z1type, int z2type)
15 + //----------------------------------------------------------------------------------------
16 + // increment counters that keep track of event counts at each cut
17 + {
18 +  assert(counterMap.find(cutName) != counterMap.end());
19 +  (*(counterMap[cutName]))["all"] ++;
20 +  if(z1type!=0 && z2type!=0) {
21 +    assert(counterMap.find(cutName) != counterMap.end());
22 +    (*(counterMap[cutName]))[getChannel(z1type,z2type)] ++;
23 +  }
24 + }
25   //----------------------------------------------------------------------------
26   bool setPV(ControlFlags &ctrl,
27             const mithep::Array<mithep::Vertex> * vtxArr,
# Line 96 | Line 108 | unsigned makePFnoPUArray(const mithep::A
108                           vector<bool> &pfNoPileUpflag,
109                           const mithep::Array<mithep::Vertex>      * vtxArr )
110   //----------------------------------------------------------------------------
111 + //
112 + // Make a vector of ints, one for each pf candidate, where we only include it in
113 + // the isolation sum if it's 1
114 + //
115   {
116 +  assert(pfNoPileUpflag.size() == 0); // make sure we remembered to clear it after the last event
117    for(UInt_t i = 0; i < fPFCandidates->GetEntries(); i++) {
118      const PFCandidate *pf = fPFCandidates->At(i);
119      assert(pf);
# Line 392 | Line 409 | int getGenSampleType(TString ofname)
409    else if(ofname.Contains(TRegexp("-zz2l2l-gf")))         return -1; // damn ggZZ has differences so MC parsing code fails ESampleType::kVV;  // ggZZ
410    else if(ofname.Contains(TRegexp("-ggzz4l-")))           return -1; // damn ggZZ has differences so MC parsing code fails ESampleType::kVV;  // ggZZ
411    else if(ofname.Contains(TRegexp("-ggzz2l2l-")))         return -1; // damn ggZZ has differences so MC parsing code fails ESampleType::kVV;  // ggZZ
412 +  else if(ofname.Contains(TRegexp("-x12[0-9]zz4l-")))     return -1; // spin samples
413    else if(ofname.Contains(TRegexp("-h[0-9][0-9]*zz4l-"))) return ESampleType::kHZZ; // powheg HZZ
414 +  else if(ofname.Contains(TRegexp("-h[0-9][0-9]*-")))     return ESampleType::kHZZ; // powheg HZZ where I fucked up the name
415 +  else if(ofname.Contains(TRegexp("-zllm50-")))           return ESampleType::kZ;   // drell-yan
416 +  else if(ofname.Contains(TRegexp("-zllm1050-")))         return ESampleType::kZ;   // drell-yan
417 +  else if(ofname.Contains(TRegexp("-zjets-")))            return ESampleType::kZ;   // drell-yan
418    else assert(0);
419   }
420   //----------------------------------------------------------------------------------------

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines