1 |
pam-fi |
1.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 |
pam-fi |
1.1.2.1 |
#ifndef NO_CALOAXIS |
11 |
|
|
|
12 |
pam-fi |
1.1 |
#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 |
pam-fi |
1.1.2.1 |
|
25 |
|
|
#endif /* NO_CALOAXIS */ |