#include <PulserSummary.h>
|
|
Definition at line 49 of file PulserSummary.cxx. References MSG. 00050 {
00051 MSG("Pulser",Msg::kVerbose) << "PulserSummary ctor\n";
00052 fMean=0;
00053 fMeanSquare=0;
00054 fRMS=0;
00055 fNumEntries=0;
00056 fChannel=0; // empty object has channel 0
00057 }
|
|
|
Definition at line 59 of file PulserSummary.cxx. 00060 {
00061
00062 }
|
|
|
Definition at line 102 of file PulserSummary.cxx. References fChannel, fMean, fMeanSquare, fNumEntries, fSEId, RawLIAdcSummary::GetChannel(), RawChannelId::GetEncoded(), PlexStripEndId::GetEnd(), RawLIAdcSummary::GetEntries(), RawLIAdcSummary::GetMean(), PlexPlaneId::GetPlane(), RawLIAdcSummary::GetRms(), PlexStripEndId::GetStrip(), and MSG. 00103 {
00104 MSG("Pulser",Msg::kVerbose) << "fChannel " << RawChannelId(fChannel)
00105 << " and Channel is: " << from.GetChannel()
00106 << endl;
00107 if (fChannel==0) {
00108 fChannel=from.GetChannel().GetEncoded();
00109 }
00110 MSG("Pulser",Msg::kVerbose) << "fChannel " << RawChannelId(fChannel)
00111 << " and Channel is: " << from.GetChannel()
00112 << endl;
00113 assert(from.GetChannel().GetEncoded()==fChannel);
00114 Int_t tempEnd=(int)fSEId.GetEnd();
00115 if(fSEId.GetPlane()==10 && fSEId.GetStrip()==4 && tempEnd==1) {
00116 MSG("Pulser",Msg::kVerbose) << "My Channel "
00117 << "\tMean: " << from.GetMean()
00118 << "\tRMS: " << from.GetRms()
00119 << "\tEntries: " << from.GetEntries() << endl;
00120 }
00121
00122
00123 MSG("Pulser",Msg::kVerbose) << "PulserSummary::Add() Got channel "<<fChannel<<endl;
00124 fMean =
00125 fNumEntries*(1.0/(fNumEntries + from.GetEntries())) * fMean
00126 + from.GetEntries()*(1.0/(fNumEntries + from.GetEntries()))
00127 * from.GetMean();
00128 fMeanSquare =
00129 fNumEntries*(1.0/(fNumEntries + from.GetEntries())) *fMeanSquare
00130 + from.GetEntries()*(1.0/(fNumEntries + from.GetEntries()))
00131 * (float(from.GetRms())*from.GetRms()+float(from.GetMean())*from.GetMean());
00132 fNumEntries +=from.GetEntries();
00133 }
|
|
||||||||||||
|
Definition at line 81 of file PulserSummary.cxx. References Add(), fReadoutType, and fSEId. 00082 {
00083 fSEId = seid;
00084 fReadoutType = ReadoutType::kScintStrip;
00085 Add(from);
00086 }
|
|
||||||||||||
|
Definition at line 64 of file PulserSummary.cxx. References fMean, fNumEntries, fNumTriggers, fPinId, fReadoutType, and MSG. Referenced by PulserSummaryList::Add(), and Add(). 00065 {
00066 fPinId = pinid;
00067 fReadoutType = ReadoutType::kPinDiode;
00068 MSG("Pulser",Msg::kVerbose) << "PIN "<<pinid<<" has "<<fMean<<" "<<fNumEntries<<" "<<fNumTriggers<<endl;
00069 Add(from);
00070 }
|
|
|
Definition at line 157 of file PulserSummary.cxx. References fChannel, fMean, fMeanSquare, fNumEntries, PulserNearDigit::GetADC(), PulserNearDigit::GetChannel(), RawChannelId::GetEncoded(), and MSG. 00158 {
00159 MSG("Pulser",Msg::kVerbose) << "fChannel " << RawChannelId(fChannel)
00160 << " and Channel is: " << from.GetChannel()
00161 << endl;
00162 if (fChannel==0) {
00163 fChannel=from.GetChannel().GetEncoded();
00164 }
00165 MSG("Pulser",Msg::kVerbose) << "fChannel " << RawChannelId(fChannel)
00166 << " and Channel is: " << from.GetChannel()
00167 << endl;
00168 assert(from.GetChannel().GetEncoded()==fChannel);
00169 //Int_t tempEnd=(int)fSEId.GetEnd();
00170 MSG("Pulser",Msg::kVerbose)
00171 << "PulserSummary::Add() Got channel "<<fChannel<<endl;
00172 fMean = (float(fNumEntries)/(float(fNumEntries)+1.0))*fMean +
00173 (1.0/(float(fNumEntries)+1.0))*from.GetADC();
00174 fMeanSquare = (float(fNumEntries)/(float(fNumEntries)+1.0))*fMeanSquare +
00175 (1.0/(float(fNumEntries)+1.0))*(from.GetADC()*from.GetADC());
00176 fNumEntries ++;
00177 }
|
|
|
Definition at line 135 of file PulserSummary.cxx. References fChannel, fMean, fMeanSquare, fNumEntries, RawDigit::GetADC(), RawDigit::GetChannel(), RawChannelId::GetEncoded(), and MSG. 00136 {
00137 MSG("Pulser",Msg::kVerbose) << "fChannel " << RawChannelId(fChannel)
00138 << " and Channel is: " << from.GetChannel()
00139 << endl;
00140 if (fChannel==0) {
00141 fChannel=from.GetChannel().GetEncoded();
00142 }
00143 MSG("Pulser",Msg::kVerbose) << "fChannel " << RawChannelId(fChannel)
00144 << " and Channel is: " << from.GetChannel()
00145 << endl;
00146 assert(from.GetChannel().GetEncoded()==fChannel);
00147 //Int_t tempEnd=(int)fSEId.GetEnd();
00148 MSG("Pulser",Msg::kVerbose)
00149 << "PulserSummary::Add() Got channel "<<fChannel<<endl;
00150 fMean = (float(fNumEntries)/(float(fNumEntries)+1.0))*fMean +
00151 (1.0/(float(fNumEntries)+1.0))*from.GetADC();
00152 fMeanSquare = (float(fNumEntries)/(float(fNumEntries)+1.0))*fMeanSquare +
00153 (1.0/(float(fNumEntries)+1.0))*(from.GetADC()*from.GetADC());
00154 fNumEntries ++;
00155 }
|
|
||||||||||||
|
Definition at line 95 of file PulserSummary.cxx. References AddDigit(), fReadoutType, and fSEId. 00096 {
00097 fSEId = seid;
00098 fReadoutType = ReadoutType::kScintStrip;
00099 AddDigit(from);
00100 }
|
|
||||||||||||
|
Definition at line 88 of file PulserSummary.cxx. References AddDigit(), fReadoutType, and fSEId. 00089 {
00090 fSEId = seid;
00091 fReadoutType = ReadoutType::kScintStrip;
00092 AddDigit(from);
00093 }
|
|
||||||||||||
|
Definition at line 72 of file PulserSummary.cxx. References fMean, fNumEntries, fNumTriggers, fPinId, fReadoutType, and MSG. Referenced by PulserFromRawSummaryList::Add(), and AddDigit(). 00074 {
00075 fPinId = pinid;
00076 fReadoutType = ReadoutType::kPinDiode;
00077 MSG("Pulser",Msg::kVerbose) << "PIN "<<pinid<<" has "<<fMean<<" "<<fNumEntries<<" "<<fNumTriggers<<endl;
00078 AddDigit(from);
00079 }
|
|
|
Definition at line 179 of file PulserSummary.cxx. References fChannel, fMean, fMeanSquare, fMeanZC, fNumEntries, fNumTriggers, fRMS, fRMSZC, and MSG. Referenced by PulserSummaryList::Finish(), and PulserFromRawSummaryList::Finish(). 00180 {
00181
00182 if ((fMeanSquare - fMean*fMean)>1) {
00183 fRMS = std::sqrt(fMeanSquare - fMean*fMean);
00184 }
00185 else {
00186 fRMS = 1;
00187 }
00188 fNumTriggers = numTriggers;
00189 fMeanZC = fMean * float(fNumEntries)/float(numTriggers);
00190 float ms = fMeanSquare * float(fNumEntries)/float(numTriggers) -
00191 fMeanZC*fMeanZC;
00192 if (ms>1) {
00193 fRMSZC = std::sqrt(ms);
00194 }
00195 else {
00196 fRMSZC = 1;
00197 }
00198 MSG("Pulser",Msg::kVerbose)
00199 << "PulserSummary::Finish() finished summary in channel: "
00200 << fChannel << " Mean: " << fMean << " RMS: "
00201 << fRMS << " NumEntries: " << fNumEntries << endl;
00202 }
|
|
|
Definition at line 61 of file PulserSummary.h. 00061 {return fChannel;}
|
|
|
Definition at line 65 of file PulserSummary.h. Referenced by PulserRawGainPin::AddPoint(), PulserRawGainF::AddPoint(), PulserRawGain::AddPoint(), PulserGainPin::AddPoint(), PulserGain::AddPoint(), PEGainSummary::GetBest(), PEGainSummary::GetFarError(), PEGainSummary::GetNearError(), PulserRefDriftPin::New(), PulserRefDriftF::New(), PulserRefDrift::New(), PulserRawDriftPin::New(), PulserRawDriftF::New(), PulserRawDrift::New(), PulserDriftPin::New(), and PulserDrift::New(). 00065 {return fNumEntries;}
|
|
|
Definition at line 64 of file PulserSummary.h. Referenced by PulserRawGainPin::AddPoint(), PulserRawGainF::AddPoint(), PulserRawGain::AddPoint(), PulserGainPin::AddPoint(), PulserGain::AddPoint(), PulserRefDriftPin::New(), PulserRefDriftF::New(), PulserRefDrift::New(), PulserRawDriftPin::New(), PulserRawDriftF::New(), PulserRawDrift::New(), PulserDriftPin::New(), and PulserDrift::New(). 00064 {return fRMS/TMath::Sqrt((float)fNumTriggers);}
|
|
|
Definition at line 69 of file PulserSummary.h. 00069 {return fRMSZC/TMath::Sqrt(float(fNumTriggers));}
|
|
|
|
Definition at line 67 of file PulserSummary.h. 00067 {return fMeanZC;}
|
|
|
Definition at line 71 of file PulserSummary.h. Referenced by PulserGainPin::AddPoint(), PulserDriftPin::PulserDriftPin(), PulserFromRawCollectorModule::Reco(), PulserCollectorModule::Reco(), PulserFromRawCollectorModule::ReferencePointReco(), and PulserCollectorModule::ReferencePointReco(). 00071 {return fPinId;}
|
|
|
Definition at line 63 of file PulserSummary.h. Referenced by PEGainSummary::GetFarError(), PEGainSummary::GetFarGain(), PEGainSummary::GetNearError(), and PEGainSummary::GetNearGain(). 00063 {return fRMS;}
|
|
|
Definition at line 68 of file PulserSummary.h. 00068 {return fRMSZC;}
|
|
|
Definition at line 72 of file PulserSummary.h. Referenced by PulserGain::AddPoint(), and PulserDrift::PulserDrift(). 00072 {return fSEId;}
|
|
|
Definition at line 66 of file PulserSummary.h. Referenced by PulserGainPin::AddPoint(), PulserGain::AddPoint(), PulserDriftPin::New(), and PulserDrift::New(). 00066 {return fNumTriggers;}
|
|
|
Definition at line 208 of file PulserSummary.cxx. References fPinId. Referenced by PulserSummaryList::Add(). 00209 {
00210 fPinId = pin;
00211
00212 }
|
|
|
Definition at line 75 of file PulserSummary.h. Referenced by Add(), AddDigit(), and Finish(). |
|
|
Definition at line 77 of file PulserSummary.h. Referenced by Add(), AddDigit(), and Finish(). |
|
|
Definition at line 80 of file PulserSummary.h. Referenced by Add(), AddDigit(), and Finish(). |
|
|
Definition at line 79 of file PulserSummary.h. Referenced by Finish(). |
|
|
Definition at line 81 of file PulserSummary.h. Referenced by Add(), AddDigit(), and Finish(). |
|
|
Definition at line 82 of file PulserSummary.h. Referenced by Add(), AddDigit(), and Finish(). |
|
|
Definition at line 84 of file PulserSummary.h. Referenced by Add(), AddDigit(), and SetPinDiodeId(). |
|
|
Definition at line 85 of file PulserSummary.h. Referenced by Add(), and AddDigit(). |
|
|
Definition at line 76 of file PulserSummary.h. Referenced by Finish(). |
|
|
Definition at line 78 of file PulserSummary.h. Referenced by Finish(). |
|
|
Definition at line 83 of file PulserSummary.h. Referenced by Add(), and AddDigit(). |
1.3.9.1