/* * CaloDedxVsRigHistoAction.cpp * * Created on: 11/set/2009 * Author: Nicola Mori */ /*! @file CaloDedxVsRigHistoAction.cpp The CaloDedxVsRigHistoAction class implementation file. */ #include "CaloDedxVsRigHistoAction.h" CaloDedxVsRigHistoAction::CaloDedxVsRigHistoAction(const char *actionName, unsigned int plane, unsigned int view, TString outFileBase, TString mode, bool outRoot, bool outText, TString title) : Histo2DAction (actionName, title, outFileBase, mode, outRoot, outText), _plane(plane), _view(view) { } void CaloDedxVsRigHistoAction::OnGood(PamLevel2 *event) { Fill(1./event->GetTrack(0)->GetTrkTrack()->GetDeflection(), event->GetCaloLevel1()->qtotpl(_view, _plane)); }