/[PAMELA software]/PamCut/CollectionActions/Histo2DActions/CaloAxisChi2VsRigHistoAction/CaloAxisChi2VsRigHistoAction.cpp
ViewVC logotype

Contents of /PamCut/CollectionActions/Histo2DActions/CaloAxisChi2VsRigHistoAction/CaloAxisChi2VsRigHistoAction.cpp

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.1.2.1 - (show annotations) (download)
Thu Jul 8 10:43:17 2010 UTC (14 years, 5 months ago) by pam-fi
Branch: V8
CVS Tags: MergedToHEAD_1, nuclei_reproc
Changes since 1.1: +4 -0 lines
Support for external CaloAxis library added.

1 /*
2 * CaloAxisChi2VsRigHistoAction.cpp
3 *
4 * Created on: 2010-02-22
5 * Author: S. Ricciarini
6 */
7
8 /*! @file CaloAxisChi2VsRigHistoAction.cpp The CaloAxisChi2VsRigHistoAction class implementation file. */
9
10 #ifndef NO_CALOAXIS
11
12 #include "CaloAxisChi2VsRigHistoAction.h"
13
14 CaloAxisChi2VsRigHistoAction::CaloAxisChi2VsRigHistoAction(const char *actionName, CaloAxis *axis, TString outFileBase,
15 TString mode, bool outRoot, bool outText, TString title) :
16 Histo2DAction<Int_t> (actionName, title, outFileBase, mode, outRoot, outText), _axis(axis) {
17 }
18
19 void CaloAxisChi2VsRigHistoAction::OnGood(PamLevel2 *event) {
20
21 Fill(1./event->GetTrack(0)->GetTrkTrack()->GetDeflection(), _axis->GetChi2());
22
23 }
24
25 #endif /* NO_CALOAXIS */

  ViewVC Help
Powered by ViewVC 1.1.23