LCOV - code coverage report
Current view: top level - EMCAL/EMCALsim - AliEMCALTriggerPatch.h (source / functions) Hit Total Coverage
Test: coverage.info Lines: 5 11 45.5 %
Date: 2016-06-14 17:26:59 Functions: 5 15 33.3 %

          Line data    Source code
       1             : #ifndef ALIEMCALTRIGGERPATCH_H
       2             : #define ALIEMCALTRIGGERPATCH_H
       3             : /* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
       4             :  * See cxx source for full Copyright notice                               */
       5             : 
       6             : /*
       7             :  
       8             : Author: R. GUERNANE LPSC Grenoble CNRS/IN2P3
       9             : */
      10             : 
      11             : #ifndef ROOT_TObject
      12             : #  include "TObject.h"
      13             : #endif
      14             : #include "TVector2.h"
      15             : 
      16             : class TArrayI;
      17             : 
      18             : class AliEMCALTriggerPatch : public TObject {
      19             : 
      20             : public:
      21             :                   AliEMCALTriggerPatch();                                  // default ctor
      22             :                   AliEMCALTriggerPatch(const AliEMCALTriggerPatch& other); // copy ctor
      23             :               AliEMCALTriggerPatch(Int_t i, Int_t j, Int_t e = 0, Int_t t = 0);
      24             :          virtual ~AliEMCALTriggerPatch();
      25             : 
      26          68 :         void      SetPosition(Int_t px, Int_t py)  {fPosition->Set(float(px), float(py));}
      27           0 :         void      SetPosition(const TVector2& pos) {*fPosition = pos;}
      28           0 :         void      SetSum(Int_t sum) {fSum = sum;}
      29           0 :         void      SetTime(Int_t time) {fTime = time;}
      30             :         void      SetPeak(Int_t x, Int_t y, Int_t sizeX, Int_t sizeY);
      31             : 
      32           0 :         void      Position(TVector2& pos       ) const {pos = *fPosition;}
      33         464 :         void      Position(Int_t& px, Int_t& py) const {px = (Int_t)fPosition->X(); py = (Int_t)fPosition->Y();}
      34           0 :         TVector2* Position(                    ) const {return fPosition;}
      35           0 :         Int_t     Sum()   const {return fSum;} // in ADC counts
      36         150 :         Int_t     Time()  const {return fTime;}
      37         128 :         Int_t     Peaks() const {return fPeaks;}
      38             :         
      39             :         void      Print(const Option_t*) const;
      40             :         
      41             : private:
      42             :         
      43             :         AliEMCALTriggerPatch& operator=(const AliEMCALTriggerPatch& other); // Not implemented
      44             :         
      45             :         TVector2*         fPosition; // Position
      46             :         Int_t             fSum;      // Amplitude
      47             :         Int_t             fTime;     // Time
      48             :         Int_t             fPeaks;    // Peaks (L0 only)
      49             :         
      50          42 :         ClassDef(AliEMCALTriggerPatch,1)
      51             : };
      52             : 
      53             : #endif

Generated by: LCOV version 1.11