PandaRoot
PndEmcMultiPSA.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 // Description:
15 // Wrapping class to manage multiple independent PSAs
16 // Guang Zhao
17 //-----------------------------------------------------------
18 
19 
20 #ifndef PNDEMCMULTIPSA_H_
21 #define PNDEMCMULTIPSA_H_
22 
23 #include <vector>
24 
25 #include "PndEmcAbsPSA.h"
26 
28 class PndEmcWaveform;
29 
37 {
38  public:
40  void AddPSA(PndEmcAbsPSA*);
41 
42  virtual ~PndEmcMultiPSA();
43 
44  virtual Int_t Process(const PndEmcWaveform* waveform);
45  virtual void Reset();
46  virtual void GetHit(Int_t i, Double_t &energy, Double_t &time);
47  Int_t GetAPDGainIndex() { return fAPDGainIndex; }
48 
49  private:
50  std::vector<PndEmcAbsPSA*> fPSA;
51  std::vector<Int_t> fNhit;
52  PndEmcPSACombinator* fCombinator; // combinator to combine multi-PSA outputs to a signle output
53  Int_t fAPDGainIndex; // 0 for hg, 1 for lg
54  std::vector<Double_t> fEnergyList;
55  std::vector<Double_t> fTimeList;
56 
58 };
59 
60 #endif
virtual void GetHit(Int_t i, Double_t &energy, Double_t &time)
Get energy and time of hit.
virtual void Reset()
reset found hits
void AddPSA(PndEmcAbsPSA *)
ClassDef(PndEmcAbsPSA, 1)
Wrapping class to manage multiple independent PSAs.
unsigned int i
Definition: P4_F32vec4.h:33
virtual ~PndEmcMultiPSA()
PndEmcMultiPSA(PndEmcPSACombinator *)
represents a simulated waveform in an emc crystal
virtual Int_t Process(const PndEmcWaveform *waveform)
Find Hits in Waveform.
Baseclass for pulseshapeanalysis ( featureextraction )
Definition: PndEmcAbsPSA.h:33
Int_t GetAPDGainIndex()