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

          Line data    Source code
       1             : #include "AliESDTOFHit.h"
       2             : 
       3         172 : ClassImp(AliESDTOFHit)
       4             : 
       5             : 
       6             : //________________________________________________________________
       7          68 : AliESDTOFHit::AliESDTOFHit():
       8          68 :   fTimeRaw(0),
       9          68 :   fTime(0),
      10          68 :   fTOT(0),
      11          68 :   fL0L1Latency(0),
      12          68 :   fDeltaBC(0),
      13          68 :   fTOFchannel(-1),
      14          68 :   fZ(0),
      15          68 :   fR(0),
      16          68 :   fPhi(0)
      17         340 : {
      18         544 :   for (int i=3;i--;) fTOFLabel[i]=-1;
      19         136 : }
      20             : 
      21             : //________________________________________________________________
      22         112 : AliESDTOFHit::AliESDTOFHit(Double_t time,Double_t timeraw, Double_t tot, Int_t channel,Int_t label[3],
      23             :                            Int_t latency,Int_t deltabc,Int_t cluster,Float_t z,Float_t r,Float_t phi):
      24         112 :   fTimeRaw(timeraw), 
      25         112 :   fTime(time),
      26         112 :   fTOT(tot),
      27         112 :   fL0L1Latency(latency),
      28         112 :   fDeltaBC(deltabc),
      29         112 :   fTOFchannel(channel),
      30         112 :   fZ(z),
      31         112 :   fR(r),
      32         112 :   fPhi(phi)
      33         560 : {   
      34         112 :   SetESDTOFClusterIndex(cluster);
      35         896 :   for (int i=3;i--;) fTOFLabel[i] = label[i];
      36         224 : }
      37             : 
      38             : //________________________________________________________________
      39             : AliESDTOFHit::AliESDTOFHit(AliESDTOFHit &source):
      40           0 :   AliVTOFHit(source),
      41           0 :   fTimeRaw(source.fTimeRaw),
      42           0 :   fTime(source.fTime),
      43           0 :   fTOT(source.fTOT),
      44           0 :   fL0L1Latency(source.fL0L1Latency),
      45           0 :   fDeltaBC(source.fDeltaBC),
      46           0 :   fTOFchannel(source.fTOFchannel),
      47           0 :   fZ(source.fZ),
      48           0 :   fR(source.fR),
      49           0 :   fPhi(source.fPhi)
      50           0 : {
      51           0 :   SetESDTOFClusterIndex(source.GetClusterIndex());
      52           0 :   for (int i=3;i--;) fTOFLabel[i] = source.fTOFLabel[i];
      53           0 : }
      54             : 
      55             : //________________________________________________________________
      56             : void AliESDTOFHit::Print(const Option_t*) const
      57             : {
      58             :   // print hit info
      59           0 :   printf("TOF Hit: Time:%f TOT:%f Chan:%5d DeltaBC:%+2d Labels: %d %d %d\n",
      60           0 :          fTime,fTOT,fTOFchannel,fDeltaBC,fTOFLabel[0],fTOFLabel[1],fTOFLabel[2]);
      61           0 : }
      62             : 
      63             : //_________________________________________________________________________
      64             : AliESDTOFHit & AliESDTOFHit::operator=(const AliESDTOFHit & source)
      65             : {
      66             :   // assignment op-r
      67             :   //
      68           0 :   if (this == &source) return *this;
      69           0 :   AliVTOFHit::operator=(source);
      70             :   //
      71           0 :   fTimeRaw = source.fTimeRaw;
      72           0 :   fTime = source.fTime;
      73           0 :   fTOT = source.fTOT;
      74           0 :   fL0L1Latency = source.fL0L1Latency;
      75           0 :   fDeltaBC = source.fDeltaBC;
      76           0 :   fTOFchannel = source.fTOFchannel;
      77           0 :   fZ = source.fZ;
      78           0 :   fR = source.fR;
      79           0 :   fPhi = source.fPhi;
      80           0 :   SetESDTOFClusterIndex(source.GetESDTOFClusterIndex());
      81           0 :   for (int i=3;i--;) fTOFLabel[i] = source.fTOFLabel[i];
      82             : 
      83           0 :   return *this;
      84           0 : }

Generated by: LCOV version 1.11