1 |
pam-fi |
1.1 |
/* |
2 |
|
|
* CaloNotIntCut.cpp |
3 |
|
|
* Created on: 17-mar-2009 |
4 |
|
|
* Author: Sergio Ricciarini, Nicola Mori |
5 |
|
|
*/ |
6 |
|
|
|
7 |
|
|
/*! @file CaloNotIntCut.cpp The CaloNotIntCut class implementation file */ |
8 |
|
|
|
9 |
|
|
#include "CaloNotIntCut.h" |
10 |
|
|
|
11 |
|
|
int CaloNotIntCut::Check(PamLevel2 *event) { |
12 |
|
|
|
13 |
|
|
if ( (!(_xCaloAxis) || !(_yCaloAxis)) && !(_trkTrack) ) { // check that one of the two possible initializations has been correctly done |
14 |
|
|
return 0; |
15 |
|
|
} |
16 |
|
|
|
17 |
|
|
if (!(_trkTrack)) { // CALO track |
18 |
|
|
|
19 |
|
|
// energy released along the event axis in the calo / total energy release in the calo |
20 |
|
|
|
21 |
|
|
float qratio = ( _xCaloAxis->GetQaxis() + _yCaloAxis->GetQaxis() ) / event->GetCaloLevel2()->qtot; |
22 |
|
|
|
23 |
|
|
if (! (qratio > _qRatioMin) ) { |
24 |
|
|
return 1; |
25 |
|
|
} |
26 |
|
|
|
27 |
|
|
} |
28 |
|
|
|
29 |
|
|
if (_trkTrack) { // TRK track |
30 |
|
|
|
31 |
|
|
return 2; // temporary |
32 |
|
|
// Implement here the check using the tracker track. |
33 |
|
|
|
34 |
|
|
} |
35 |
|
|
|
36 |
|
|
return CUTOK; |
37 |
|
|
|
38 |
|
|
} |