LCOV - code coverage report
Current view: top level - RAW/MDC - AliTagNullDB.cxx (source / functions) Hit Total Coverage
Test: coverage.info Lines: 1 12 8.3 %
Date: 2016-06-14 17:26:59 Functions: 1 5 20.0 %

          Line data    Source code
       1             : // @(#) $Id$
       2             : // Author: Fons Rademakers  26/11/99
       3             : 
       4             : /**************************************************************************
       5             :  * Copyright(c) 1998-2003, ALICE Experiment at CERN, All rights reserved. *
       6             :  *                                                                        *
       7             :  * Author: The ALICE Off-line Project.                                    *
       8             :  * Contributors are mentioned in the code where appropriate.              *
       9             :  *                                                                        *
      10             :  * Permission to use, copy, modify and distribute this software and its   *
      11             :  * documentation strictly for non-commercial purposes is hereby granted   *
      12             :  * without fee, provided that the above copyright notice appears in all   *
      13             :  * copies and that both the copyright notice and this permission notice   *
      14             :  * appear in the supporting documentation. The authors make no claims     *
      15             :  * about the suitability of this software for any purpose. It is          *
      16             :  * provided "as is" without express or implied warranty.                  *
      17             :  **************************************************************************/
      18             : 
      19             : //////////////////////////////////////////////////////////////////////////
      20             : //                                                                      //
      21             : // AliTagNullDB                                                         //
      22             : //                                                                      //
      23             : //////////////////////////////////////////////////////////////////////////
      24             : 
      25             : #include "AliTagNullDB.h"
      26             : 
      27             : 
      28           2 : ClassImp(AliTagNullDB)
      29             : 
      30             : 
      31             : //______________________________________________________________________________
      32             : AliTagNullDB::AliTagNullDB(AliRawEventTag *eventTag) :
      33           0 :    AliTagDB(eventTag, "/dev/null")
      34           0 : {
      35             :    // Create tag db writing to /dev/null.
      36             : 
      37           0 : }
      38             : 
      39             : //______________________________________________________________________________
      40             : const char *AliTagNullDB::GetFileName() const
      41             : {
      42             :    // Return /dev/null as filename.
      43             : 
      44           0 :    return "/dev/null";
      45             : }
      46             : 
      47             : //______________________________________________________________________________
      48             : void AliTagNullDB::Close()
      49             : {
      50             :    // Close null tag DB.
      51             : 
      52           0 :    if (!fTagDB) return;
      53             : 
      54           0 :    fTagDB->cd();
      55             : 
      56             :    // Write the tree.
      57           0 :    fTree->Write();
      58             : 
      59             :    // Close DB, this also deletes the fTree
      60           0 :    fTagDB->Close();
      61             : 
      62           0 :    delete fTagDB;
      63           0 :    fTagDB = 0;
      64           0 : }

Generated by: LCOV version 1.11