LCOV - code coverage report
Current view: top level - MUON/MUONsim - AliMUONVHitStore.cxx (source / functions) Hit Total Coverage
Test: coverage.info Lines: 6 16 37.5 %
Date: 2016-06-14 17:26:59 Functions: 4 7 57.1 %

          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 AliMUONVHitStore
      20             : ///
      21             : /// Base class of a MUON hit store
      22             : ///
      23             : /// \author Laurent Aphecetche, Subatech
      24             : ///
      25             : //-----------------------------------------------------------------------------
      26             : 
      27             : #include "AliMUONVHitStore.h"
      28             : #include "AliMUONHit.h"
      29             : #include "AliLog.h"
      30             : 
      31             : /// \cond CLASSIMP
      32          16 : ClassImp(AliMUONVHitStore)
      33             : /// \endcond
      34             : 
      35             : //_____________________________________________________________________________
      36           5 : AliMUONVHitStore::AliMUONVHitStore()
      37          15 : {
      38             :   /// ctor
      39           5 : }
      40             : 
      41             : //_____________________________________________________________________________
      42             : AliMUONVHitStore::~AliMUONVHitStore()
      43           0 : {
      44             :   /// dtor
      45          10 : }
      46             : 
      47             : //_____________________________________________________________________________
      48             : Bool_t
      49             : AliMUONVHitStore::Add(TObject* object)
      50             : {
      51             :   /// Add an object, if of the right type
      52           0 :   if (object)
      53             :   {
      54           0 :     AliMUONHit* hit = dynamic_cast<AliMUONHit*>(object);
      55           0 :     if (hit)
      56             :     {
      57           0 :       Add(*hit);
      58           0 :       return kTRUE;
      59             :     }
      60             :     else
      61             :     {
      62           0 :       AliError(Form("object not of expected AliMUONHit type but %s",object->ClassName()));
      63             :     }
      64           0 :   }
      65           0 :   return kFALSE;
      66           0 : }
      67             : 
      68             : //_____________________________________________________________________________
      69             : AliMUONVHitStore*
      70             : AliMUONVHitStore::Create(TTree& tree)
      71             : {
      72             :   /// Create a VHitStore from the tree (if possible)
      73           8 :   return static_cast<AliMUONVHitStore*>(AliMUONVStore::Create(tree,"Hit"));
      74             : }

Generated by: LCOV version 1.11