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

          Line data    Source code
       1             : 
       2             : 
       3             : // Last update: October 2th 2009 
       4             : 
       5             : #include "AliESDACORDE.h"
       6             : 
       7         172 : ClassImp(AliESDACORDE)
       8             : 
       9          53 : AliESDACORDE::AliESDACORDE():TObject()
      10         265 : {
      11             :  //Default constructor
      12        6466 :         for(Int_t i=0;i<60;i++)
      13             :         {
      14        3180 :                 fACORDEBitPattern[i] = 0;
      15             :         }
      16         106 : }
      17             : 
      18             : 
      19             : AliESDACORDE::AliESDACORDE(const AliESDACORDE &o)
      20           0 :   :TObject(o)
      21             : 
      22           0 : {       
      23             :         //Default constructor
      24           0 :         for(Int_t i=0;i<60;i++)
      25             :         {
      26           0 :                 fACORDEBitPattern[i] = o.fACORDEBitPattern[i];
      27             :         }
      28           0 : }
      29             : 
      30             : 
      31           0 : AliESDACORDE::AliESDACORDE(Bool_t* MACORDEBitPattern):TObject()
      32           0 : {
      33             : 
      34             :         //Constructor
      35             : 
      36           0 :         for(Int_t i=0;i<60;i++)
      37             :         {
      38           0 :                 fACORDEBitPattern[i] = MACORDEBitPattern[i];
      39             :         }
      40           0 : }
      41             : 
      42             : AliESDACORDE& AliESDACORDE::operator=(const AliESDACORDE& o)
      43             : {
      44             : // Copy Constructor
      45          20 :         if(this==&o)return *this;
      46          10 :         TObject::operator=(o);
      47             : 
      48             :         // Assignment operator
      49        1220 :         for(Int_t i=0; i<60; i++)
      50             :         {
      51         600 :                 fACORDEBitPattern[i] = o.fACORDEBitPattern[i];
      52             :         }
      53             :         
      54          10 :         return *this;
      55          10 : }
      56             : 
      57             : 
      58             : Bool_t AliESDACORDE::GetHitChannel(Int_t i) const
      59             : {
      60           0 :         return fACORDEBitPattern[i];
      61             : }
      62             : 
      63             : void AliESDACORDE::Copy(TObject &obj) const {
      64             :   
      65             :   // this overwrites the virtual TOBject::Copy()
      66             :   // to allow run time copying without casting
      67             :   // in AliESDEvent
      68             : 
      69           4 :   if(this==&obj)return;
      70           6 :   AliESDACORDE *robj = dynamic_cast<AliESDACORDE*>(&obj);
      71           2 :   if(!robj)return; // not an AliESDACRDE
      72           2 :   *robj = *this;
      73             : 
      74           4 : }
      75             : 
      76             : 

Generated by: LCOV version 1.11