GammaWare  Head Version for release 0.9
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
ExTracking.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 _ExTracking
24 #define _ExTracking
25 
26 #include "NarvalInterface.h"
27 #include "Trigger.h"
28 #include "GenericFrame.h"
29 #include "GObject.h"
30 #include "PSAFrame.h"
31 
32 #define MAX_CAPSULE 180
33 
35 
55 {
56 protected:
59 private:
61  std::vector < ADF::SharedFP * > fAllocatedPSAFrame;
62 protected:
64  std::vector < ADF::PSAInterface * > fCurrentPSA;
66  // Tracked frame to be filled
67 
68 protected:
70  virtual UInt_t SetInput();
72  virtual UInt_t Process();
74  virtual UInt_t SetOutput();
75 
76 public:
77  ExTracking();
78  virtual ~ExTracking();
79 
81  static void process_config (const Char_t *, UInt_t *) ;
82 
84  virtual void process_initialise (UInt_t *error_code);
85 
87  virtual void process_reset (UInt_t *error_code);
88 
90 
95  virtual UInt_t ProcessBlock(ADF::FrameBlock &, ADF::FrameBlock &);
96 };
97 
98 #endif
A Block of Frames.
Definition: FrameBlock.h:43
virtual UInt_t Process()
process this with the current conditions
Definition: ExTracking.C:148
virtual UInt_t SetInput()
read the data from the trigger and put them in local variable
Definition: ExTracking.C:68
virtual ~ExTracking()
Definition: ExTracking.C:62
header file for Trigger.cpp
header file for PSAFrame.cpp
std::vector< ADF::PSAInterface * > fCurrentPSA
Stack of PSAFrames for the current event.
Definition: ExTracking.h:64
To be used for Agata Data Flow.
Definition: Trigger.h:462
static void process_config(const Char_t *, UInt_t *)
to init globals (static) from a directory
Definition: ExTracking.C:130
ADF::AgataFrameTrigger * fTrigger
the trigger that exctracts from the data flow the current event and add the output frame ...
Definition: ExTracking.h:58
virtual void process_initialise(UInt_t *error_code)
Constructor implementation.
Definition: ExTracking.C:212
ExTracking.
Definition: ExTracking.h:54
header file for NarvalInterface.cpp
virtual void process_reset(UInt_t *error_code)
Destructor implementation.
Definition: ExTracking.C:262
virtual UInt_t ProcessBlock(ADF::FrameBlock &, ADF::FrameBlock &)
To process just a block of data.
Definition: ExTracking.C:178
It defines the interface needed to be a narval actor (Filter).
virtual UInt_t SetOutput()
compute output of the process
Definition: ExTracking.C:153