LArSoft
v06_85_00
Liquid Argon Software toolkit - http://larsoft.org/
Main Page
Related Pages
Modules
Namespaces
Classes
Files
File List
File Members
ShowerEnergyAlg.h
Go to the documentation of this file.
1
// Class: ShowerEnergyAlg
3
// File: ShowerEnergyAlg.h
4
// Author: Mike Wallbank (m.wallbank@sheffield.ac.uk), November 2015
5
//
6
// Shower energy finding class
8
9
#ifndef ShowerEnergyAlg_hxx
10
#define ShowerEnergyAlg_hxx
11
12
// Framework
13
#include "
fhiclcpp/ParameterSet.h
"
14
#include "
art/Framework/Principal/Handle.h
"
15
#include "
canvas/Persistency/Common/Ptr.h
"
16
#include "
canvas/Persistency/Common/PtrVector.h
"
17
18
// larsoft
19
#include "
lardata/DetectorInfoServices/DetectorPropertiesService.h
"
20
#include "
lardataobj/RecoBase/Hit.h
"
21
#include "
lardata/DetectorInfoServices/LArPropertiesService.h
"
22
23
// ROOT
24
#include "TMath.h"
25
26
namespace
shower
{
27
class
ShowerEnergyAlg;
28
}
29
30
class
shower::ShowerEnergyAlg
{
31
public
:
32
33
ShowerEnergyAlg
(
fhicl::ParameterSet
const
& pset);
34
36
double
ShowerEnergy
(
std::vector
<
art::Ptr<recob::Hit>
>
const
&
hits
,
int
plane);
37
38
private
:
39
40
double
fUGradient
,
fUIntercept
;
41
double
fVGradient
,
fVIntercept
;
42
double
fZGradient
,
fZIntercept
;
43
44
detinfo::DetectorProperties
const
*
detprop
=
nullptr
;
45
46
};
47
48
#endif
shower::ShowerEnergyAlg
Definition:
ShowerEnergyAlg.h:30
shower::ShowerEnergyAlg::ShowerEnergy
double ShowerEnergy(std::vector< art::Ptr< recob::Hit > > const &hits, int plane)
Finds the total energy deposited by the shower in this view.
Definition:
ShowerEnergyAlg.cxx:22
shower::ShowerEnergyAlg::fZIntercept
double fZIntercept
Definition:
ShowerEnergyAlg.h:42
shower::ShowerEnergyAlg::detprop
detinfo::DetectorProperties const * detprop
Definition:
ShowerEnergyAlg.h:44
shower::ShowerEnergyAlg::fZGradient
double fZGradient
Definition:
ShowerEnergyAlg.h:42
Hit.h
Declaration of signal hit object.
shower::ShowerEnergyAlg::fVGradient
double fVGradient
Definition:
ShowerEnergyAlg.h:41
detinfo::DetectorProperties
Definition:
DetectorProperties.h:21
PtrVector.h
shower::ShowerEnergyAlg::ShowerEnergyAlg
ShowerEnergyAlg(fhicl::ParameterSet const &pset)
Definition:
ShowerEnergyAlg.cxx:11
Handle.h
shower::ShowerEnergyAlg::fUIntercept
double fUIntercept
Definition:
ShowerEnergyAlg.h:40
ParameterSet.h
DetectorPropertiesService.h
lar::dump::vector
auto vector(Vector const &v)
Returns a manipulator which will print the specified array.
Definition:
DumpUtils.h:265
hits
void hits()
Definition:
readHits.C:15
Ptr.h
shower
Definition:
EMShowerAlg.h:69
shower::ShowerEnergyAlg::fVIntercept
double fVIntercept
Definition:
ShowerEnergyAlg.h:41
LArPropertiesService.h
shower::ShowerEnergyAlg::fUGradient
double fUGradient
Definition:
ShowerEnergyAlg.h:40
art::Ptr< recob::Hit >
fhicl::ParameterSet
Definition:
ParameterSet.h:34
larreco
v06_64_02
source
larreco
RecoAlg
ShowerEnergyAlg.h
Generated on Thu Jul 26 2018 13:10:14 for LArSoft by
1.8.11