/*
 * TrkDOFVsRigHistoAction.cpp
 *
 *  Created on: 01/set/2009
 *      Author: Nicola Mori
 */

/*! @file TrkDOFVsRigHistoAction.cpp The TrkDOFVsRigHistoAction class implementation file. */

#include "TrkDOFVsRigHistoAction.h"

TrkDOFVsRigHistoAction::TrkDOFVsRigHistoAction(const char *actionName, TString outFileBase, TString mode, bool outRoot,    bool outText, TString title) :
  Histo2DAction<Int_t> (actionName, title, outFileBase, mode, outRoot, outText) {
}

void TrkDOFVsRigHistoAction::OnGood(PamLevel2 *event) {

  Fill(event->GetTrack(0)->GetTrkTrack()->GetRigidity(), event->GetTrack(0)->GetTrkTrack()->GetNtot() - 5);

}
