CbmRoot
NicaCbmMatchedEvent.cxx
Go to the documentation of this file.
1
/*
2
* NicaCbmMatchedEvent.cxx
3
*
4
* Created on: 12 lip 2019
5
* Author: Daniel Wielanek
6
* E-mail: daniel.wielanek@gmail.com
7
* Warsaw University of Technology, Faculty of Physics
8
*/
9
#include "
NicaCbmMatchedEvent.h
"
10
#include "FairRootManager.h"
11
#include "
NicaCbmMatchedEventInterface.h
"
12
#include "
NicaCbmMatchedTrack.h
"
13
void
NicaCbmMatchedEvent::CreateSource
() {
14
fSource =
new
NicaCbmMatchedEventInterface
(
GetMode
());
15
}
16
17
NicaCbmMatchedEvent::NicaCbmMatchedEvent
(
NicaCbmSetup
mode)
18
:
NicaCbmEvent
(
"NicaCbmMatchedTrack"
, mode) {}
19
20
Bool_t
NicaCbmMatchedEvent::ExistInTree
()
const
{
21
switch
(
fMode
) {
22
case
kSis100Electron
:
23
if
(!CheckBranches(4,
24
"StsTrackMatch"
,
25
"TofHitMatch"
,
26
"TrdTrackMatch"
,
27
"RichRingMatch"
))
28
return
kFALSE;
29
break
;
30
case
kSis100Muon
:
31
if
(!CheckBranches(4,
32
"StsTrackMatch"
,
33
"TofHitMatch"
,
34
"TrdTrackMatch"
,
35
"MuchTrackMatch"
))
36
return
kFALSE;
37
break
;
38
default
:
39
if
(!CheckBranches(3,
"StsTrackMatch"
,
"TofHitMatch"
,
"TrdTrackMatch"
))
40
return
kFALSE;
41
break
;
42
}
43
return
NicaCbmEvent::ExistInTree
();
44
}
45
46
NicaCbmMatchedEvent::~NicaCbmMatchedEvent
() {
47
// TODO Auto-generated destructor stub
48
}
49
50
NicaCbmMatchedEvent::NicaCbmMatchedEvent
(TString classname,
NicaCbmSetup
mode)
51
:
NicaCbmEvent
(classname, mode) {}
NicaCbmMatchedEvent::ExistInTree
virtual Bool_t ExistInTree() const
Definition:
NicaCbmMatchedEvent.cxx:20
NicaCbmEvent::ExistInTree
virtual Bool_t ExistInTree() const
Definition:
NicaCbmEvent.cxx:99
NicaCbmMatchedEventInterface
Definition:
NicaCbmMatchedEventInterface.h:16
NicaCbmEvent::GetMode
NicaCbmSetup GetMode() const
Definition:
NicaCbmEvent.h:31
kSis100Electron
@ kSis100Electron
Definition:
CbmDetectorID.h:25
NicaCbmMatchedEvent::NicaCbmMatchedEvent
NicaCbmMatchedEvent(TString classname, NicaCbmSetup mode=kSis100Hadron)
Definition:
NicaCbmMatchedEvent.cxx:50
NicaCbmEvent
Definition:
NicaCbmEvent.h:15
NicaCbmMatchedEvent.h
NicaCbmMatchedEvent::CreateSource
virtual void CreateSource()
Definition:
NicaCbmMatchedEvent.cxx:13
NicaCbmSetup
NicaCbmSetup
Definition:
CbmDetectorID.h:25
NicaCbmMatchedTrack.h
kSis100Muon
@ kSis100Muon
Definition:
CbmDetectorID.h:25
NicaCbmMatchedEvent::~NicaCbmMatchedEvent
virtual ~NicaCbmMatchedEvent()
Definition:
NicaCbmMatchedEvent.cxx:46
NicaCbmMatchedEventInterface.h
NicaCbmEvent::fMode
NicaCbmSetup fMode
Definition:
NicaCbmEvent.h:18
analysis
PWGC2F
femtoscopy
nicafemto
format
matched
NicaCbmMatchedEvent.cxx
Generated on Wed Oct 28 2020 15:11:50 for CbmRoot by
1.8.18