/[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.3 by pam-fi, Tue Nov 3 16:07:19 2009 UTC revision 1.4 by pam-fi, Tue Nov 24 14:42:31 2009 UTC
# Line 18  int CaloNotIntCut::Check(PamLevel2 *even Line 18  int CaloNotIntCut::Check(PamLevel2 *even
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            
21      float qratio = ( _xCaloAxis->GetQaxis() + _yCaloAxis->GetQaxis() ) / event->GetCaloLevel2()->qtot;      Double_t qtot = event->GetCaloLevel2()->qtot;
22        if ( qtot>0 ) {
23        
24          Double_t qratio = ( _xCaloAxis->GetQaxis() + _yCaloAxis->GetQaxis() ) / qtot;
25    
26      if (! (qratio > _qRatioMin) ) {        if (! (qratio > _qRatioMin) ) {
27        return 1;          return 1;
28      }        }
29        
30        }
31    }    }
32        
33    if (_pamTrack) { // PAMELA track    if (_pamTrack) { // PAMELA track
34    
35      float qratio = ( (*_pamTrack)->GetCaloTrack()->qtrack ) / event->GetCaloLevel2()->qtot;      Double_t qtot = event->GetCaloLevel2()->qtot;
36        if ( qtot>0 ) {
37    
38          Double_t qratio = ( (*_pamTrack)->GetCaloTrack()->qtrack ) / qtot;
39    
40      if (! (qratio > _qRatioMin) ) {          if (! (qratio > _qRatioMin) ) {  
41        return 2;          return 2;
42          }
43          
44      }      }
45    
46    }    }

Legend:
Removed from v.1.3  
changed lines
  Added in v.1.4

  ViewVC Help
Powered by ViewVC 1.1.23