HighLAND
highland2
highlandCore
v2r10
src
HighlandInputManager.cxx
1
#include "HighlandInputManager.hxx"
2
//#include "BasicUtils.hxx"
3
4
//********************************************************************
5
HighlandInputManager::HighlandInputManager
():
InputManager
(){
6
//********************************************************************
7
8
_RawSpill = NULL;
9
10
}
11
12
//********************************************************************
13
void
HighlandInputManager::Reset
(){
14
//********************************************************************
15
16
InputManager::Reset
();
17
_RawSpill = NULL;
18
}
19
20
//*****************************************************************************
21
void
HighlandInputManager::DeleteSpill
(){
22
//*****************************************************************************
23
24
InputManager::DeleteSpill
();
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
//*****************************************************************************
49
void
HighlandInputManager::ResetSpillToRaw
() {
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
HighlandInputManager::Reset
void Reset()
Reset the converters and the UniqueID.
Definition:
HighlandInputManager.cxx:13
InputManager::Reset
virtual void Reset()
Reset the converters and the UniqueID.
Definition:
InputManager.cxx:18
InputManager::_Spill
AnaSpillC * _Spill
The current spill with corrections and systematics.
Definition:
InputManager.hxx:183
InputManager::LoadSpill
virtual bool LoadSpill(Long64_t &entry)
Definition:
InputManager.cxx:191
InputManager
Definition:
InputManager.hxx:17
HighlandInputManager::DeleteSpill
void DeleteSpill()
clean up the remaining pointers to the spills.
Definition:
HighlandInputManager.cxx:21
AnaSpillC::Clone
virtual AnaSpillC * Clone()=0
Clone this object.
HighlandInputManager::HighlandInputManager
HighlandInputManager()
Constructor.
Definition:
HighlandInputManager.cxx:5
HighlandInputManager::ResetSpillToRaw
void ResetSpillToRaw()
Create the event.
Definition:
HighlandInputManager.cxx:49
InputManager::DeleteSpill
virtual void DeleteSpill()
clean up the remaining pointers to the spills.
Definition:
InputManager.cxx:34
InputManager::_CorrectedSpill
AnaSpillC * _CorrectedSpill
The current corrected spill.
Definition:
InputManager.hxx:180
HighlandInputManager::LoadSpill
bool LoadSpill(Long64_t &entry)
Definition:
HighlandInputManager.cxx:33
Generated by
1.8.13