/[PAMELA software]/PamCut/CaloCuts/CaloNotIntCut/CaloNotIntCut.cpp
ViewVC logotype

Diff of /PamCut/CaloCuts/CaloNotIntCut/CaloNotIntCut.cpp

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.1 by pam-fi, Wed May 27 13:30:09 2009 UTC revision 1.2 by pam-fi, Tue Oct 27 18:20:18 2009 UTC
# Line 10  Line 10 
10    
11  int CaloNotIntCut::Check(PamLevel2 *event) {  int CaloNotIntCut::Check(PamLevel2 *event) {
12    
13    if ( (!(_xCaloAxis) || !(_yCaloAxis)) && !(_trkTrack) ) { // check that one of the two possible initializations has been correctly done    if ( (!(_xCaloAxis) || !(_yCaloAxis)) && !(_pamTrack) ) { // check that one of the two possible initializations has been correctly done
14      return 0;      return 0;
15    }    }
16        
17    if (!(_trkTrack)) { // CALO track    if (!(_pamTrack)) { // CALOAXIS track
18        
19      // energy released along the event axis in the calo / total energy release in the calo      // energy released along the event axis in the calo / total energy release in the calo
20            
# Line 26  int CaloNotIntCut::Check(PamLevel2 *even Line 26  int CaloNotIntCut::Check(PamLevel2 *even
26        
27    }    }
28        
29    if (_trkTrack) { // TRK track    if (_pamTrack) { // PAMELA track
30      
31     return 2; // temporary      float qratio = ( _pamTrack->GetCaloTrack()->qtrack ) / event->GetCaloLevel2()->qtot;
32      // Implement here the check using the tracker track.  
33        if (! (qratio > _qRatioMin) ) {  
34          return 2;
35        }
36    
37    }    }
38    

Legend:
Removed from v.1.1  
changed lines
  Added in v.1.2

  ViewVC Help
Powered by ViewVC 1.1.23