LCOV - code coverage report
Current view: top level - ITS/ITSrec - AliITSOnlineSPDHitEvent.cxx (source / functions) Hit Total Coverage
Test: coverage.info Lines: 1 22 4.5 %
Date: 2016-06-14 17:26:59 Functions: 1 7 14.3 %

          Line data    Source code
       1             : /////////////////////////////////////////////////////////////////
       2             : // Author: Henrik Tydesjo                                      //
       3             : // This class is used as a container online.                   //
       4             : // One object for each half stave and step in a scan. It keeps //
       5             : // the nr of events with at least one pixel hit in each chip.  //
       6             : // It also keeps the value for the all the 10 chips together.  //
       7             : // This class should only be used through the interface of the //
       8             : // AliITSOnlineSPDscan class.                                  //
       9             : /////////////////////////////////////////////////////////////////
      10             : 
      11             : #include "AliITSOnlineSPDHitEvent.h"
      12             : 
      13         116 : ClassImp(AliITSOnlineSPDHitEvent)
      14             : 
      15           0 : AliITSOnlineSPDHitEvent::AliITSOnlineSPDHitEvent(){
      16             :   // constructor, sets the nr of events hit for each chip to 0
      17           0 :   for (Int_t i=0; i<11; i++) {
      18           0 :     fHitEvent[i]=0;
      19             :   }
      20           0 : }
      21             : 
      22             : AliITSOnlineSPDHitEvent* AliITSOnlineSPDHitEvent::CloneThis() const {
      23             :   // makes a copy of this object and returns it
      24           0 :   AliITSOnlineSPDHitEvent* returnpointer = new AliITSOnlineSPDHitEvent();
      25           0 :   for (Int_t i=0; i<11; i++) {
      26           0 :     returnpointer->SetHitEvent(i,fHitEvent[i]);
      27             :   }
      28           0 :   return returnpointer;
      29           0 : }
      30             : 
      31             : void   AliITSOnlineSPDHitEvent::IncrementHitEvent(UInt_t chip) {
      32             :   // increment the nr of hit events for chip 'chip'
      33           0 :   if (chip<=10) {
      34           0 :     fHitEvent[chip]++;
      35           0 :   }
      36           0 : }
      37             : void   AliITSOnlineSPDHitEvent::SetHitEvent(UInt_t chip, UInt_t events) {
      38             :   // set the nr of hit events for chip 'chip'
      39           0 :   if (chip<=10) {
      40           0 :     fHitEvent[chip] = events;
      41           0 :   }
      42           0 : }
      43             : UInt_t AliITSOnlineSPDHitEvent::GetHitEvent(UInt_t chip) const {
      44             :   // get the nr of hit events for chip 'chip'
      45           0 :   if (chip<=10) {
      46           0 :     return fHitEvent[chip];
      47             :   }
      48             :   else {
      49           0 :     return 0;
      50             :   }
      51           0 : }

Generated by: LCOV version 1.11