7 #ifndef DRIFTRESPONSE_H 8 #define DRIFTRESPONSE_H 31 void SetResponse (
double fMean,
double fMeanErr,
double fRMS,
int fNHits );
41 DriftResponse(
int fRun, uint32_t fStartTime, uint32_t fEndTime);
48 uint32_t
EndTime ()
const {
return endTime; };
50 void AddChannelResponse (
int fOffChan,
double fMean,
double fMeanErr,
double fRMS,
int fNHits);
52 double Mean (
int fOffChan)
const;
53 double MeanErr (
int fOffChan)
const;
54 double RMS (
int fOffChan)
const;
55 double NHits (
int fOffChan)
const;
58 bool CheckForChannel (
int fOffChan )
const;
59 bool GetChannelResponse (
int fOffChan,
double &fMean,
double &fMeanErr,
double &fRMS,
int &fNHits)
const;
61 std::map<int, MeanStruct >
const&
ReturnMap ()
const {
return meanMap; };
79 #endif // DRIFTRESPONSE_H
Structure to hold drift response in a single channel at a single time.
int NHits() const
Return rms of distribution.
std::map< int, MeanStruct > meanMap
End time of the run period.
uint32_t startTime
Run number.
std::ostream & operator<<(std::ostream &o, const DriftResponse &dr)
double meanerr
Mean response.
double RMS() const
Return error on mean.
double Mean() const
Number of hits in mean calculation.
double rms
Error on mean response.
uint32_t endTime
Start time of the run period.
void SetResponse(double fMean, double fMeanErr, double fRMS, int fNHits)
Return number of hits in distribution.
Histograms used by attenuation calibration.
uint32_t EndTime() const
Return subrun start time.
uint32_t StartTime() const
Return run number.
std::map< int, MeanStruct > const & ReturnMap() const
double MeanErr() const
Return mean.
int nhits
Error on mean response.