NtpSRNDAPPlaneHistory Class Reference

#include <NtpSRNDAPPlaneHistory.h>

List of all members.

Public Member Functions

 NtpSRNDAPPlaneHistory ()
 NtpSRNDAPPlaneHistory (Int_t plane)
 NtpSRNDAPPlaneHistory (Int_t plane, std::multimap< Double_t, Double_t > stripList)
virtual ~NtpSRNDAPPlaneHistory ()
virtual void Reset ()
void AddStrip (Double_t time, Double_t adc)
Int_t GetNStrips ()
Double_t APPrediction (Double_t time)

Private Attributes

Int_t fPlane
Int_t fPmt
std::multimap< Double_t, Double_t > fStripList

Detailed Description

Definition at line 20 of file NtpSRNDAPPlaneHistory.h.


Constructor & Destructor Documentation

NtpSRNDAPPlaneHistory::NtpSRNDAPPlaneHistory (  ) 

Definition at line 26 of file NtpSRNDAPPlaneHistory.cxx.

References fPlane, and Reset().

00026                                              {
00027   this->Reset();
00028   fPlane=-1;
00029 }

NtpSRNDAPPlaneHistory::NtpSRNDAPPlaneHistory ( Int_t  plane  ) 

Definition at line 33 of file NtpSRNDAPPlaneHistory.cxx.

References fPlane, Msg::kVerbose, MSG, and Reset().

00034 {
00035   MSG("NtpSRNDAPPlaneHistory",Msg::kVerbose) 
00036     <<"Running NtpSRNDAPPlaneHistory constructor..."<<std::endl;
00037   this->Reset();
00038   fPlane = plane;
00039 }

NtpSRNDAPPlaneHistory::NtpSRNDAPPlaneHistory ( Int_t  plane,
std::multimap< Double_t, Double_t >  stripList 
)
NtpSRNDAPPlaneHistory::~NtpSRNDAPPlaneHistory (  )  [virtual]

Definition at line 55 of file NtpSRNDAPPlaneHistory.cxx.

References Msg::kVerbose, MSG, and Reset().

00055                                               {
00056   MSG("NtpSRNDAPPlaneHistory",Msg::kVerbose)   
00057     <<"Running NtpSRNDAPPlaneHistory destructor..."<<std::endl;
00058   this->Reset();
00059 }


Member Function Documentation

void NtpSRNDAPPlaneHistory::AddStrip ( Double_t  time,
Double_t  adc 
)

Definition at line 69 of file NtpSRNDAPPlaneHistory.cxx.

References fStripList.

00069                                                                 {
00070   
00071   fStripList.insert(std::pair<Double_t,Double_t>(time,adc));
00072 }

Double_t NtpSRNDAPPlaneHistory::APPrediction ( Double_t  time  ) 

Definition at line 82 of file NtpSRNDAPPlaneHistory.cxx.

References MuELoss::e, fStripList, Msg::kVerbose, and MSG.

00082                                                           {
00083 
00084   Double_t result = 0;
00085 
00086   multimap<Double_t,Double_t>::iterator pos;
00087   for (pos = fStripList.begin(); pos!=fStripList.end(); ++pos) {
00088     if (pos->first  < (time-100e-9)) {
00089       Double_t deltaT = time-pos->first;
00090       result += pos->second*(1.67e-2*TMath::Exp(-deltaT/343e-9) 
00091                              + 8.5e-4*TMath::Exp(-deltaT/2.4e-6));
00092     }
00093   }
00094 
00095   MSG("NDAPHistory",Msg::kVerbose) << "AP prediction for time "
00096                                 << time << ": " << result << endl;
00097   
00098   return result;
00099 }

Int_t NtpSRNDAPPlaneHistory::GetNStrips (  ) 

Definition at line 76 of file NtpSRNDAPPlaneHistory.cxx.

References fStripList.

00076                                         {
00077   return fStripList.size();
00078 }

void NtpSRNDAPPlaneHistory::Reset (  )  [virtual]

Definition at line 63 of file NtpSRNDAPPlaneHistory.cxx.

References fStripList.

Referenced by NtpSRNDAPPlaneHistory(), and ~NtpSRNDAPPlaneHistory().

00063                                   {
00064   fStripList.clear();
00065 }


Member Data Documentation

Definition at line 34 of file NtpSRNDAPPlaneHistory.h.

Referenced by NtpSRNDAPPlaneHistory().

Int_t NtpSRNDAPPlaneHistory::fPmt [private]

Definition at line 35 of file NtpSRNDAPPlaneHistory.h.

std::multimap<Double_t, Double_t> NtpSRNDAPPlaneHistory::fStripList [private]

Definition at line 36 of file NtpSRNDAPPlaneHistory.h.

Referenced by AddStrip(), APPrediction(), GetNStrips(), and Reset().


The documentation for this class was generated from the following files:

Generated on 2 Nov 2017 for loon by  doxygen 1.6.1