LCOV - code coverage report
Current view: top level - MUON/MUONtrigger - AliMUONRegionalTrigger.cxx (source / functions) Hit Total Coverage
Test: coverage.info Lines: 18 34 52.9 %
Date: 2016-06-14 17:26:59 Functions: 8 10 80.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 <iostream>
      19             : 
      20             : #include "AliMUONRegionalTrigger.h"
      21             : #include "AliLog.h"
      22             : 
      23             : //-----------------------------------------------------------------------------
      24             : // Class AliMUONRegionalTrigger
      25             : // -----------------------------
      26             : // Regional Trigger algorithm data outputs
      27             : // Author:  Ch. Finck
      28             : //-----------------------------------------------------------------------------
      29             : 
      30             : using std::endl;
      31             : using std::cout;
      32             : /// \cond CLASSIMP
      33          18 : ClassImp(AliMUONRegionalTrigger)
      34             : /// \endcond
      35             : 
      36             : //----------------------------------------------------------------------
      37             : AliMUONRegionalTrigger::AliMUONRegionalTrigger()
      38         872 :   : TObject(), 
      39         872 :     fId(0),
      40         872 :     fLocalMask(0),
      41         872 :     fOutput(0)
      42        4360 : {
      43             : /// Default constructor
      44         872 :   fLocalOutput[0] = fLocalOutput[1] = 0;
      45             : 
      46        1744 : }
      47             : //----------------------------------------------------------------------
      48             : AliMUONRegionalTrigger::AliMUONRegionalTrigger(const AliMUONRegionalTrigger& theMUONRegionalTrig)
      49       11344 :   : TObject(theMUONRegionalTrig),
      50       11344 :     fId(theMUONRegionalTrig.fId),
      51       11344 :     fLocalMask(theMUONRegionalTrig.fLocalMask),  
      52       11344 :     fOutput(theMUONRegionalTrig.fOutput)           
      53       56720 : {
      54             : /// Copy constructor (useful for TClonesArray)
      55             : 
      56       11344 :   fLocalOutput[0] = theMUONRegionalTrig.fLocalOutput[0];
      57       11344 :   fLocalOutput[1] = theMUONRegionalTrig.fLocalOutput[1];
      58             :  
      59       22688 : }
      60             : //----------------------------------------------------------------------
      61             : AliMUONRegionalTrigger::~AliMUONRegionalTrigger()
      62        2518 : {
      63             : /// Destructor
      64        3227 : }
      65             : //----------------------------------------------------------------------
      66             : AliMUONRegionalTrigger& AliMUONRegionalTrigger::operator=(const AliMUONRegionalTrigger& theMUONRegionalTrig)
      67             : {
      68             : /// Assigment operator;
      69             : /// equal operator (useful for non-pointer member in TClonesArray)
      70             : 
      71           0 :   if (this == &theMUONRegionalTrig)
      72           0 :     return *this;
      73             : 
      74             :   // base class assignement
      75           0 :   TObject::operator=(theMUONRegionalTrig);
      76             : 
      77           0 :   fId             = theMUONRegionalTrig.fId;
      78           0 :   fLocalMask      = theMUONRegionalTrig.fLocalMask;   
      79           0 :   fLocalOutput[0] = theMUONRegionalTrig.fLocalOutput[0];
      80           0 :   fLocalOutput[1] = theMUONRegionalTrig.fLocalOutput[1];
      81           0 :   fOutput         = theMUONRegionalTrig.fOutput;           
      82             : 
      83           0 :   return *this;
      84           0 : }
      85             : 
      86             : 
      87             : 
      88             : //----------------------------------------------------------------------
      89             : void AliMUONRegionalTrigger::Print(Option_t* opt) const
      90             : {
      91             :   ///
      92             :   /// Printing Regional Trigger information
      93             :   ///
      94           0 :   TString sopt(opt);
      95           0 :   sopt.ToUpper();
      96             :  
      97           0 :   if ( sopt.Contains("FULL") ) { 
      98             : 
      99           0 :       printf("<AliMUONRegionalTrigger> Id %d localMask %d localOutputs %d %d output %d\n",
     100           0 :              fId, fLocalMask, fLocalOutput[0], fLocalOutput[1], fOutput);
     101             : 
     102             :   }
     103           0 : }
     104             : 

Generated by: LCOV version 1.11