Main Page
Related Pages
Modules
Namespaces
Classes
Files
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Groups
Pages
srcs
sbnana
sbnanalysis
ana
SBNOscReco
CosmicIDAlgs
sbnana/sbnanalysis/ana/SBNOscReco/CosmicIDAlgs/PandoraT0CosmicIdAlg.h
Go to the documentation of this file.
1
#ifndef PANDORAT0COSMICIDALG_H_SEEN
2
#define PANDORAT0COSMICIDALG_H_SEEN
3
4
5
///////////////////////////////////////////////
6
// PandoraT0CosmicIdAlg.h
7
//
8
// Functions for pandora t0 cosmic tagger
9
// Pandora removed these particles anyway
10
// T Brooks (tbrooks@fnal.gov), November 2018
11
///////////////////////////////////////////////
12
13
// framework
14
#include "art/Framework/Principal/Event.h"
15
#include "fhiclcpp/ParameterSet.h"
16
#include "fhiclcpp/types/Table.h"
17
#include "fhiclcpp/types/Atom.h"
18
#include "art/Framework/Principal/Handle.h"
19
#include "canvas/Persistency/Common/Ptr.h"
20
#include "canvas/Persistency/Common/FindManyP.h"
21
22
// LArSoft
23
#include "
lardataobj/RecoBase/Track.h
"
24
#include "
lardataobj/RecoBase/Hit.h
"
25
#include "
lardataobj/RecoBase/PFParticle.h
"
26
#include "
lardataobj/AnalysisBase/T0.h
"
27
28
// c++
29
#include <vector>
30
31
32
namespace
ana
{
33
34
class
PandoraT0CosmicIdAlg
{
35
public
:
36
37
struct
BeamTime
{
38
using
Name
=
fhicl::Name
;
39
using
Comment
= fhicl::Comment;
40
41
fhicl::Atom<double>
BeamTimeMin
{
42
Name
(
"BeamTimeMin"
),
43
Comment
(
""
)
44
};
45
46
fhicl::Atom<double>
BeamTimeMax
{
47
Name
(
"BeamTimeMax"
),
48
Comment
(
""
)
49
};
50
51
};
52
53
struct
Config
{
54
using
Name
=
fhicl::Name
;
55
using
Comment
= fhicl::Comment;
56
57
fhicl::Atom<art::InputTag>
PandoraLabel
{
58
Name
(
"PandoraLabel"
),
59
Comment
(
""
)
60
};
61
62
fhicl::Atom<art::InputTag>
TpcTrackModuleLabel
{
63
Name
(
"TpcTrackModuleLabel"
),
64
Comment
(
""
)
65
};
66
67
fhicl::Table<BeamTime>
BeamTimeLimits
{
68
Name
(
"BeamTimeLimits"
),
69
Comment
(
""
)
70
};
71
72
};
73
74
PandoraT0CosmicIdAlg
(
const
Config& config);
75
76
PandoraT0CosmicIdAlg
(
const
fhicl::ParameterSet& pset) :
77
PandoraT0CosmicIdAlg
(fhicl::Table<
Config
>(pset, {})()) {}
78
79
PandoraT0CosmicIdAlg
();
80
81
~PandoraT0CosmicIdAlg
();
82
83
void
reconfigure
(
const
Config& config);
84
85
// Finds any t0s associated with track by pandora, tags if outside beam
86
bool
PandoraT0CosmicId
(
recob::Track
track
,
const
art::Event& event);
87
88
// Finds any t0s associated with pfparticle by pandora, tags if outside beam
89
bool
PandoraT0CosmicId
(
recob::PFParticle
pfparticle, std::map<
size_t
, art::Ptr<recob::PFParticle> > pfParticleMap,
const
art::Event& event);
90
91
private
:
92
93
art::InputTag
fPandoraLabel
;
94
art::InputTag
fTpcTrackModuleLabel
;
95
double
fBeamTimeMin
;
96
double
fBeamTimeMax
;
97
98
};
99
100
}
101
102
#endif
ana::PandoraT0CosmicIdAlg::Config::Comment
fhicl::Comment Comment
Definition:
sbnana/sbnanalysis/ana/SBNOscReco/CosmicIDAlgs/PandoraT0CosmicIdAlg.h:55
ana::PandoraT0CosmicIdAlg::Config
Definition:
sbnana/sbnanalysis/ana/SBNOscReco/CosmicIDAlgs/PandoraT0CosmicIdAlg.h:53
PFParticle.h
Hit.h
Declaration of signal hit object.
ana::PandoraT0CosmicIdAlg::BeamTime
Definition:
sbnana/sbnanalysis/ana/SBNOscReco/CosmicIDAlgs/PandoraT0CosmicIdAlg.h:37
ana::PandoraT0CosmicIdAlg::PandoraT0CosmicIdAlg
PandoraT0CosmicIdAlg(const Config &config)
Definition:
sbnana/sbnanalysis/ana/SBNOscReco/CosmicIDAlgs/PandoraT0CosmicIdAlg.cc:5
T0.h
track
process_name use argoneut_mc_hitfinder track
Definition:
standard_reco.fcl:36
ana
process_name opflashCryoW ana
Definition:
stage0_icarus_light_only.fcl:60
ana::PandoraT0CosmicIdAlg::Config::TpcTrackModuleLabel
fhicl::Atom< art::InputTag > TpcTrackModuleLabel
Definition:
sbnana/sbnanalysis/ana/SBNOscReco/CosmicIDAlgs/PandoraT0CosmicIdAlg.h:62
ana::PandoraT0CosmicIdAlg::reconfigure
void reconfigure(const Config &config)
Definition:
sbnana/sbnanalysis/ana/SBNOscReco/CosmicIDAlgs/PandoraT0CosmicIdAlg.cc:22
ana::PandoraT0CosmicIdAlg::BeamTime::BeamTimeMax
fhicl::Atom< double > BeamTimeMax
Definition:
sbnana/sbnanalysis/ana/SBNOscReco/CosmicIDAlgs/PandoraT0CosmicIdAlg.h:46
ana::PandoraT0CosmicIdAlg::fBeamTimeMax
double fBeamTimeMax
Definition:
sbnana/sbnanalysis/ana/SBNOscReco/CosmicIDAlgs/PandoraT0CosmicIdAlg.h:96
ana::PandoraT0CosmicIdAlg::BeamTime::BeamTimeMin
fhicl::Atom< double > BeamTimeMin
Definition:
sbnana/sbnanalysis/ana/SBNOscReco/CosmicIDAlgs/PandoraT0CosmicIdAlg.h:41
ana::PandoraT0CosmicIdAlg::Config::BeamTimeLimits
fhicl::Table< BeamTime > BeamTimeLimits
Definition:
sbnana/sbnanalysis/ana/SBNOscReco/CosmicIDAlgs/PandoraT0CosmicIdAlg.h:67
ana::PandoraT0CosmicIdAlg::PandoraT0CosmicIdAlg
PandoraT0CosmicIdAlg(const fhicl::ParameterSet &pset)
Definition:
sbnana/sbnanalysis/ana/SBNOscReco/CosmicIDAlgs/PandoraT0CosmicIdAlg.h:76
Name
BEGIN_PROLOG vertical distance to the surface Name
Definition:
geometry_icarus.fcl:82
ana::PandoraT0CosmicIdAlg::Config::Name
fhicl::Name Name
Definition:
sbnana/sbnanalysis/ana/SBNOscReco/CosmicIDAlgs/PandoraT0CosmicIdAlg.h:54
ana::PandoraT0CosmicIdAlg::fTpcTrackModuleLabel
art::InputTag fTpcTrackModuleLabel
Definition:
sbnana/sbnanalysis/ana/SBNOscReco/CosmicIDAlgs/PandoraT0CosmicIdAlg.h:94
ana::PandoraT0CosmicIdAlg::Config::PandoraLabel
fhicl::Atom< art::InputTag > PandoraLabel
Definition:
sbnana/sbnanalysis/ana/SBNOscReco/CosmicIDAlgs/PandoraT0CosmicIdAlg.h:57
Track.h
Provides recob::Track data product.
ana::PandoraT0CosmicIdAlg::fPandoraLabel
art::InputTag fPandoraLabel
Definition:
sbnana/sbnanalysis/ana/SBNOscReco/CosmicIDAlgs/PandoraT0CosmicIdAlg.h:93
ana::PandoraT0CosmicIdAlg::BeamTime::Name
fhicl::Name Name
Definition:
sbnana/sbnanalysis/ana/SBNOscReco/CosmicIDAlgs/PandoraT0CosmicIdAlg.h:38
ana::PandoraT0CosmicIdAlg::BeamTime::Comment
fhicl::Comment Comment
Definition:
sbnana/sbnanalysis/ana/SBNOscReco/CosmicIDAlgs/PandoraT0CosmicIdAlg.h:39
recob::PFParticle
Hierarchical representation of particle flow.
Definition:
PFParticle.h:44
ana::PandoraT0CosmicIdAlg::PandoraT0CosmicId
bool PandoraT0CosmicId(recob::Track track, const art::Event &event)
Definition:
sbnana/sbnanalysis/ana/SBNOscReco/CosmicIDAlgs/PandoraT0CosmicIdAlg.cc:33
ana::PandoraT0CosmicIdAlg::~PandoraT0CosmicIdAlg
~PandoraT0CosmicIdAlg()
Definition:
sbnana/sbnanalysis/ana/SBNOscReco/CosmicIDAlgs/PandoraT0CosmicIdAlg.cc:17
ana::PandoraT0CosmicIdAlg::fBeamTimeMin
double fBeamTimeMin
Definition:
sbnana/sbnanalysis/ana/SBNOscReco/CosmicIDAlgs/PandoraT0CosmicIdAlg.h:95
recob::Track
Track from a non-cascading particle.A recob::Track consists of a recob::TrackTrajectory, plus additional members relevant for a "fitted" track:
Definition:
bj/lardataobj/RecoBase/Track.h:49
ana::PandoraT0CosmicIdAlg
Definition:
sbnana/sbnanalysis/ana/SBNOscReco/CosmicIDAlgs/PandoraT0CosmicIdAlg.h:34
Generated by
1.8.5