/*
 * TrkDedxVsRigHistoAction.cpp
 *
 *  Created on: 9-giu-2009
 *      Author: Nicola Mori
 */

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

#include "TrkDedxVsRigHistoAction.h"

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

}

void TrkDedxVsRigHistoAction::OnGood(PamLevel2 *event) {

  Fill(1. / event->GetTrack(0)->GetTrkTrack()->GetDeflection(), event->GetTrack(0)->GetTrkTrack()->GetDEDX());
}
