MarlinTPC  1.2.0
ModuleDistortionCalculator.h
1 /*
2  * ModuleDistortionCalculator.hh
3  *
4  * Created on: June 4, 2013
5  * Author: amunnich
6  */
7 
8 #ifndef MODULEDISTORIONCALCULATOR
9 #define MODULEDISTORIONCALCULATOR
10 
11 #include<utility>
12 #include "lcio.h"
13 #include <EVENT/TrackerHit.h>
14 #include <EVENT/Track.h>
15 #include "TH1.h"
16 
17 // GEAR
18 namespace gear
19 {
20 class TPCParameters;
21 }
22 
23 namespace marlintpc
24 {
29  {
30  public:
34  ModuleDistortionCalculator(const gear::TPCParameters* tpcParameters);
35 
41  double calculateDistanceRow(lcio::TrackerHit *hit, lcio::Track *track);
42 
44  double calculateDistanceXY(lcio::TrackerHit *hit, lcio::Track *track);
45 
47  double calculateDistanceZ(lcio::TrackerHit *hit, lcio::Track *track);
48 
49  private:
52  const gear::TPCParameters* _GearParameters;
53  };
54 
55 }
56 
57 #endif //MODULEDISTORIONCALCULATOR
virtual ~ModuleDistortionCalculator()
Virtual destructor.
Definition: ModuleDistortionCalculator.h:39
double calculateDistanceZ(lcio::TrackerHit *hit, lcio::Track *track)
Calculate the distortion per row in the z plane for a hit and a given track.
Definition: ModuleDistortionCalculator.cc:187
double calculateDistanceRow(lcio::TrackerHit *hit, lcio::Track *track)
Calculate the distortion per row along the row projection for a hit and a given track.
Definition: ModuleDistortionCalculator.cc:25
double calculateDistanceXY(lcio::TrackerHit *hit, lcio::Track *track)
Calculate the distortion per row in the xy plane for a hit and a given track.
Definition: ModuleDistortionCalculator.cc:148
Class to calculate distortions per row along the row.
Definition: ModuleDistortionCalculator.h:28