LCOV - code coverage report
Current view: top level - EMCAL/EMCALTriggerBase - AliEMCALTriggerRawPatch.cxx (source / functions) Hit Total Coverage
Test: coverage.info Lines: 1 25 4.0 %
Date: 2016-06-14 17:26:59 Functions: 1 9 11.1 %

          Line data    Source code
       1             : /**
       2             :  * @file AliEMCALTriggerRawPatch.cxx
       3             :  * @since Oct 23, 2015
       4             :  * @author Markus Fasel <markus.fasel@cern.ch>, Lawrence Berkeley National Laboratory
       5             :  */
       6             : /**************************************************************************
       7             :  * Copyright(c) 1998-2015, ALICE Experiment at CERN, All rights reserved. *
       8             :  *                                                                        *
       9             :  * Author: The ALICE Off-line Project.                                    *
      10             :  * Contributors are mentioned in the code where appropriate.              *
      11             :  *                                                                        *
      12             :  * Permission to use, copy, modify and distribute this software and its   *
      13             :  * documentation strictly for non-commercial purposes is hereby granted   *
      14             :  * without fee, provided that the above copyright notice appears in all   *
      15             :  * copies and that both the copyright notice and this permission notice   *
      16             :  * appear in the supporting documentation. The authors make no claims     *
      17             :  * about the suitability of this software for any purpose. It is          *
      18             :  * provided "as is" without express or implied warranty.                  *
      19             :  **************************************************************************/
      20             : #include "AliEMCALTriggerRawPatch.h"
      21             : #include <iostream>
      22             : 
      23             : /// \cond CLASSIMP
      24          22 : ClassImp(AliEMCALTriggerRawPatch)
      25             : /// \endcond
      26             : 
      27           0 : AliEMCALTriggerRawPatch::AliEMCALTriggerRawPatch():
      28           0 :   fBitMask(0),
      29           0 :   fCol0(-1),
      30           0 :   fRow0(-1),
      31           0 :   fSize(-1),
      32           0 :   fADC(0),
      33           0 :   fOfflineADC(0)
      34           0 : {
      35           0 : }
      36             : 
      37             : 
      38           0 : AliEMCALTriggerRawPatch::AliEMCALTriggerRawPatch(Int_t col0, Int_t row0, Int_t size, Double_t adc, Double_t offlineADC):
      39           0 :   fBitMask(0),
      40           0 :   fCol0(col0),
      41           0 :   fRow0(row0),
      42           0 :   fSize(size),
      43           0 :   fADC(adc),
      44           0 :   fOfflineADC(offlineADC)
      45           0 : {
      46           0 : }
      47             : 
      48             : void AliEMCALTriggerRawPatch::PrintStream(std::ostream &stream) const {
      49           0 :   stream << "Patch: Col[" << fCol0 << "], Row[" << fRow0 << "] with size " << fSize << " and ADC " << fADC;
      50           0 : }
      51             : 
      52             : bool AliEMCALTriggerRawPatch::operator ==(const AliEMCALTriggerRawPatch &other) const {
      53           0 :   return fRow0 == other.fRow0 && fCol0 == other.fCol0 && fBitMask == other.fBitMask;
      54             : }
      55             : 
      56             : bool AliEMCALTriggerRawPatch::operator <(const AliEMCALTriggerRawPatch &other) const {
      57           0 :   return fADC < other.fADC;
      58             : }
      59             : 
      60             : std::ostream &operator<<(std::ostream &stream, const AliEMCALTriggerRawPatch &patch){
      61           0 :   patch.PrintStream(stream);
      62           0 :   return stream;
      63             : }

Generated by: LCOV version 1.11