Changeset 8304 for trunk/MagicSoft/Mars/msignal/MExtractTime.cc
- Timestamp:
- 02/04/07 15:33:08 (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/msignal/MExtractTime.cc
r8154 r8304 1 1 /* ======================================================================== *\ 2 ! $Name: not supported by cvs2svn $:$Id: MExtractTime.cc,v 1.2 2 2006-10-24 08:24:52tbretz Exp $2 ! $Name: not supported by cvs2svn $:$Id: MExtractTime.cc,v 1.23 2007-02-04 15:30:16 tbretz Exp $ 3 3 ! -------------------------------------------------------------------------- 4 4 ! … … 86 86 87 87 const TString MExtractTime::fgNameTimeCam = "MArrivalTimeCam"; 88 88 89 // -------------------------------------------------------------------------- 89 90 // … … 109 110 } 110 111 111 112 113 112 // -------------------------------------------------------------------------- 114 113 // … … 132 131 } 133 132 134 // --------------------------------------------------------------------------135 //136 // The ReInit calls:137 // - MExtractor::ReInit()138 //139 // Call:140 // - MArrivalTimeCam::SetUsedFADCSlices(fHiGainFirst, fHiGainLast, fNumHiGainSamples,141 // fLoGainFirst, fLoGainLast, fNumLoGainSamples);142 /*143 Bool_t MExtractTime::ReInit(MParList *pList)144 {145 if (!MExtractor::ReInit(pList))146 return kFALSE;147 148 // if (fArrTime)149 // fArrTime->SetUsedFADCSlices(fHiGainFirst, fHiGainLast+fHiLoLast, fLoGainFirst, fLoGainLast);150 151 return kTRUE;152 }153 */154 // --------------------------------------------------------------------------155 //156 // Calculate the integral of the FADC time slices and store them as a new157 // pixel in the MArrivalTimeCam container.158 /*159 Int_t MExtractTime::Process()160 {161 162 163 MRawEvtPixelIter pixel(fRawEvt);164 165 while (pixel.Next())166 {167 //168 // Find signal in hi- and lo-gain169 //170 Float_t timehi=0., deltatimehi=0.;171 Byte_t sathi=0;172 173 const Int_t pixid = pixel.GetPixelId();174 const MPedestalPix &ped = (*fPedestals)[pixid];175 MArrivalTimePix &pix = (*fArrTime)[pixid];176 177 FindTimeHiGain(pixel.GetHiGainSamples()+fHiGainFirst, timehi, deltatimehi, sathi, ped);178 179 Float_t timelo=0., deltatimelo=0.;180 Byte_t satlo=0;181 182 if ((sathi)&&pixel.HasLoGain())183 FindTimeLoGain(pixel.GetLoGainSamples()+fLoGainFirst, timelo, deltatimelo, satlo, ped);184 185 pix.SetArrivalTime(timehi, deltatimehi, timelo-fOffsetLoGain, deltatimelo);186 pix.SetGainSaturation(sathi, satlo);187 188 }189 190 fArrTime->SetReadyToSave();191 192 return kTRUE;193 }*/194 133 195 134 void MExtractTime::Print(Option_t *o) const 196 135 { 197 // if (IsA()==MExtractTime::Class())198 // *fLog << GetDescriptor() << ":" << endl;199 136 MExtractor::Print(o); 200 137 *fLog << " Offset Lo-Gain: " << fOffsetLoGain << endl;
Note:
See TracChangeset
for help on using the changeset viewer.