HighLAND
HighlandInputManager.cxx
1 #include "HighlandInputManager.hxx"
2 //#include "BasicUtils.hxx"
3 
4 //********************************************************************
6 //********************************************************************
7 
8  _RawSpill = NULL;
9 
10 }
11 
12 //********************************************************************
14 //********************************************************************
15 
17  _RawSpill = NULL;
18 }
19 
20 //*****************************************************************************
22 //*****************************************************************************
23 
25 
26  if (_RawSpill)
27  delete _RawSpill;
28 
29  _RawSpill=NULL;
30 }
31 
32 //*****************************************************************************
33 bool HighlandInputManager::LoadSpill(Long64_t& entry){
34 //*****************************************************************************
35 
36  // Read the RawSpill
37  if (!InputManager::LoadSpill(entry)) return false;
38 
39  // We can now associate the spill just read with the _RawSpill
40  _RawSpill = _CorrectedSpill;
41 
42  // Make a copy of the spill
43  _CorrectedSpill = _RawSpill->Clone();
44 
45  return true;
46 }
47 
48 //*****************************************************************************
50 //*****************************************************************************
51  if (_Spill) {
52  delete _Spill;
53  _Spill = _RawSpill->Clone();
54  }
55 }
56 
57 //*****************************************************************************
58 //AnaEventC* HighlandInputManager::MakeEvent() {
59 //*****************************************************************************
60 
61 // return new AnaEventC(GetRawSpill(),GetRawBunch());
62 //}
63 
64 
65 
void Reset()
Reset the converters and the UniqueID.
virtual void Reset()
Reset the converters and the UniqueID.
AnaSpillC * _Spill
The current spill with corrections and systematics.
virtual bool LoadSpill(Long64_t &entry)
void DeleteSpill()
clean up the remaining pointers to the spills.
virtual AnaSpillC * Clone()=0
Clone this object.
HighlandInputManager()
Constructor.
void ResetSpillToRaw()
Create the event.
virtual void DeleteSpill()
clean up the remaining pointers to the spills.
AnaSpillC * _CorrectedSpill
The current corrected spill.
bool LoadSpill(Long64_t &entry)