LCOV - code coverage report
Current view: top level - STEER/STEERBase - AliLHCTag.cxx (source / functions) Hit Total Coverage
Test: coverage.info Lines: 13 42 31.0 %
Date: 2016-06-14 17:26:59 Functions: 5 10 50.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             : //-----------------------------------------------------------------
      19             : //           Implementation of the LHCTag class
      20             : //   This is the class to deal with the tags in the LHC level
      21             : //   Origin: Panos Christakoglou, UOA-CERN, Panos.Christakoglou@cern.ch
      22             : //-----------------------------------------------------------------
      23             : 
      24             : #include "AliLHCTag.h"
      25             : 
      26         176 : ClassImp(AliLHCTag)
      27             : 
      28             : //___________________________________________________________________________
      29             :   AliLHCTag::AliLHCTag() : 
      30           6 :     TObject(),  
      31           6 :     fLHCState(0),
      32           6 :     fLHCLuminosity(-10.),
      33           6 :     fNBunches(0),
      34           6 :     fFillingScheme(),
      35           6 :     fFillNo(-1),
      36           6 :     fBeamEnergy(-1.0),
      37           6 :     fBunchIntensity(0.0)
      38          30 : {
      39             :   // AliLHCTag default constructor
      40          12 : }
      41             : 
      42             : AliLHCTag::AliLHCTag(const AliLHCTag &tag):
      43           0 :   TObject(tag),
      44           0 :   fLHCState(tag.fLHCState),
      45           0 :   fLHCLuminosity(tag.fLHCLuminosity),
      46           0 :   fNBunches(tag.fNBunches),
      47           0 :   fFillingScheme(tag.fFillingScheme),
      48           0 :   fFillNo(tag.fFillNo),
      49           0 :   fBeamEnergy(tag.fBeamEnergy),
      50           0 :   fBunchIntensity(tag.fBunchIntensity)
      51           0 : {
      52           0 : }
      53             : 
      54             : AliLHCTag &AliLHCTag::operator=(const AliLHCTag &tag)
      55             : {
      56           0 :   if (this != &tag) {
      57           0 :     TObject::operator=(tag);
      58             : 
      59           0 :     TString state(tag.GetLHCState());
      60           0 :     SetLHCState(state);
      61           0 :     SetLuminosity(tag.GetLuminosity());
      62           0 :     SetNBunches(tag.GetNBunches());
      63           0 :     SetFillingScheme(tag.GetFillingScheme());
      64           0 :     SetFillNo(tag.GetFillNo());
      65           0 :     SetBeamEnergy(tag.GetBeamEnergy());
      66           0 :     SetBunchIntensity(tag.GetBunchIntensity());
      67           0 :   }
      68             : 
      69           0 :   return *this;
      70           0 : }
      71             : 
      72             : void AliLHCTag::UpdateFromRunTable(AliLHCTag &tag)
      73             : {
      74           0 :   SetNBunches(tag.GetNBunches());
      75           0 :   SetFillingScheme(tag.GetFillingScheme());
      76           0 :   SetFillNo(tag.GetFillNo());
      77           0 :   SetBeamEnergy(tag.GetBeamEnergy());
      78           0 :   SetBunchIntensity(tag.GetBunchIntensity());  
      79           0 : }
      80             : 
      81             : //___________________________________________________________________________
      82           8 : AliLHCTag::~AliLHCTag() {
      83             :   // AliEventTag destructor
      84           4 : }

Generated by: LCOV version 1.11