AliRoot Core  v5-06-15 (45dab64)
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
AliMUONVSubprocessor.cxx
Go to the documentation of this file.
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 //-----------------------------------------------------------------------------
31 //-----------------------------------------------------------------------------
32 
36 
37 //_____________________________________________________________________________
39  const char* name,
40  const char* title)
41  : TNamed(name,title), fMaster(master),
42  fStartTime(0),
43  fEndTime(0)
44 {
46 }
47 
48 //_____________________________________________________________________________
50 {
52 }
53 
54 //_____________________________________________________________________________
55 Bool_t
57  UInt_t startTime,
58  UInt_t endTime)
59 {
61  fStartTime = startTime; // time_created
62  fEndTime = endTime; // time_completed
63  return kTRUE;
64 }
65 
66 //_____________________________________________________________________________
67 Bool_t
69 {
71 
72  TIter next(values);
73  AliDCSValue* val = 0x0;
74 
75  Bool_t removedValues = kFALSE;
76 
77  while ( ( val = static_cast<AliDCSValue*>(next()) ) )
78  {
79  if ( val->GetTimeStamp() < fStartTime || val->GetTimeStamp() > fEndTime ) {
80  values->Remove(val);
81  removedValues = kTRUE;
82  }
83  }
84  values->Compress();
85 
86  return removedValues;
87 }
88 
UInt_t fEndTime
End time of run.
#define TObjArray
UInt_t fStartTime
Start time of run.
ClassImp(TPCGenInfo)
Definition: AliTPCCmpNG.C:254
Bool_t RemoveValuesOutsideRun(TObjArray *values)
virtual Bool_t Initialize(Int_t run, UInt_t startTime, UInt_t endTime)
Base class for a shuttle sub-task for MUON (either TRK or TRG)
TTimeStamp startTime(2009, 8, 7, 0, 0, 0)
Shuttle preprocessor for MUON subsystems (TRK and TRG)