GSI Object Oriented Online Offline (Go4)
GO4-5.3.2
Main Page
Namespaces
Classes
Files
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Go4ExampleMesh
TMeshB1AnlProc.cxx
Go to the documentation of this file.
1
// $Id: TMeshB1AnlProc.cxx 999 2013-07-25 11:58:59Z 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 "
TMeshB1AnlProc.h
"
15
16
#include "
TGo4UserException.h
"
17
#include "
TGo4Log.h
"
18
19
#include "
TMeshRawEvent.h
"
20
#include "
TMeshB1OutputEvent.h
"
21
#include "
TMeshB1InputEvent.h
"
22
23
//***********************************************************
24
// this one is used in TXXXAnlFact
25
TMeshB1AnlProc::TMeshB1AnlProc
(
const
char
* name)
26
:
TGo4EventProcessor
(name),fxInput(0)
27
{
28
TGo4Log::Info
(
"TMeshB1AnlProc: Create %s"
, name);
29
}
30
//***********************************************************
31
TMeshB1AnlProc::TMeshB1AnlProc
()
32
:
TGo4EventProcessor
(
"Processor1"
),fxInput(0)
33
{
34
}
35
//***********************************************************
36
TMeshB1AnlProc::~TMeshB1AnlProc
()
37
{
38
}
39
//***********************************************************
40
41
//-----------------------------------------------------------
42
void
TMeshB1AnlProc::Analysis
(
TMeshB1OutputEvent
* poutevt)
43
{
44
if
(poutevt==0)
return
;
45
if
(
fxInput
==0)
46
{
47
// lazy init for input event from framework
48
TGo4EventElement
* providerinput=
GetInputEvent
(
"Input1Provider"
);
49
TMeshRawEvent
* raw=
dynamic_cast<
TMeshRawEvent
*
>
(providerinput);
50
if
(raw)
51
fxInput
=&(raw->
fxSub1
);
52
// provider delivers full raw event, we use only our component
53
else
54
fxInput
=
dynamic_cast<
TMeshB1InputEvent
*
>
(providerinput);
55
// provider with partial io delivers just our component
56
}
57
if
(
fxInput
)
58
{
59
//std::cout <<"Dump of event "<<fxInput->GetName() << std::endl <<" ";
60
// do the processing here:
61
for
(Int_t i=0;i<4;i++)
62
{
63
poutevt->
frData
[i]=(Float_t)
fxInput
->
fiCrate1
[i];
64
//std::cout << fxInput->fiCrate1[i]<<" ";
65
}
66
//std::cout << std::endl;
67
}
68
else
69
{
70
throw
TGo4UserException
(3,
"Error: no input event for processor %s"
,GetName());
71
}
72
73
}
// BuildCalEvent
74
TGo4UserException
Definition:
TGo4UserException.h:42
TMeshB1AnlProc::fxInput
TMeshB1InputEvent * fxInput
Definition:
TMeshB1AnlProc.h:30
TMeshB1InputEvent::fiCrate1
Int_t fiCrate1[16]
Definition:
TMeshB1InputEvent.h:42
TGo4Log.h
TGo4EventElement
Definition:
TGo4EventElement.h:36
TMeshRawEvent::fxSub1
TMeshB1InputEvent fxSub1
Definition:
TMeshRawEvent.h:47
TMeshB1OutputEvent.h
TMeshB1InputEvent
Definition:
TMeshB1InputEvent.h:22
TMeshB1OutputEvent
Definition:
TMeshB1OutputEvent.h:22
TMeshB1AnlProc::Analysis
void Analysis(TMeshB1OutputEvent *target)
Definition:
TMeshB1AnlProc.cxx:42
TGo4EventProcessor::GetInputEvent
TGo4EventElement * GetInputEvent()
Definition:
TGo4EventProcessor.h:83
TGo4UserException.h
TMeshRawEvent.h
TMeshB1InputEvent.h
TMeshB1AnlProc::TMeshB1AnlProc
TMeshB1AnlProc()
Definition:
TMeshB1AnlProc.cxx:31
TMeshRawEvent
Definition:
TMeshRawEvent.h:26
TGo4EventProcessor
Definition:
TGo4EventProcessor.h:64
TMeshB1AnlProc::~TMeshB1AnlProc
virtual ~TMeshB1AnlProc()
Definition:
TMeshB1AnlProc.cxx:36
TGo4Log::Info
static void Info(const char *text,...)
Definition:
TGo4Log.cxx:283
TMeshB1AnlProc.h
TMeshB1OutputEvent::frData
Float_t frData[16]
Definition:
TMeshB1OutputEvent.h:31
Generated on Fri Oct 26 2018 08:34:51 for GSI Object Oriented Online Offline (Go4) by
1.8.8