LCOV - code coverage report
Current view: top level - MUON/MUONshuttle - AliMUONVSubprocessor.cxx (source / functions) Hit Total Coverage
Test: coverage.info Lines: 1 19 5.3 %
Date: 2016-06-14 17:26:59 Functions: 1 7 14.3 %

          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             : #include "TObjArray.h"
      19             : #include "AliDCSValue.h"
      20             : #include "AliMUONVSubprocessor.h"
      21             : 
      22             : //-----------------------------------------------------------------------------
      23             : /// \class AliMUONVSubprocessor
      24             : ///
      25             : /// Base class for a shuttle sub-task for MUON (either TRK or TRG)
      26             : ///
      27             : /// It allows to organize more cleanly the various calibration tasks
      28             : /// to be performed within the MUON shuttle's preprocessors
      29             : ///
      30             : /// \author Laurent Aphecetche
      31             : //-----------------------------------------------------------------------------
      32             : 
      33             : /// \cond CLASSIMP
      34          12 : ClassImp(AliMUONVSubprocessor)
      35             : /// \endcond
      36             : 
      37             : //_____________________________________________________________________________
      38             : AliMUONVSubprocessor::AliMUONVSubprocessor(AliMUONPreprocessor* master,
      39             :                                            const char* name,
      40             :                                            const char* title)
      41           0 :   : TNamed(name,title), fMaster(master),
      42           0 :     fStartTime(0),
      43           0 :     fEndTime(0)
      44           0 : {
      45             :   /// ctor
      46           0 : }
      47             : 
      48             : //_____________________________________________________________________________
      49             : AliMUONVSubprocessor::~AliMUONVSubprocessor()
      50           0 : {
      51             :   /// dtor
      52           0 : }
      53             : 
      54             : //_____________________________________________________________________________
      55             : Bool_t
      56             : AliMUONVSubprocessor::Initialize(Int_t /*run*/, 
      57             :                                  UInt_t startTime, 
      58             :                                  UInt_t endTime)
      59             : {
      60             :   /// optional
      61           0 :   fStartTime = startTime; // time_created
      62           0 :   fEndTime = endTime; // time_completed
      63           0 :   return kTRUE;
      64             : }
      65             : 
      66             : //_____________________________________________________________________________
      67             : Bool_t
      68             : AliMUONVSubprocessor::RemoveValuesOutsideRun(TObjArray* values)
      69             : {
      70             :   /// Remove values outside run time limits
      71             : 
      72           0 :   TIter next(values);
      73             :   AliDCSValue* val = 0x0;
      74             : 
      75             :   Bool_t removedValues = kFALSE;
      76             :         
      77           0 :   while ( ( val = static_cast<AliDCSValue*>(next()) ) )
      78             :   {
      79           0 :     if ( val->GetTimeStamp() < fStartTime || val->GetTimeStamp() > fEndTime ) {
      80           0 :       values->Remove(val);
      81             :       removedValues = kTRUE;
      82           0 :     }
      83             :   }
      84           0 :   values->Compress();
      85             : 
      86           0 :   return removedValues;
      87           0 : }
      88             : 

Generated by: LCOV version 1.11