Shower.h
Go to the documentation of this file.
1 ////////////////////////////////////////////////////////////////////////
2 // \file Shower.h
3 // \brief A shower is a \ref rb::Prong with a length, other variables which can be commonly used by analysis showers will be added.
4 // \version $Id: Shower.h,v 1.00 2013-07-12 21:31:55 bianjm Exp $
5 // \author Jianming Bian - bianjm@physics.umn.edu
6 // \date $Date: 2013-07-12 21:31:55 $
7 ////////////////////////////////////////////////////////////////////////
8 #ifndef RBSHOWER_H
9 #define RBSHOWER_H
10 
11 #include "RecoBase/Prong.h"
12 
13 #include <vector>
14 
15 namespace rb
16 {
17  /// \brief A \ref rb::Prong with a length
18  class Shower : public Prong
19  {
20  public:
21  /// \name Constructors
22  ///
23  /// See \ref rb::Prong documentation
24  //@{
26 #ifndef __GCCXML__
27  Shower(const rb::Prong& prong
28  ,int id = 0
29  ,double length = 0.0);
30 
32  std::vector<double> const& weights,
33  double const& length,
34  TVector3 const& start,
35  TVector3 const& dir,
36  int const& id);
37 
38  //@}
39 
40  virtual ~Shower();
41 
42  /// Length (cm) of a shower
43  virtual double TotalLength() const;
44  /// Set length of a shower
45  void SetTotalLength(double length);
46 
47  /// Endpoint of the shower
48  TVector3 Stop() const;
49  protected:
50 #endif // __GCCXML__
51  double fTotalLength;
52 
53  };
54 }
55 
56 #endif // RBSHOWER_H
void SetTotalLength(double length)
Set length of a shower.
Definition: Shower.cxx:49
virtual double TotalLength() const
Length (cm) of a shower.
Definition: Shower.cxx:43
length
Definition: demo0.py:21
TVector3 Stop() const
Endpoint of the shower.
Definition: Shower.cxx:55
Var weights
Perform a "2 point" Hough transform on a collection of hits.
double fTotalLength
Definition: Shower.h:51
Shower()
Definition: Shower.h:25
A Cluster with defined start position and direction.
Definition: Prong.h:19
TDirectory * dir
Definition: macro.C:5
virtual ~Shower()
Definition: Shower.cxx:38
A rb::Prong with a length.
Definition: Shower.h:18