ATTPCROOT  0.3.0-alpha
A ROOT-based framework for analyzing data from active target detectors
AtROOTresponse.h
Go to the documentation of this file.
1 #ifndef ATROOTRESPONSE_H
2 #define ATROOTRESPONSE_H
3 
4 #include "AtElectronicResponse.h"
5 #include "AtRawEvent.h"
6 
7 #include <stdexcept>
8 #include <string>
9 
10 namespace ElectronicResponse {
16 protected:
18  double fTBTime;
19 
20 public:
21  AtRootResponse(double tbTime, AtRawEvent response);
22  AtRootResponse(double tbTime, std::string filePath, std::string objectName);
23 
24  virtual double GetResponse(double time) const override
25  {
26  throw std::invalid_argument("A pad number must be specified to use this response function");
27  }
28  virtual double GetResponse(int padNum, double time) const override;
29 };
30 } // namespace ElectronicResponse
31 
32 #endif //#ifndef ATROOTRESPONSE_H
ElectronicResponse::AtRootResponse
Response function is represended by an AtEvent in a root file.
Definition: AtROOTresponse.h:15
AtRawEvent.h
AtElectronicResponse.h
ElectronicResponse::AtRootResponse::GetResponse
virtual double GetResponse(double time) const override
Definition: AtROOTresponse.h:24
ElectronicResponse::AtElectronicResponse
Base class for describing the response of electronics to charge.
Definition: AtElectronicResponse.h:32
AtRawEvent
Definition: AtRawEvent.h:34
ElectronicResponse::AtRootResponse::fTBTime
double fTBTime
Definition: AtROOTresponse.h:18
ElectronicResponse::AtRootResponse::fResponse
AtRawEvent fResponse
Definition: AtROOTresponse.h:17
ElectronicResponse::AtRootResponse::AtRootResponse
AtRootResponse(double tbTime, AtRawEvent response)
Definition: AtROOTresponse.cxx:23
ElectronicResponse
Definition: AtVectorResponse.h:8