Particle Identification and Tracking
ta_disp.h
Go to the documentation of this file.
1 //Copyright 2012 Thomas A Caswell
2 //tcaswell@uchicago.edu
3 //http://jfi.uchicago.edu/~tcaswell
4 //
5 //This program is free software; you can redistribute it and/or modify
6 //it under the terms of the GNU General Public License as published by
7 //the Free Software Foundation; either version 3 of the License, or (at
8 //your option) any later version.
9 //
10 //This program is distributed in the hope that it will be useful, but
11 //WITHOUT ANY WARRANTY; without even the implied warranty of
12 //MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13 //General Public License for more details.
14 //
15 //You should have received a copy of the GNU General Public License
16 //along with this program; if not, see <http://www.gnu.org/licenses>.
17 //
18 //Additional permission under GNU GPL version 3 section 7
19 //
20 //If you modify this Program, or any covered work, by linking or
21 //combining it with IPP (or a modified version of that library),
22 //containing parts covered by the terms of End User License Agreement
23 //for the Intel(R) Software Development Products, the licensors of
24 //this Program grant you additional permission to convey the resulting
25 //work.
26 
27 
28 #ifndef TRK_ACCUM_DISP
29 #define TRK_ACCUM_DISP
30 
31 #include "track_accum.h"
32 #include "histogram.h"
33 
34 namespace tracking
35 {
36 
41 class TA_disp: public Trk_accumulator
42 {
43 
44 public:
45  // inherited form Trk_accumulator
46  void add_disp(const utilities::Tuplef & displacement,unsigned steps);
47  unsigned max_step()const {return max_step_;}
48 
52  TA_disp(unsigned max_steps,
53  unsigned r_nbins,
54  float max_r,
55  unsigned t_nbins);
56 
60  ~TA_disp();
61 
66  const utilities::Md_store & md_store)const;
67 
68 private:
73  std::vector<utilities::Histogram> r_disp_;
74 
78  std::vector<utilities::Histogram> theta_;
82  unsigned max_step_;
83 
84 };
85 
86 }
87 #endif
88