PandaRoot
PndLmdDigiStrips.h
Go to the documentation of this file.
1 /*
2  * PndLmdDigiStrips.h
3  *
4  * Created on: Aug 9, 2009
5  * Author: huagen
6  */
7 
8 #ifndef PNDLMDDIGISTRIPS_H_
9 #define PNDLMDDIGISTRIPS_H_
10 
11 #include "TObject.h"
12 #include <iostream>
13 #include "TString.h"
14 #include <vector>
15 using namespace std;
16 
17 // define the class for the digis data, which include detName, detID
18 // FE numbers, FE channels, charge of the strip
19 // it shall be registered as a new data type
20 class PndLmdDigiStrips : public TObject {
21  public:
23  PndLmdDigiStrips(Int_t index, Int_t detID, TString detName, Int_t fe, Int_t channel, Double_t charge);
24  //@param index is the position of PndLmdMCPoint in TClonesArray
25  //@param detName is the sensor name
26  //@param detID is the detID
27  //@param FE is the FE module number
28  //@param channel is the channel number in the FE moudule
29  //@param charge is the charge of the related channel
31 
32  // public method
33  std::vector<Int_t> GetIndex() const { return fIndex; }
34  Int_t GetFe() const { return fFE; }
35  Int_t GetChannel() const { return fChannel; }
36  Double_t GetCharge() const { return fCharge; }
37  TString GetDetName() const { return fdetName; }
38  Int_t GetDetID() const { return fdetID; }
39 
40  private:
41  TString fdetName;
42  // Int_t fIndex;
43  std::vector<Int_t> fIndex; //??
44  Int_t fdetID;
45  Int_t fFE;
46  Int_t fChannel;
47  Double_t fCharge;
48 
49  ClassDef(PndLmdDigiStrips, 1);
50 };
51 
52 #endif /* PNDLMDDIGISTRIPS_H_ */
TString GetDetName() const
STL namespace.
Double_t GetCharge() const
std::vector< Int_t > GetIndex() const
Int_t GetChannel() const
Int_t GetDetID() const
Int_t GetFe() const