1 /**************************************************************************
2 * Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
4 * Author: The ALICE Off-line Project. *
5 * Contributors are mentioned in the code where appropriate. *
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 **************************************************************************/
18 #include "TObjArray.h"
19 #include "AliDCSValue.h"
20 #include "AliMUONVSubprocessor.h"
22 //-----------------------------------------------------------------------------
23 /// \class AliMUONVSubprocessor
25 /// Base class for a shuttle sub-task for MUON (either TRK or TRG)
27 /// It allows to organize more cleanly the various calibration tasks
28 /// to be performed within the MUON shuttle's preprocessors
30 /// \author Laurent Aphecetche
31 //-----------------------------------------------------------------------------
34 ClassImp(AliMUONVSubprocessor)
37 //_____________________________________________________________________________
38 AliMUONVSubprocessor::AliMUONVSubprocessor(AliMUONPreprocessor* master,
41 : TNamed(name,title), fMaster(master),
48 //_____________________________________________________________________________
49 AliMUONVSubprocessor::~AliMUONVSubprocessor()
54 //_____________________________________________________________________________
56 AliMUONVSubprocessor::Initialize(Int_t /*run*/,
61 fStartTime = startTime; // time_created
62 fEndTime = endTime; // time_completed
66 //_____________________________________________________________________________
68 AliMUONVSubprocessor::RemoveValuesOutsideRun(TObjArray* values)
70 /// Remove values outside run time limits
73 AliDCSValue* val = 0x0;
75 Bool_t removedValues = kFALSE;
77 while ( ( val = static_cast<AliDCSValue*>(next()) ) )
79 if ( val->GetTimeStamp() < fStartTime || val->GetTimeStamp() > fEndTime ) {
81 removedValues = kTRUE;