GSI Object Oriented Online Offline (Go4)  GO4-5.3.2
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
TMeshFinalProc.cxx
Go to the documentation of this file.
1 // $Id: TMeshFinalProc.cxx 933 2013-01-29 15:27:58Z linev $
2 //-----------------------------------------------------------------------
3 // The GSI Online Offline Object Oriented (Go4) Project
4 // Experiment Data Processing at EE department, GSI
5 //-----------------------------------------------------------------------
6 // Copyright (C) 2000- GSI Helmholtzzentrum für Schwerionenforschung GmbH
7 // Planckstr. 1, 64291 Darmstadt, Germany
8 // Contact: http://go4.gsi.de
9 //-----------------------------------------------------------------------
10 // This software can be used under the license agreements as stated
11 // in Go4License.txt file which is part of the distribution.
12 //-----------------------------------------------------------------------
13 
14 #include "TMeshFinalProc.h"
15 
16 #include "TGo4Log.h"
17 #include "TMeshFinalEvent.h"
18 
19 //***********************************************************
20 // this one is used in TXXXAnlFact
22  :TGo4EventProcessor(name),fxInput1(0),fxInput2(0),fxInput3(0),fxInput12(0)
23 {
24  TGo4Log::Info("TMeshFinalProc: Create %s", name);
25 }
26 //***********************************************************
28  : TGo4EventProcessor("FinalProcessor"),fxInput1(0),fxInput2(0),fxInput3(0),fxInput12(0)
29 {
30 }
31 //***********************************************************
33 {
34 }
35 //***********************************************************
36 
37 //-----------------------------------------------------------
39 {
40 if(poutevt==0) return;
42 if(fxInput1==0)
43  {
44  fxInput1=dynamic_cast<TMeshB1OutputEvent*>(GetInputEvent("Output1Provider"));
45  }
46 if(fxInput2==0)
47  {
48  fxInput2=dynamic_cast<TMeshB2OutputEvent*>(GetInputEvent("Output2Provider"));
49  }
50 if(fxInput3==0)
51  {
52  fxInput3=dynamic_cast<TMeshB3OutputEvent*>(GetInputEvent("Output3Provider"));
53  }
54 if(fxInput12==0)
55  {
56  fxInput12=dynamic_cast<TMeshB12OutputEvent*>(GetInputEvent("Output12Provider"));
57  }
58 
60 //if(fxInput12 && fxInput3)
61 // {
62 // // normal case, combine all final results
63 //
64 // }
65 //else if (fxInput1 && fxInput2 && fxInput3 )
66 // {
67 // // work on these. any combination of inputs may be processed
68 // // depending on the previous setup
69 // // we might steer the final processing via parameter
70 // }
71 //else
72 // {
73 // throw TGo4UserException(3,"Error: not all input events available for processor %s",GetName(););
74 // }
75 
76 // for the moment, we just copy the component results into final event;
77 if(fxInput1)
78  poutevt->fxB1=*fxInput1; // be sure assignment operator is correct!
79 if(fxInput2)
80  poutevt->fxB2=*fxInput2; // be sure assignment operator is correct!
81 if(fxInput3)
82  poutevt->fxB3=*fxInput3; // be sure assignment operator is correct!
83 if(fxInput12)
84  poutevt->fxB12=*fxInput12; // be sure assignment operator is correct!
85 
86 
87 }
TMeshB1OutputEvent fxB1
TMeshB1OutputEvent * fxInput1
virtual ~TMeshFinalProc()
TMeshB3OutputEvent fxB3
TMeshB2OutputEvent fxB2
TMeshB12OutputEvent * fxInput12
void Analysis(TMeshFinalEvent *target)
TMeshB2OutputEvent * fxInput2
TGo4EventElement * GetInputEvent()
TMeshB12OutputEvent fxB12
static void Info(const char *text,...)
Definition: TGo4Log.cxx:283
TMeshB3OutputEvent * fxInput3