LCOV - code coverage report
Current view: top level - STEER/ESD - AliESDTZEROfriend.cxx (source / functions) Hit Total Coverage
Test: coverage.info Lines: 5 28 17.9 %
Date: 2016-06-14 17:26:59 Functions: 3 8 37.5 %

          Line data    Source code
       1             : /**************************************************************************
       2             :  * Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
       3             :  *                                                                        *
       4             :  * Author: The ALICE Off-line Project.                                    *
       5             :  * Contributors are mentioned in the code where appropriate.              *
       6             :  *                                                                        *
       7             :  * Permission to use, copy, modify and distribute this software and its   *
       8             :  * documentation strictly for non-commercial purposes is hereby granted   *
       9             :  * without fee, provided that the above copyright notice appears in all   *
      10             :  * copies and that both the copyright notice and this permission notice   *
      11             :  * appear in the supporting documentation. The authors make no claims     *
      12             :  * about the suitability of this software for any purpose. It is          *
      13             :  * provided "as is" without express or implied warranty.                  *
      14             :  **************************************************************************/
      15             : 
      16             : ///////////////////////////////////////////////////////////////////////////////
      17             : ///
      18             : /// This is a class for containing T0 time corrected by SPD vertex and amplitude
      19             : ///
      20             : ///////////////////////////////////////////////////////////////////////////////
      21             : 
      22             : #include "AliESDTZEROfriend.h"
      23             : 
      24         172 : ClassImp(AliESDTZEROfriend)
      25             : 
      26             : //_____________________________________________________________________________
      27             : AliESDTZEROfriend::AliESDTZEROfriend():
      28           4 :   TObject()
      29          20 : {
      30         200 :   for(int i = 0;i<24;i++)fT0time[i] = fT0ampQTC[i] = fT0ampLEDminCFD[i] = 0;
      31           8 : } 
      32             : AliESDTZEROfriend::AliESDTZEROfriend(const AliESDTZEROfriend &tzero ) :
      33           0 :   TObject(tzero)
      34           0 : {
      35             :   // copy constuctor
      36           0 :   for(int i = 0;i<24;i++){
      37           0 :     fT0time[i] = tzero.fT0time[i]; 
      38           0 :     fT0ampQTC[i] = tzero.fT0ampQTC[i];
      39           0 :     fT0ampLEDminCFD[i] = tzero.fT0ampLEDminCFD[i];
      40             :   }
      41           0 : }
      42             : 
      43             : AliESDTZEROfriend& AliESDTZEROfriend::operator=(const AliESDTZEROfriend& tzero){
      44             :   // assigmnent operator
      45           0 :   if(this!=&tzero) {
      46           0 :     TObject::operator=(tzero);
      47           0 :     for(int i = 0;i<24;i++){
      48           0 :       fT0time[i] = tzero.fT0time[i]; 
      49           0 :       fT0ampQTC[i] = tzero.fT0ampQTC[i];
      50           0 :       fT0ampLEDminCFD[i] = tzero.fT0ampLEDminCFD[i];
      51             :     }
      52           0 :   } 
      53           0 :   return *this;
      54             : }
      55             : 
      56             : void AliESDTZEROfriend::Copy(TObject &obj) const {
      57             :   
      58             :   // this overwrites the virtual TOBject::Copy()
      59             :   // to allow run time copying without casting
      60             :   // in AliESDEvent
      61             : 
      62           0 :   if(this==&obj)return;
      63           0 :   AliESDTZEROfriend *robj = dynamic_cast<AliESDTZEROfriend*>(&obj);
      64           0 :   if(!robj)return; // not an AliESDTZEROfriend
      65           0 :   *robj = *this;
      66             : 
      67           0 : }
      68             : void AliESDTZEROfriend::Reset()
      69             : {
      70             :   // Reset the contents of the object
      71           0 :     for(int i = 0;i<24;i++)
      72           0 :       fT0time[i]= fT0ampQTC[i] = fT0ampLEDminCFD[i] =0 ;
      73             :     
      74           0 : }
      75             : 
      76             : 

Generated by: LCOV version 1.11