GammaWare  Head Version for release 0.9
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
MFM2ADF.h
Go to the documentation of this file.
1 /***************************************************************************
2  * Copyright (C) 2004 by Olivier Stezowski *
3  * stezow(AT)ipnl.in2p3.fr *
4  * *
5  * This program is free software; you can redistribute it and/or modify *
6  * it under the terms of the GNU General Public License as published by *
7  * the Free Software Foundation; either version 2 of the License, or *
8  * (at your option) any later version. *
9  * *
10  * This program is distributed in the hope that it will be useful, *
11  * but WITHOUT ANY WARRANTY; without even the implied warranty of *
12  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
13  * GNU General Public License for more details. *
14  * *
15  * You should have received a copy of the GNU General Public License *
16  * along with this program; if not, write to the *
17  * Free Software Foundation, Inc., *
18  * 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. *
19  ***************************************************************************/
20 
23 #ifndef _MFM2ADF
24 #define _MFM2ADF
25 
26 #include "NarvalInterface.h"
27 #include "FrameBlock.h"
28 #include "Trigger.h"
29 #include "BufferIO.h"
30 
31 #include <list>
32 #include <utility>
33 
34 class MFMCommonFrame;
35 
37 
41 {
42 private:
43 
44 private:
46  Int_t fCurrentFile;
48  UInt_t fCurrentFileNumber;
50  std::vector < std::string > fFiles2Read;
51 
52 private:
54  MFMCommonFrame *fMFMFrame;
56  Char_t *fMFMVector;
57 
59  ADF::BufferIO fBufferIO;
60 
61 private:
63  ULong64_t fTotBytesRead;
65  ULong64_t fEventsRead;
66 
67 protected:
68  Bool_t NewFile();
69 
70 public:
71  MFM2ADF();
72  virtual ~MFM2ADF();
73 
75  static void process_config (const Char_t *, UInt_t *) ;
76 
78  virtual void process_initialise (UInt_t *error_code);
79 
81  virtual void process_reset (UInt_t *error_code);
82 
84  virtual UInt_t ProcessBlock (ADF::FrameBlock &) ;
85 };
86 
87 #endif
virtual UInt_t ProcessBlock(ADF::FrameBlock &)
Produce one block of data.
header file for FrameBlock.cpp
It defines the interface needed to be a narval actor (producer).
A Block of Frames.
Definition: FrameBlock.h:43
static void process_config(const Char_t *, UInt_t *)
to init globals (static) from a directory
virtual void process_initialise(UInt_t *error_code)
Constructor implementation.
header file for Trigger.cpp
virtual ~MFM2ADF()
header file for BufferIO.cpp
virtual void process_reset(UInt_t *error_code)
Destructor implementation.
Bool_t NewFile()
header file for NarvalInterface.cpp
MFM2ADF.
Definition: MFM2ADF.h:40