PandaRoot
PndSdsCell.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 // ----- PndSdsCell header file -----
15 // ----- Created by A. Karavdina -----
16 // -------------------------------------------------------------------------
17 
24 #ifndef PNDSDSCELL_H
25 #define PNDSDSCELL_H
26 
27 #include <stdio.h>
28 #include <iostream>
29 #include "TObject.h"
30 
31 class PndSdsCell : public TObject {
32  public:
34  PndSdsCell();
35 
36  PndSdsCell(unsigned int hitUp, unsigned int hitDw);
37 
39  ~PndSdsCell();
40 
43  void SetHitUp(unsigned int &ih) { fhit_upstream = ih; }
44  void SetHitDw(unsigned int &ih) { fhit_downstream = ih; }
45  void SetPV(int &ipv) { fpv = ipv; }
46  int GetHitUp() { return fhit_upstream; }
47  int GetHitDw() { return fhit_downstream; }
48  int GetPV() { return fpv; }
49 
50  private:
51  unsigned int fhit_upstream; // hit upstream
52  unsigned int fhit_downstream; // hit downstream
53  int fpv; // cell position in evolution
54 
55  /* Int_t fsecMC; ///< unique sensor ID */
56  /* bool fisMerged; */
57  ClassDef(PndSdsCell, 1);
58 };
59 
60 #endif
int GetPV()
Definition: PndSdsCell.h:48
void SetHitDw(unsigned int &ih)
Definition: PndSdsCell.h:44
int GetHitDw()
Definition: PndSdsCell.h:47
int GetHitUp()
Definition: PndSdsCell.h:46
void SetPV(int &ipv)
Definition: PndSdsCell.h:45
void SetHitUp(unsigned int &ih)
Definition: PndSdsCell.h:43