GSI Object Oriented Online Offline (Go4)
GO4-6.3.0
Go4ExampleMesh
TMeshDummyEvent.cxx
Go to the documentation of this file.
1
// $Id$
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 fuer 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 "
TMeshDummyEvent.h
"
15
16
#include "
TMeshProviderProc.h
"
17
18
//***********************************************************
19
TMeshDummyEvent::TMeshDummyEvent
()
20
:
TGo4EventElement
(
"DummyEvent"
)
21
{
22
}
23
24
//***********************************************************
25
TMeshDummyEvent::TMeshDummyEvent
(
const
char
*name)
26
:
TGo4EventElement
(name)
27
{
28
}
29
30
//***********************************************************
31
TMeshDummyEvent::~TMeshDummyEvent
()
32
{
33
}
34
35
//-----------------------------------------------------------
36
Int_t
TMeshDummyEvent::Init
()
37
{
38
// check for different source types
39
Int_t rev = 0;
40
Clear
();
41
if
(
CheckEventSource
(
"TMeshProviderProc"
)) {
42
fxProviderProc
=
dynamic_cast<
TMeshProviderProc
*
>
(
GetEventSource
());
43
}
else
44
rev = 1;
45
return
rev;
46
}
47
48
//-----------------------------------------------------------
49
Int_t
TMeshDummyEvent::Fill
()
50
{
51
// check for different source types
52
Int_t rev = 0;
53
if
(
fxProviderProc
)
54
fxProviderProc
->
SetRealInput
();
55
else
56
rev=1;
57
return
rev;
58
}
59
60
//-----------------------------------------------------------
61
void
TMeshDummyEvent::Clear
(Option_t *)
62
{
63
}
TGo4EventElement::GetEventSource
TGo4EventSource * GetEventSource() const
Definition:
TGo4EventElement.h:64
TMeshProviderProc
Definition:
TMeshProviderProc.h:19
TMeshDummyEvent::Clear
void Clear(Option_t *opt="") override
Definition:
TMeshDummyEvent.cxx:61
TMeshDummyEvent::TMeshDummyEvent
TMeshDummyEvent()
Definition:
TMeshDummyEvent.cxx:19
TMeshDummyEvent::~TMeshDummyEvent
virtual ~TMeshDummyEvent()
Definition:
TMeshDummyEvent.cxx:31
TGo4EventElement
Definition:
TGo4EventElement.h:36
TGo4EventElement::CheckEventSource
Bool_t CheckEventSource(const char *classname)
Definition:
TGo4EventElement.cxx:49
TMeshDummyEvent::Fill
Int_t Fill() override
Definition:
TMeshDummyEvent.cxx:49
TMeshDummyEvent.h
TMeshDummyEvent::fxProviderProc
TMeshProviderProc * fxProviderProc
Definition:
TMeshDummyEvent.h:36
TMeshDummyEvent::Init
Int_t Init() override
Definition:
TMeshDummyEvent.cxx:36
TMeshProviderProc::SetRealInput
void SetRealInput()
Definition:
TMeshProviderProc.cxx:39
TMeshProviderProc.h
Generated on Wed Jan 10 2024 15:04:17 for GSI Object Oriented Online Offline (Go4) by
1.8.13