LCOV - code coverage report
Current view: top level - STEER/ESD - AliESDTOFMatch.cxx (source / functions) Hit Total Coverage
Test: coverage.info Lines: 18 40 45.0 %
Date: 2016-06-14 17:26:59 Functions: 5 9 55.6 %

          Line data    Source code
       1             : #include "AliESDTOFMatch.h"
       2             : 
       3         172 : ClassImp(AliESDTOFMatch)
       4             : 
       5             : //___________________________________________
       6          88 : AliESDTOFMatch::AliESDTOFMatch():
       7          88 :   fDx(0),
       8          88 :   fDy(0),
       9          88 :   fDz(0),
      10          88 :   fTrackLength(0)
      11         440 : {
      12        1760 :   for(Int_t i=AliPID::kSPECIESC;i--;) fIntegratedTimes[i] = 0;
      13         176 : }
      14             : 
      15             : //___________________________________________
      16         132 : AliESDTOFMatch::AliESDTOFMatch(Int_t ind,Double_t inttimes[AliPID::kSPECIESC],Double_t dx,Double_t dy,Double_t dz,Double_t l):
      17         132 :   fDx(dx),
      18         132 :   fDy(dy),
      19         132 :   fDz(dz),
      20         132 :   fTrackLength(l)
      21         660 : {
      22        2640 :   for(Int_t i=AliPID::kSPECIESC;i--;) fIntegratedTimes[i] = inttimes[i];
      23         132 :   SetTrackIndex(ind);
      24         264 : }
      25             : 
      26             : //___________________________________________
      27             : AliESDTOFMatch::AliESDTOFMatch(AliESDTOFMatch &source):
      28           0 :   AliVTOFMatch(source),
      29           0 :   fDx(source.fDx),
      30           0 :   fDy(source.fDy),
      31           0 :   fDz(source.fDz),
      32           0 :   fTrackLength(source.fTrackLength)
      33           0 : {
      34           0 :   for(Int_t i=AliPID::kSPECIESC;i--;) fIntegratedTimes[i] = source.fIntegratedTimes[i];
      35           0 :   SetTrackIndex(source.GetTrackIndex());
      36           0 : }
      37             : 
      38             : 
      39             : //___________________________________________
      40             : void AliESDTOFMatch::Print(const Option_t*) const
      41             : {
      42             :   // print matchi info
      43           0 :   printf("TOF Match to ESDtrack %5d: Dx:%+7.2f Dy:%+7.2f Dz:%+7.2f Lg: %+8.2f | Tpion:%e\n",
      44           0 :          GetTrackIndex(),fDx,fDy,fDz,fTrackLength,fIntegratedTimes[AliPID::kPion]); 
      45             :   //
      46           0 : } 
      47             : 
      48             : //___________________________________________
      49             : AliESDTOFMatch & AliESDTOFMatch::operator=(const AliESDTOFMatch& source)
      50             : {
      51             :   // assignment operator
      52           0 :   if(&source == this) return *this;
      53           0 :   AliVTOFMatch::operator=(source);
      54           0 :   fDx = source.fDx;
      55           0 :   fDy = source.fDy;
      56           0 :   fDz = source.fDz;
      57           0 :   fTrackLength = source.fTrackLength;
      58           0 :   SetTrackIndex(source.GetTrackIndex());
      59           0 :   for (int i=AliPID::kSPECIESC;i--;)  fIntegratedTimes[i] = source.fIntegratedTimes[i];
      60           0 :   return *this;
      61             :   //
      62           0 : }

Generated by: LCOV version 1.11