Skip to content
Snippets Groups Projects
THcShowerPlane.cxx 38.9 KiB
Newer Older
  • Learn to ignore specific revisions
  • 	YTrk > static_cast<THcShower*>(fParent)->GetYPos(fLayerNum-1,1) &&
    	YTrk < static_cast<THcShower*>(fParent)->GetYPos(fLayerNum-1,0) ) {
    
    
          fStatNumTrk.at(i)++;
          fTotStatNumTrk++;
          
          if (fGoodPosAdcPulseInt.at(i) > 0. || fGoodNegAdcPulseInt.at(i) > 0.) {
    	fStatNumHit.at(i)++;
    	fTotStatNumHit++;
          }
          
        }
        
      }
    
    
      if ( static_cast<THcShower*>(fParent)->fdbg_tracks_cal ) {
    
        cout << "---------------------------------------------------------------\n";
        cout << "THcShowerPlane::AccumulateStat:" << endl;
        cout << "   Chi2/NDF = " <<BestTrack->GetChi2()/BestTrack->GetNDoF() << endl;
    
        cout << "   HGCER Npe = " << fCherenkov->GetCerNPE() << endl;
    
        cout << "   XTrk, YTrk = " << XTrk << "  " << YTrk << endl;						     
        for (Int_t i=0; i<fNelem; i++) {
    
          if (TMath::Abs(XTrk - static_cast<THcShower*>(fParent)->GetXPos(fLayerNum-1,i)) < fStatSlop) {
    
    	cout << "   Module " << i << ", X=" << static_cast<THcShower*>(fParent)->GetXPos(fLayerNum-1,i)
    
    	     << " matches track" << endl;
    
    	if (fGoodPosAdcPulseInt.at(i) > 0. || fGoodNegAdcPulseInt.at(i) > 0.)
    	  cout << "   PulseIntegrals = " << fGoodPosAdcPulseInt.at(i) << "  "
    	       << fGoodNegAdcPulseInt.at(i) << endl;
          }
        }
        cout << "---------------------------------------------------------------\n";
        //    getchar();
      }
      
      return 1;
    }