StRoot
1
Main Page
Related Pages
Modules
Namespaces
Classes
Files
Examples
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Groups
Pages
StEmcMixerMaker
StEmcPreMixerMaker.cxx
1
#include "StEmcPreMixerMaker.h"
2
#include <
Stiostream.h
>
3
#include "StEventTypes.h"
4
#include "StEvent.h"
5
6
ClassImp(
StEmcPreMixerMaker
)
7
8
//_____________________________________________________________________________
9
StEmcPreMixerMaker
::
StEmcPreMixerMaker
(const
char
*name):
StMaker
(name)
10
{
11
}
12
//_____________________________________________________________________________
13
StEmcPreMixerMaker::~StEmcPreMixerMaker()
14
{
15
}
16
//_____________________________________________________________________________
17
Int_t StEmcPreMixerMaker::Init()
18
{
19
return
StMaker::Init();
20
}
21
//_____________________________________________________________________________
22
Int_t
StEmcPreMixerMaker::Make
()
23
{
24
StEvent
*
event
= (
StEvent
*)GetInputDS(
"StEvent"
);
25
if
(!event)
return
kStWarn
;
26
// time is set based on the first event on the memory
27
Int_t GMTTime =
event
->time();
28
StEvtHddr
*hd = (
StEvtHddr
*)GetDataSet(
"EvtHddr"
);
29
if
(!hd) { hd =
new
StEvtHddr
();
AddData
(hd); }
30
//if(GMTTime>1893463200) GMTTime = 1893463200;
31
hd->SetGMTime(GMTTime);
32
return
kStOk
;
33
}
34
35
//_____________________________________________________________________________
36
Int_t
StEmcPreMixerMaker::Finish
()
37
{
38
return
StMaker::Finish
();
39
}
StEmcPreMixerMaker::Finish
virtual Int_t Finish()
Definition:
StEmcPreMixerMaker.cxx:36
StMaker::AddData
virtual void AddData(TDataSet *data, const char *dir=".data")
User methods.
Definition:
StMaker.cxx:332
StEmcPreMixerMaker
Definition:
StEmcPreMixerMaker.h:15
StEmcPreMixerMaker::Make
virtual Int_t Make()
Definition:
StEmcPreMixerMaker.cxx:22
StEvtHddr
Definition:
StEvtHddr.h:7
StEvent
Definition:
StEvent.h:232
StMaker
Definition:
StMaker.h:57
Stiostream.h
kStWarn
Definition:
Stypes.h:42
StMaker::Finish
virtual Int_t Finish()
Definition:
StMaker.cxx:776
kStOk
Definition:
Stypes.h:41
Generated by
1.8.5