DUNE StandardRecord
Base object for DUNE analysis files (CAFs)
Loading...
Searching...
No Matches
duneanaobj
StandardRecord
Navigate.h
1
#ifndef DUNEANAOBJ_NAVIGATE_H
2
#define DUNEANAOBJ_NAVIGATE_H
3
4
#include <type_traits>
5
6
#include "
duneanaobj/StandardRecord/SRTruthBranch.h
"
7
#include "duneanaobj/StandardRecord/SRRecoObjBase.h"
8
#include "
duneanaobj/StandardRecord/StandardRecord.h
"
9
10
namespace
caf
11
{
12
// a bit horrible to forward-declare Proxy types...
13
// (we would #include Proxy/FwdDeclare.h, but
14
// gen_srproxy has not yet created it
15
// by the time Navigate.h is first seen)
16
template
<
class
T>
class
Proxy
;
17
class
SRTrueParticle
;
18
using
SRTrueParticleProxy
=
caf::Proxy<caf::SRTrueParticle>
;
19
24
template
<
typename
TruthBranchType,
typename
TrueParticleIDType>
25
const
typename
std::conditional<std::is_same_v<TruthBranchType, SRTruthBranch>,
26
SRTrueParticle
,
SRTrueParticleProxy
>::type *
27
FindParticle(
const
TruthBranchType & truth,
const
TrueParticleIDType &
id
);
28
29
class
SRTrueInteraction
;
30
using
SRTrueInteractionProxy
=
caf::Proxy<caf::SRTrueInteraction>
;
31
template
<
typename
TruthBranchType>
32
const
typename
std::conditional<std::is_same_v<TruthBranchType, SRTruthBranch>,
33
SRTrueInteraction
,
SRTrueInteractionProxy
>::type *
34
FindInteraction(
const
TruthBranchType & truth,
long
int
id
);
35
36
const
SRRecoParticle
* FindRecoParticle(
const
StandardRecord
& sr,
const
SRRecoParticleID
&
id
);
37
38
const
SRRecoObjBase
*FindRecoObjBase(
const
StandardRecord
&sr,
const
SRRecoBaseID
&
id
);
39
}
40
#endif
//DUNEANAOBJ_NAVIGATE_H
SRTruthBranch.h
Top level truth info.
StandardRecord.h
The StandardRecord is the primary top-level object in the Common Analysis File trees.
caf::Proxy
Definition:
Navigate.h:16
caf::SRRecoBaseID
Identifies a reconstructed object by the interaction it belongs to, which collection of reconstructed...
Definition:
SREnums.h:152
caf::SRRecoObjBase
Base class for reco objects (enables navigation between SRRecoParticle and the underlying object it w...
Definition:
SRRecoObjBase.h:18
caf::SRRecoParticleID
Identifies a reconstructed particle by the interaction it belongs to, which collection of reconstruct...
Definition:
SREnums.h:130
caf::SRRecoParticle
Reconstructed particle candidate.
Definition:
SRRecoParticle.h:20
caf::SRTrueInteraction
True interaction of probe particle with detector. Usually neutrinos, but occasionally cosmics etc.
Definition:
SRTrueInteraction.h:46
caf::SRTrueParticle
Definition:
SRTrueParticle.h:22
caf::StandardRecord
The StandardRecord is the primary top-level object in the Common Analysis File trees.
Definition:
StandardRecord.h:25
caf
Common Analysis Files.
Definition:
Navigate.cxx:8
Generated by
1.9.6