FairRoot
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
FairOnlineSource.cxx
Go to the documentation of this file.
1 /********************************************************************************
2  * Copyright (C) 2014 GSI Helmholtzzentrum fuer Schwerionenforschung GmbH *
3  * *
4  * This software is distributed under the terms of the *
5  * GNU Lesser General Public Licence (LGPL) version 3, *
6  * copied verbatim in the file "LICENSE" *
7  ********************************************************************************/
8 // -----------------------------------------------------------------------------
9 // ----- -----
10 // ----- FairOnlineSource -----
11 // ----- Created 12.04.2013 by D.Kresan -----
12 // ----- Copied from FairSource 01.11.2013 by F.Uhlig -----
13 // ----- -----
14 // -----------------------------------------------------------------------------
15 
16 #include "FairOnlineSource.h"
17 
18 #include "FairLogger.h"
19 
21  : FairSource()
22  , fUnpackers(new TObjArray())
23 {}
24 
26  : FairSource(source)
27  , fUnpackers(new TObjArray(*(source.GetUnpackers())))
28 {}
29 
31 {
32  fUnpackers->Delete();
33  delete fUnpackers;
34 }
35 
37 {
38  for (Int_t i = 0; i < fUnpackers->GetEntriesFast(); i++) {
39  if (!((FairUnpack *)fUnpackers->At(i))->Init()) {
40  return kFALSE;
41  }
42  }
43  return kTRUE;
44 }
45 
47 {
48  for (Int_t i = 0; i < fUnpackers->GetEntriesFast(); i++) {
49  if (!((FairUnpack *)fUnpackers->At(i))->ReInit()) {
50  return kFALSE;
51  }
52  }
53  return kTRUE;
54 }
55 
57 {
58  for (Int_t i = 0; i < fUnpackers->GetEntriesFast(); i++) {
59  ((FairUnpack *)fUnpackers->At(i))->SetParContainers();
60  }
61 }
62 
64 {
65  for (Int_t i = 0; i < fUnpackers->GetEntriesFast(); i++) {
66  ((FairUnpack *)fUnpackers->At(i))->Reset();
67  }
68 }
69 
ClassImp(FairEventBuilder)
virtual Bool_t InitUnpackers()
virtual ~FairOnlineSource()
TObjArray * fUnpackers
virtual Bool_t ReInitUnpackers()
virtual Bool_t Init()=0
virtual void SetParUnpackers()