StRoot  1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
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 //_____________________________________________________________________________
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 //_____________________________________________________________________________
37 {
38  return StMaker::Finish();
39 }
virtual Int_t Finish()
virtual void AddData(TDataSet *data, const char *dir=".data")
User methods.
Definition: StMaker.cxx:332
Definition: Stypes.h:42
virtual Int_t Finish()
Definition: StMaker.cxx:776
Definition: Stypes.h:41