PandaRoot
BSEmcFwEndcapBlindDeconvProcess.h
Go to the documentation of this file.
1 #ifndef BSEMCFWENDCAPBLINDDECOFEATUREEXTRACTIONPROCESS_HH
2 #define BSEMCFWENDCAPBLINDDECOFEATUREEXTRACTIONPROCESS_HH
3 
4 #include <algorithm>
5 #include <memory>
6 #include <string>
7 #include <vector>
8 
9 #include "Rtypes.h"
10 #include "RtypesCore.h"
11 #include "TString.h"
12 
13 #include "PndConstContainer.h"
14 #include "PndMutableContainerI.h"
15 #include "PndProcess.h"
16 
17 #include "BSEmcDigi.h"
18 #include "BSEmcMultiWaveform.h"
19 
22 #include "BSEmcPSAFPGAPeakfinder.h"
25 
27 class BSEmcAbsPSA;
28 class BSEmcWaveform;
29 class TBuffer;
30 class TClass;
31 class TMemberInspector;
32 template <class T>
34 
43  public:
46 
47  virtual void SetDetectorName(const std::string &t_detectorName) /*override*/;
48  virtual void RequestDataContainer(PndContainerRegister *t_register) /*override*/;
49  virtual void GetDataContainer(PndContainerRegister *t_register) /*override*/;
50  virtual void SetupParameters(const PndParameterRegister *t_parameterRegister) /*override*/;
51  virtual void Process() /*override*/;
52 
53  std::vector<BSEmcDigi *> ExtractDigis(const std::vector<const BSEmcMultiWaveform *> &t_waveforms) const;
54  void SetMCDepositBranchName(const TString &t_branchname) { fMCDepositBranchName = t_branchname; }
55  void SetDigiBranchName(const TString &t_branchname) { fDigiBranchName = t_branchname; }
56  void SetWaveformBranchName(const TString &t_branchname) { fWaveformBranchName = t_branchname; }
57 
58  Bool_t IsVptt(const Int_t t_detId) const;
59  void SetVpttIds(const std::vector<Int_t> &t_vpttIds)
60  {
61  fVpttIds = t_vpttIds;
62  std::sort(fVpttIds.begin(), fVpttIds.end());
63  }
64 
65  protected:
66  TString fMCDepositBranchName{""};
67  TString fDigiBranchName{""};
68  TString fWaveformBranchName{""};
69 
72 
73  Double_t fEnergyDigiThreshold{0};
74 
80 
86 
87  std::vector<Int_t> fVpttIds{};
88 
90 };
91 
92 #endif /*BSEMCFWENDCAPBLINDDECOFEATUREEXTRACTIONPROCESS_HH*/
Base Process class.
Definition: PndProcess.h:24
virtual void SetupParameters(const PndParameterRegister *t_parameterRegister)
Fetch all parameters from the PndParameterRegister.
BSEmcPSAFPGAPileUpDetection fPileUpDetectorAPD
Baseclass for pulseshapeanalysis ( featureextraction )
Definition: BSEmcAbsPSA.h:26
represents a simulated waveform in an emc crystal
Definition: BSEmcWaveform.h:63
PndMutableContainerI< BSEmcDigi > * fDigiArray
BSEmcPSAFPGAPileUpDetection fPileUpDetectorVPTT
Blind deconvolution feature extraction approach for the FwEndcap.
std::vector< BSEmcDigi * > ExtractDigis(const std::vector< const BSEmcMultiWaveform *> &t_waveforms) const
PndContainerI< BSEmcMultiWaveform > * fWaveformArray
void SetWaveformBranchName(const TString &t_branchname)
virtual void SetDetectorName(const std::string &t_detectorName)
Set the Detector name. Important, as most EmcParameter need to know for which detector they need to b...
void SetVpttIds(const std::vector< Int_t > &t_vpttIds)
ClassDef(BSEmcFwEndcapBlindDeconvProcess, 1)
void SetDigiBranchName(const TString &t_branchname)
Deconvolution of waveforms based on a chosen target function (gaussian)
Bool_t IsVptt(const Int_t t_detId) const
virtual void Process()
The actual data transformation (digitizing, clustering, etc.) should be defined here.
void SetMCDepositBranchName(const TString &t_branchname)
Container to wrap PndTCA/STDConstContainer (not needed anymore)
Helper class to indirect the Parameter fetching via the FairRuntimeDb.
virtual void RequestDataContainer(PndContainerRegister *t_register)
Pass the container register to the process, and get the processes container requirements.
virtual void GetDataContainer(PndContainerRegister *t_register)
Pass the container register to the process, and set the processes container requirements.