--- PamCut/CollectionActions/RigFillAction/RigFillAction.cpp 2009/10/27 10:18:21 1.5 +++ PamCut/CollectionActions/RigFillAction/RigFillAction.cpp 2010/03/08 09:17:58 1.6 @@ -68,7 +68,7 @@ float rigThreshold = _thresholdCoeff * event->GetOrbitalInfo()->GetCutoffSVL(); float rig = event->GetTrack(0)->GetTrkTrack()->GetRigidity(); - _rootHisto.Fill(rigThreshold, rig); // X,Y in the ROOT histogram + //_rootHisto.Fill(rigThreshold, rig); // X,Y in the ROOT histogram // Event rigidity bin identification. @@ -84,11 +84,11 @@ // Threshold rigidity bin identification. - if (rigThreshold < 0 || rigThreshold >= _bins[(int) _textHisto.GetNRows()]) { + if (rigThreshold <= 0 || rigThreshold >= _bins[(int) _textHisto.GetNRows()]) { return; } - if (0 <= rigThreshold && rigThreshold < _bins[0]) + if (0 < rigThreshold && rigThreshold < _bins[0]) _zeroCutoffBins[i]++; else { int j = 1; @@ -124,10 +124,10 @@ outTextFile.close(); // Write the ROOT file - TFile outRootFile((_outFileBase + "-" + GetName() + ".root"), "RECREATE"); - outRootFile.cd(); - _rootHisto.Write(); - outRootFile.Close(); - + /*TFile outRootFile((_outFileBase + "-" + GetName() + ".root"), "RECREATE"); + outRootFile.cd(); + _rootHisto.Write(); + outRootFile.Close(); + */ } }