LCOV - code coverage report
Current view: top level - MUON/MUONrec - AliMUONVClusterStore.cxx (source / functions) Hit Total Coverage
Test: coverage.info Lines: 6 18 33.3 %
Date: 2016-06-14 17:26:59 Functions: 4 9 44.4 %

          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 AliMUONVClusterStore
      20             : ///
      21             : /// An interface of a cluster container
      22             : ///
      23             : /// The object stored are inherited from AliMUONVCluster
      24             : ///
      25             : /// \author Laurent Aphecetche, Subatech
      26             : //-----------------------------------------------------------------------------
      27             : 
      28             : #include "AliMUONVClusterStore.h"
      29             : #include "AliMUONVCluster.h"
      30             : 
      31             : /// \cond CLASSIMP
      32          18 : ClassImp(AliMUONVClusterStore)
      33             : /// \endcond
      34             : 
      35             : //_____________________________________________________________________________
      36           6 : AliMUONVClusterStore::AliMUONVClusterStore()
      37          18 : {
      38             :   /// ctor
      39           6 : }
      40             : 
      41             : //_____________________________________________________________________________
      42             : AliMUONVClusterStore::~AliMUONVClusterStore()
      43           0 : {
      44             :   /// dtor
      45          12 : }
      46             : 
      47             : //_____________________________________________________________________________
      48             : Bool_t
      49             : AliMUONVClusterStore::Add(TObject* object)
      50             : {
      51             :   /// Add an object, if it is of the right class
      52           0 :   AliMUONVCluster* cluster = dynamic_cast<AliMUONVCluster*>(object);
      53           0 :   if (cluster)
      54             :   {
      55           0 :     return (Add(*cluster)) ? kTRUE : kFALSE;
      56             :   }
      57           0 :   return kFALSE;
      58           0 : }
      59             : 
      60             : //_____________________________________________________________________________
      61             : AliMUONVClusterStore*
      62             : AliMUONVClusterStore::Create(TTree& tree)
      63             : {
      64             :   /// Create a VClusterStore from the tree
      65           4 :   return static_cast<AliMUONVClusterStore*>(AliMUONVStore::Create(tree,"Cluster"));
      66             : }
      67             : 
      68             : //______________________________________________________________________________
      69             : AliMUONVCluster* AliMUONVClusterStore::FindObject(const TObject *obj) const
      70             : {
      71             :   /// Find an object, if of AliMUONVCluster type
      72           0 :   const AliMUONVCluster* cluster = dynamic_cast<const AliMUONVCluster*>(obj);
      73           0 :   if (cluster)
      74           0 :     return static_cast<AliMUONVCluster*>(AliMUONVStore::FindObject(obj));
      75           0 :   return 0x0;
      76           0 : }
      77             : 
      78             : //_____________________________________________________________________________
      79             : AliMUONVCluster* AliMUONVClusterStore::FindObject(UInt_t uniqueID) const
      80             : {
      81             :   /// Find an object by its uniqueID (default is the same as in AliMUONVStore)
      82           0 :   return static_cast<AliMUONVCluster*>(AliMUONVStore::FindObject(uniqueID));
      83             : }
      84             : 

Generated by: LCOV version 1.11