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

Comparing UserCode/MitHzz4l/Angles/src/trainAngles.cc (file contents):
Revision 1.5 by dkralph, Thu Jan 17 08:48:15 2013 UTC vs.
Revision 1.6 by dkralph, Thu Feb 7 08:58:30 2013 UTC

# Line 218 | Line 218 | int main(int argc, char** argv) {
218        fs->getentry(ientry,"kinematics","zznt");
219        if(fs->kine->m4l < wL || fs->kine->m4l > wH) continue;
220        fs->getentry(ientry,"","zznt");
221 <      if(ientry<100)
222 <        cout << fs->ji->nJets << endl;
221 >      // if(ientry<100)
222 >      //        cout << fs->ji->nJets << endl; // wasn't filled correctly for some reason
223        
224        for(unsigned ivar=0; ivar<vars.size(); ivar++)
225          setTrainingVal(vars[ivar],   &varVals[ivar],  fs);
# Line 231 | Line 231 | int main(int argc, char** argv) {
231        double wgt(baseWgts[ifs]);
232        if(wgtStrs[ifs] == "w")            wgt *= fs->weights->w;
233        else if(wgtStrs[ifs] == "1")       wgt *= 1;
234 <      else if(wgtStrs[ifs] == "wInterf") wgt *= getInterferenceWeight(fs,mela);
234 >      // else if(wgtStrs[ifs] == "wInterf") wgt *= getInterferenceWeight(fs, mela, fs->dataset_.Contains("-XXXdkr"), mH);
235 >      else if(wgtStrs[ifs] == "wInterf") wgt *= getInterferenceWeight(fs, mela);
236        else assert(0);
237        if(wgt<.000000001 || wgt>5) { cout << "bad wgt?" << wgt << endl;}
238 +      // if(fs->dataset_.Contains("-dkr") // && ientry<100
239 +      //         )
240 +      //        // cout << "test wgt: " << getInterferenceWeight(fs, mela, fs->dataset_.Contains("-XXXdkr"), mH) << endl;
241 +        // // cout << "test wgt: " << getInterferenceWeight(fs, mela) << endl;
242  
243        if((ientry%2)==0 || (fs->dataset_.Contains("fakes",TString::kIgnoreCase) && noFakeTest))
244          factory->AddEvent(classes[ifs], TMVA::Types::kTraining, varVals, wgt);

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines