QwAnalysis
QwDelayLine.h
Go to the documentation of this file.
1 //
2 // C++ Interface: QwDelayLine
3 //
4 // Description:
5 //
6 //
7 // Author: siyuan yang <sxyang@linux-ehar>, (C) 2009
8 //
9 // Copyright: See COPYING file that comes with this distribution
10 //
11 //
12 
13 #ifndef QWDELAYLINE_H
14 #define QWDELAYLINE_H
15 
16 #include "QwTypes.h"
17 
18 #include <stdlib.h>
19 #include <stdio.h>
20 #include <iostream>
21 
22 #include <vector>
23 #include <utility>
24 using std::vector;
25 
26 /**
27  @author siyuan yang
28 */
29 ///
30 /// \ingroup QwTracking
32 {
33  public:
35  QwDelayLine(const Int_t pk,const Int_t oct,const Int_t pl,const Int_t dir,const Int_t firstwire):fPackage((EQwDetectorPackage)pk),fOctant(oct),fPlane(pl),fDirection((EQwDirectionID)dir),fFirstWire(firstwire),Fill(false),Processed(false),Ambiguous(false){};
36 
37  virtual ~QwDelayLine();
38  //Int_t fPackage;
39  //Int_t fPlane;
40  //Int_t fDirection;
42  Int_t fOctant;
43  Int_t fPlane;
45  Int_t fFirstWire;
46 
47 
48  Bool_t Fill; //whether this delay line has been filled in with information
49  Bool_t Processed;
50  Bool_t Ambiguous;
51 
52  vector<vector<Int_t> > Wire; // indexed by different hits and different wires because of the ambiguity in the same hit
53  vector<std::pair<Int_t,Int_t> > Hitscount;
54  vector<std::pair<Double_t,Double_t> > Windows;
55  vector<Double_t> LeftHits;
56  vector<Double_t> RightHits;
57  static const Double_t kTimeStep;
58  static const Int_t kWireStep;
59 
60  void ProcessHits(Bool_t k);
61  void Wirenumber(Double_t&);
62 
63 };
64 
65 #endif
Bool_t Processed
Definition: QwDelayLine.h:49
vector< vector< Int_t > > Wire
Definition: QwDelayLine.h:52
static const Double_t kTimeStep
Definition: QwDelayLine.h:57
void ProcessHits(Bool_t k)
Definition: QwDelayLine.cc:81
Int_t fFirstWire
Definition: QwDelayLine.h:45
Int_t fOctant
Definition: QwDelayLine.h:42
EQwDetectorPackage fPackage
Definition: QwDelayLine.h:41
vector< std::pair< Double_t, Double_t > > Windows
Definition: QwDelayLine.h:54
QwDelayLine(const Int_t pk, const Int_t oct, const Int_t pl, const Int_t dir, const Int_t firstwire)
Definition: QwDelayLine.h:35
EQwDirectionID fDirection
Definition: QwDelayLine.h:44
vector< Double_t > RightHits
Definition: QwDelayLine.h:56
EQwDetectorPackage
Definition: QwTypes.h:70
static const Int_t kWireStep
Definition: QwDelayLine.h:58
Int_t fPlane
Definition: QwDelayLine.h:43
virtual ~QwDelayLine()
Definition: QwDelayLine.cc:127
vector< Double_t > LeftHits
Definition: QwDelayLine.h:55
vector< std::pair< Int_t, Int_t > > Hitscount
Definition: QwDelayLine.h:53
Bool_t Fill
Definition: QwDelayLine.h:48
EQwDirectionID
Definition: QwTypes.h:41
void Wirenumber(Double_t &)
Definition: QwDelayLine.cc:20
Bool_t Ambiguous
Definition: QwDelayLine.h:50