PandaRoot
PndLmdDigiStrips.h
Go to the documentation of this file.
1 //****************************************************************************
2 //* This file is part of PandaRoot. *
3 //* *
4 //* PandaRoot is distributed under the terms of the *
5 //* GNU General Public License (GPL) version 3, *
6 //* copied verbatim in the file "LICENSE". *
7 //* *
8 //* Copyright (C) 2006 - 2024 FAIR GmbH and copyright holders of PandaRoot *
9 //* The copyright holders are listed in the file "COPYRIGHTHOLDERS". *
10 //* The authors are listed in the file "AUTHORS". *
11 //****************************************************************************
12 
13 /*
14  * PndLmdDigiStrips.h
15  *
16  * Created on: Aug 9, 2009
17  * Author: huagen
18  */
19 
20 #ifndef PNDLMDDIGISTRIPS_H_
21 #define PNDLMDDIGISTRIPS_H_
22 
23 #include "TObject.h"
24 #include <iostream>
25 #include "TString.h"
26 #include <vector>
27 using namespace std;
28 
29 // define the class for the digis data, which include detName, detID
30 // FE numbers, FE channels, charge of the strip
31 // it shall be registered as a new data type
32 class PndLmdDigiStrips : public TObject {
33  public:
35  PndLmdDigiStrips(Int_t index, Int_t detID, TString detName, Int_t fe, Int_t channel, Double_t charge);
36  //@param index is the position of PndLmdMCPoint in TClonesArray
37  //@param detName is the sensor name
38  //@param detID is the detID
39  //@param FE is the FE module number
40  //@param channel is the channel number in the FE moudule
41  //@param charge is the charge of the related channel
43 
44  // public method
45  std::vector<Int_t> GetIndex() const { return fIndex; }
46  Int_t GetFe() const { return fFE; }
47  Int_t GetChannel() const { return fChannel; }
48  Double_t GetCharge() const { return fCharge; }
49  TString GetDetName() const { return fdetName; }
50  Int_t GetDetID() const { return fdetID; }
51 
52  private:
53  TString fdetName;
54  // Int_t fIndex;
55  std::vector<Int_t> fIndex; //??
56  Int_t fdetID;
57  Int_t fFE;
58  Int_t fChannel;
59  Double_t fCharge;
60 
61  ClassDef(PndLmdDigiStrips, 1);
62 };
63 
64 #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