LCOV - code coverage report
Current view: top level - MUON/MUONtrigger - AliMUONTriggerCrate.cxx (source / functions) Hit Total Coverage
Test: coverage.info Lines: 15 22 68.2 %
Date: 2016-06-14 17:26:59 Functions: 7 9 77.8 %

          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             : /// \class AliMUONTriggerCrate
      20             : ///  Collection of trigger boards
      21             : ///  - one regional
      22             : ///  - sixteen local
      23             : ///  slot 0 holds the regional board
      24             : /// \author Rachid Guernane (LPCCFd)
      25             : //-----------------------------------------------------------------------------
      26             : 
      27             : #include <TObjArray.h>
      28             : 
      29             : #include "AliMUONTriggerBoard.h"
      30             : #include "AliMUONTriggerCrate.h"
      31             : 
      32          18 : ClassImp(AliMUONTriggerCrate)
      33             : 
      34             : //___________________________________________
      35           0 : AliMUONTriggerCrate::AliMUONTriggerCrate()
      36           0 :     : fNslots(0),
      37           0 :       fNboards(0),
      38           0 :       fBoards(0x0),
      39           0 :       fSourceFileName(0)    
      40           0 : {
      41             : /// Default constructor
      42           0 : }
      43             : 
      44             : //___________________________________________
      45             : AliMUONTriggerCrate::~AliMUONTriggerCrate()
      46         576 : {
      47             : /// Destructor
      48             : 
      49         192 :   delete fBoards;
      50         288 : }
      51             : 
      52             : //___________________________________________
      53             : AliMUONTriggerCrate::AliMUONTriggerCrate(const char *name, Int_t n) : 
      54          96 :     TNamed(name,"Regional trigger crate"),
      55          96 :     fNslots(n),
      56          96 :     fNboards(0),
      57         288 :     fBoards(new TObjArray(fNslots)),
      58          96 :     fSourceFileName(0)
      59         480 : {
      60             :   /// Standard constructor
      61          96 :   fBoards->SetOwner(kTRUE);
      62         192 : }
      63             : 
      64             : //___________________________________________
      65             : void AliMUONTriggerCrate::AddBoard(AliMUONTriggerBoard *board, Int_t i)
      66             : {
      67             : /// Add board in crate container
      68        3096 :    fBoards->AddAt(board,i);
      69        1548 :    fNboards++;
      70        1548 : }
      71             : 

Generated by: LCOV version 1.11