PandaRoot
PndSdsStrip.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 #ifndef fSDSSTRIP_HH
14 #define fSDSSTRIP_HH
15 
16 #include "FairGeoVector.h"
17 #include <iostream>
18 #include <vector>
19 
21 
26 class PndSdsStrip {
27  public:
28  PndSdsStrip() : fNumber(-1), fCharge(-1.0) {}
29 
30  PndSdsStrip(Int_t nr, Double_t charge) : fNumber(nr), fCharge(charge) {}
31 
32  void SetIndex(Int_t nr) { fNumber = nr; }
33  void SetCharge(Double_t charge) { fCharge = charge; }
34 
35  Int_t GetIndex() const { return fNumber; }
36  Double_t GetCharge() const { return fCharge; }
37 
38  friend std::ostream &operator<<(std::ostream &out, const PndSdsStrip &strip)
39  {
40  out << " Strip Nr.: " << strip.GetIndex() << " "
41  << " Charge: " << strip.GetCharge();
42  return out;
43  }
44 
45  private:
46  Int_t fNumber;
47  Double_t fCharge;
48 };
49 
50 #endif // fSDSSTRIP_HH
void SetCharge(Double_t charge)
Definition: PndSdsStrip.h:33
friend std::ostream & operator<<(std::ostream &out, const PndSdsStrip &strip)
Definition: PndSdsStrip.h:38
Class representing strips on wafer-scale.
Definition: PndSdsStrip.h:26
Double_t GetCharge() const
Definition: PndSdsStrip.h:36
Int_t GetIndex() const
Definition: PndSdsStrip.h:35
PndSdsStrip(Int_t nr, Double_t charge)
Definition: PndSdsStrip.h:30
void SetIndex(Int_t nr)
Definition: PndSdsStrip.h:32