@@ -38,7 +38,7 @@ namespace TPC
3838// /
3939// / This class is the base class for raw data calibrations
4040// / It implements base raw reader functionality and calls
41- // / an 'Update ' function for each digit
41+ // / an 'update ' function for each digit
4242// /
4343// / origin: TPC
4444// / \author Jens Wiechula, Jens.Wiechula@ikf.uni-frankfurt.de
@@ -56,24 +56,24 @@ class CalibRawBase
5656
5757 CalibRawBase (PadSubset padSubset = PadSubset::ROC ) : mMapper (Mapper::instance()), mNevents (0 ), mTimeBinsPerCall (500 ), mProcessedTimeBins (0 ), mPresentEventNumber (0 ), mPadSubset (padSubset) {;}
5858
59- // / Update function called once per digit
59+ // / update function called once per digit
6060 // /
6161 // / \param roc readout chamber
6262 // / \param row row in roc
6363 // / \param pad pad in row
6464 // / \param timeBin time bin
6565 // / \param signal ADC signal
66- virtual Int_t UpdateROC (const Int_t roc, const Int_t row, const Int_t pad,
66+ virtual Int_t updateROC (const Int_t roc, const Int_t row, const Int_t pad,
6767 const Int_t timeBin, const Float_t signal) = 0;
6868
69- // / Update function called once per digit
69+ // / update function called once per digit
7070 // /
7171 // / \param cru CRU
7272 // / \param row row in CRU
7373 // / \param pad pad in row
7474 // / \param timeBin time bin
7575 // / \param signal ADC signal
76- virtual Int_t UpdateCRU (const CRU & cru, const Int_t row, const Int_t pad,
76+ virtual Int_t updateCRU (const CRU & cru, const Int_t row, const Int_t pad,
7777 const Int_t timeBin, const Float_t signal) = 0;
7878
7979 // / add GBT frame container to process
@@ -82,23 +82,23 @@ class CalibRawBase
8282 // / add RawReader
8383 void addRawReader (RawReader *reader) { mRawReaders .push_back (std::unique_ptr<RawReader>(reader)); }
8484
85- // / set number of time bins to process in one call to ProcessEvent
85+ // / set number of time bins to process in one call to processEvent
8686 void setTimeBinsPerCall (Int_t nTimeBins) { mTimeBinsPerCall = nTimeBins; }
8787
88- // / return the number of time bins processed in one call to ProcessEvent
88+ // / return the number of time bins processed in one call to processEvent
8989 Int_t getTimeBinsPerCall () const { return mTimeBinsPerCall ; }
9090
9191 // / return pad subset type used
9292 PadSubset getPadSubset () const { return mPadSubset ; }
9393
9494 // / Process one event
9595 // / \param eventNumber: Either number >=0 or -1 (next event) or -2 (previous event)
96- ProcessStatus ProcessEvent (int eventNumber=-1 );
96+ ProcessStatus processEvent (int eventNumber=-1 );
9797
9898 void setupContainers (TString fileInfo);
9999
100100 // / Rewind the events
101- void RewindEvents ();
101+ void rewindEvents ();
102102
103103 // / Dump the relevant data to file
104104 virtual void dumpToFile (TString filename) {}
@@ -117,45 +117,45 @@ class CalibRawBase
117117
118118 private:
119119 size_t mNevents ; // !< number of processed events
120- Int_t mTimeBinsPerCall ; // !< number of time bins to process in ProcessEvent
120+ Int_t mTimeBinsPerCall ; // !< number of time bins to process in processEvent
121121 size_t mProcessedTimeBins ; // !< number of processed time bins in last event
122122 size_t mPresentEventNumber ; // !< present event number
123123 PadSubset mPadSubset ; // !< pad subset type used
124124 std::vector<std::unique_ptr<GBTFrameContainer>> mGBTFrameContainers ; // ! raw reader pointer
125125 std::vector<std::unique_ptr<RawReader>> mRawReaders ; // ! raw reader pointer
126126
127- virtual void ResetEvent () = 0;
128- virtual void EndEvent () = 0;
127+ virtual void resetEvent () = 0;
128+ virtual void endEvent () = 0;
129129
130130 // / Process one event with mTimeBinsPerCall length using GBTFrameContainers
131- ProcessStatus ProcessEventGBT ();
131+ ProcessStatus processEventGBT ();
132132
133133 // / Process one event using RawReader
134- ProcessStatus ProcessEventRawReader (int eventNumber=-1 );
134+ ProcessStatus processEventRawReader (int eventNumber=-1 );
135135
136136};
137137
138138// ----------------------------------------------------------------
139139// Inline Functions
140140// ----------------------------------------------------------------
141- inline CalibRawBase::ProcessStatus CalibRawBase::ProcessEvent (int eventNumber)
141+ inline CalibRawBase::ProcessStatus CalibRawBase::processEvent (int eventNumber)
142142{
143143 if (mGBTFrameContainers .size ()) {
144- return ProcessEventGBT ();
144+ return processEventGBT ();
145145 }
146146 else if (mRawReaders .size ()) {
147- return ProcessEventRawReader (eventNumber);
147+ return processEventRawReader (eventNumber);
148148 }
149149 else {
150150 return ProcessStatus::NoReaders;
151151 }
152152}
153153
154154// ______________________________________________________________________________
155- inline CalibRawBase::ProcessStatus CalibRawBase::ProcessEventGBT ()
155+ inline CalibRawBase::ProcessStatus CalibRawBase::processEventGBT ()
156156{
157157 if (!mGBTFrameContainers .size ()) return ProcessStatus::NoReaders;
158- ResetEvent ();
158+ resetEvent ();
159159
160160 // loop over raw readers, fill digits for 500 time bins and process
161161 // digits
@@ -203,8 +203,8 @@ inline CalibRawBase::ProcessStatus CalibRawBase::ProcessEventGBT()
203203 const int timeBin= i; // digi.getTimeStamp();
204204 const float signal = digi.getChargeFloat ();
205205
206- UpdateCRU (cru, row, pad, timeBin, signal );
207- UpdateROC (roc, row+rowOffset, pad, timeBin, signal );
206+ updateCRU (cru, row, pad, timeBin, signal );
207+ updateROC (roc, row+rowOffset, pad, timeBin, signal );
208208 }
209209 ++readTimeBins;
210210 }
@@ -223,16 +223,16 @@ inline CalibRawBase::ProcessStatus CalibRawBase::ProcessEventGBT()
223223 }
224224 }
225225
226- EndEvent ();
226+ endEvent ();
227227 ++mNevents ;
228228 return status;
229229}
230230
231231// ______________________________________________________________________________
232- inline CalibRawBase::ProcessStatus CalibRawBase::ProcessEventRawReader (int eventNumber)
232+ inline CalibRawBase::ProcessStatus CalibRawBase::processEventRawReader (int eventNumber)
233233{
234234 if (!mRawReaders .size ()) return ProcessStatus::NoReaders;
235- ResetEvent ();
235+ resetEvent ();
236236
237237 // loop over raw readers, fill digits for 500 time bins and process
238238 // digits
@@ -303,8 +303,8 @@ inline CalibRawBase::ProcessStatus CalibRawBase::ProcessEventRawReader(int event
303303 const float signal = float (signalI);
304304 // const FECInfo& fecInfo = mTPCmapper.getFECInfo(PadSecPos(roc, row, pad));
305305 // printf("Call update: %d, %d, %d, %d (%d), %.3f -- reg: %02d -- FEC: %02d, Chip: %02d, Chn: %02d\n", roc, row, pad, timeBin, i, signal, cru.region(), fecInfo.getIndex(), fecInfo.getSampaChip(), fecInfo.getSampaChannel());
306- UpdateCRU (cru, row, pad, timeBin, signal );
307- UpdateROC (roc, row+rowOffset, pad, timeBin, signal );
306+ updateCRU (cru, row, pad, timeBin, signal );
307+ updateROC (roc, row+rowOffset, pad, timeBin, signal );
308308 ++timeBin;
309309 hasData=true ;
310310 }
@@ -324,7 +324,7 @@ inline CalibRawBase::ProcessStatus CalibRawBase::ProcessEventRawReader(int event
324324 status = ProcessStatus::LastEvent;
325325 }
326326
327- EndEvent ();
327+ endEvent ();
328328 ++mNevents ;
329329 return status;
330330}
0 commit comments