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
sbndcode
sbndcode
CosmicId
Algs
sbndcode/sbndcode/CosmicId/Algs/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
sbnd
{
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
sbnd::PandoraT0CosmicIdAlg::Config::Comment
fhicl::Comment Comment
Definition:
sbndcode/sbndcode/CosmicId/Algs/PandoraT0CosmicIdAlg.h:55
sbnd::PandoraT0CosmicIdAlg::reconfigure
void reconfigure(const Config &config)
Definition:
sbndcode/sbndcode/CosmicId/Algs/PandoraT0CosmicIdAlg.cc:22
PFParticle.h
Hit.h
Declaration of signal hit object.
sbnd::PandoraT0CosmicIdAlg::PandoraT0CosmicId
bool PandoraT0CosmicId(recob::Track track, const art::Event &event)
Definition:
sbndcode/sbndcode/CosmicId/Algs/PandoraT0CosmicIdAlg.cc:33
sbnd::PandoraT0CosmicIdAlg::BeamTime::Name
fhicl::Name Name
Definition:
sbndcode/sbndcode/CosmicId/Algs/PandoraT0CosmicIdAlg.h:38
T0.h
track
process_name use argoneut_mc_hitfinder track
Definition:
standard_reco.fcl:36
sbnd::PandoraT0CosmicIdAlg::Config::BeamTimeLimits
fhicl::Table< BeamTime > BeamTimeLimits
Definition:
sbndcode/sbndcode/CosmicId/Algs/PandoraT0CosmicIdAlg.h:67
sbnd::PandoraT0CosmicIdAlg::BeamTime::BeamTimeMax
fhicl::Atom< double > BeamTimeMax
Definition:
sbndcode/sbndcode/CosmicId/Algs/PandoraT0CosmicIdAlg.h:46
sbnd::PandoraT0CosmicIdAlg::PandoraT0CosmicIdAlg
PandoraT0CosmicIdAlg(const fhicl::ParameterSet &pset)
Definition:
sbndcode/sbndcode/CosmicId/Algs/PandoraT0CosmicIdAlg.h:76
sbnd::PandoraT0CosmicIdAlg::fPandoraLabel
art::InputTag fPandoraLabel
Definition:
sbndcode/sbndcode/CosmicId/Algs/PandoraT0CosmicIdAlg.h:93
sbnd::PandoraT0CosmicIdAlg::BeamTime
Definition:
sbndcode/sbndcode/CosmicId/Algs/PandoraT0CosmicIdAlg.h:37
sbnd::PandoraT0CosmicIdAlg::fTpcTrackModuleLabel
art::InputTag fTpcTrackModuleLabel
Definition:
sbndcode/sbndcode/CosmicId/Algs/PandoraT0CosmicIdAlg.h:94
sbnd::PandoraT0CosmicIdAlg::BeamTime::BeamTimeMin
fhicl::Atom< double > BeamTimeMin
Definition:
sbndcode/sbndcode/CosmicId/Algs/PandoraT0CosmicIdAlg.h:41
Name
BEGIN_PROLOG vertical distance to the surface Name
Definition:
geometry_icarus.fcl:82
sbnd::PandoraT0CosmicIdAlg::Config::PandoraLabel
fhicl::Atom< art::InputTag > PandoraLabel
Definition:
sbndcode/sbndcode/CosmicId/Algs/PandoraT0CosmicIdAlg.h:57
Track.h
Provides recob::Track data product.
sbnd::PandoraT0CosmicIdAlg::~PandoraT0CosmicIdAlg
~PandoraT0CosmicIdAlg()
Definition:
sbndcode/sbndcode/CosmicId/Algs/PandoraT0CosmicIdAlg.cc:17
sbnd::PandoraT0CosmicIdAlg::fBeamTimeMax
double fBeamTimeMax
Definition:
sbndcode/sbndcode/CosmicId/Algs/PandoraT0CosmicIdAlg.h:96
recob::PFParticle
Hierarchical representation of particle flow.
Definition:
PFParticle.h:44
sbnd::PandoraT0CosmicIdAlg::PandoraT0CosmicIdAlg
PandoraT0CosmicIdAlg(const Config &config)
Definition:
sbndcode/sbndcode/CosmicId/Algs/PandoraT0CosmicIdAlg.cc:5
sbnd::PandoraT0CosmicIdAlg::Config
Definition:
sbndcode/sbndcode/CosmicId/Algs/PandoraT0CosmicIdAlg.h:53
sbnd
stream1 can override from command line with o or output services user sbnd
Definition:
prodgenie_sbnd_proj.fcl:101
sbnd::PandoraT0CosmicIdAlg
Definition:
sbndcode/sbndcode/CosmicId/Algs/PandoraT0CosmicIdAlg.h:34
sbnd::PandoraT0CosmicIdAlg::Config::Name
fhicl::Name Name
Definition:
sbndcode/sbndcode/CosmicId/Algs/PandoraT0CosmicIdAlg.h:54
sbnd::PandoraT0CosmicIdAlg::BeamTime::Comment
fhicl::Comment Comment
Definition:
sbndcode/sbndcode/CosmicId/Algs/PandoraT0CosmicIdAlg.h:39
sbnd::PandoraT0CosmicIdAlg::fBeamTimeMin
double fBeamTimeMin
Definition:
sbndcode/sbndcode/CosmicId/Algs/PandoraT0CosmicIdAlg.h:95
sbnd::PandoraT0CosmicIdAlg::Config::TpcTrackModuleLabel
fhicl::Atom< art::InputTag > TpcTrackModuleLabel
Definition:
sbndcode/sbndcode/CosmicId/Algs/PandoraT0CosmicIdAlg.h:62
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
Generated by
1.8.5