LCOV - code coverage report
Current view: top level - EMCAL/EMCALraw - AliCaloFitSubarray.cxx (source / functions) Hit Total Coverage
Test: coverage.info Lines: 8 24 33.3 %
Date: 2016-06-14 17:26:59 Functions: 4 10 40.0 %

          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             : /* $Id: $ */
      17             : 
      18             : #include "AliCaloFitSubarray.h"
      19             : 
      20             : 
      21             : // Container class to hold info from bunches/samples
      22             : // selected for signal fitting.
      23             : // Variables are:
      24             : //  Int_t   fBunchIndex;  // Index for selected bunch
      25             : //  Int_t   fMaxRev;      // Max index in reversed array
      26             : //  Int_t   fFirst;   // first index in array used for fit
      27             : //  Int_t   fLast;    // last index in array used for fit
      28             : 
      29             : AliCaloFitSubarray::AliCaloFitSubarray(const Int_t bunchIndex, 
      30             :                                        const Int_t maxrev, 
      31             :                                        const Int_t first, 
      32             :                                        const Int_t last ) : 
      33           0 :   fBunchIndex(bunchIndex),
      34           0 :   fMaxRev(maxrev), 
      35           0 :   fFirst(first), 
      36           0 :   fLast(last)   
      37           0 : {
      38           0 : }
      39             : 
      40             : AliCaloFitSubarray::AliCaloFitSubarray(const Int_t init) : 
      41          58 :   fBunchIndex(init),
      42          58 :   fMaxRev(init), 
      43          58 :   fFirst(init), 
      44          58 :   fLast(init)   
      45         232 : {
      46         116 : }
      47             : 
      48             : AliCaloFitSubarray::AliCaloFitSubarray(const AliCaloFitSubarray & fitS) :
      49           0 :   fBunchIndex( fitS.fBunchIndex ),
      50           0 :   fMaxRev( fitS.fMaxRev ), 
      51           0 :   fFirst( fitS.fFirst ), 
      52           0 :   fLast( fitS.fLast )   
      53           0 : {
      54           0 : }
      55             : 
      56             : //_____________________________________________________________________
      57             : AliCaloFitSubarray& AliCaloFitSubarray::operator = (const AliCaloFitSubarray &source)
      58             : { // assignment operator; use copy ctor
      59           0 :   if (&source == this) return *this;
      60             : 
      61           0 :   new (this) AliCaloFitSubarray(source);
      62           0 :   return *this;
      63           0 : }
      64             : 
      65             : AliCaloFitSubarray::~AliCaloFitSubarray()
      66         116 : {
      67         174 : }
      68             : 

Generated by: LCOV version 1.11