/[PAMELA software]/DarthVader/ToFLevel2/src/ToFLevel2.cpp
ViewVC logotype

Diff of /DarthVader/ToFLevel2/src/ToFLevel2.cpp

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.14 by pam-de, Thu Mar 1 10:53:54 2007 UTC revision 1.15 by pam-de, Wed Apr 4 07:23:27 2007 UTC
# Line 153  ToFPMT *ToFLevel2::GetToFPMT(Int_t ihit) Line 153  ToFPMT *ToFLevel2::GetToFPMT(Int_t ihit)
153  //--------------------------------------  //--------------------------------------
154  /**  /**
155   * Method to get the plane ID (11 12 21 22 31 32) from the plane index (0 1 2 3 4 5)   * Method to get the plane ID (11 12 21 22 31 32) from the plane index (0 1 2 3 4 5)
156     * @param Plane index (0,1,2,3,4,5)
157   */   */
158    Int_t  ToFLevel2::GetToFPlaneID(Int_t ip){    Int_t  ToFLevel2::GetToFPlaneID(Int_t ip){
159        if(ip>=0 && ip<6)return 10*((int)(ip/2+1.1))+(ip%2)+1;        if(ip>=0 && ip<6)return 10*((int)(ip/2+1.1))+(ip%2)+1;
# Line 160  ToFPMT *ToFLevel2::GetToFPMT(Int_t ihit) Line 161  ToFPMT *ToFLevel2::GetToFPMT(Int_t ihit)
161    };    };
162  /**  /**
163   * Method to get the plane index (0 1 2 3 4 5) from the plane ID (11 12 21 22 31 32)   * Method to get the plane index (0 1 2 3 4 5) from the plane ID (11 12 21 22 31 32)
164     * @param plane Plane ID (11, 12, 21, 22, 31, 32)
165   */   */
166    Int_t  ToFLevel2::GetToFPlaneIndex(Int_t plane_id){    Int_t  ToFLevel2::GetToFPlaneIndex(Int_t plane_id){
167        if(        if(
# Line 174  ToFPMT *ToFLevel2::GetToFPMT(Int_t ihit) Line 176  ToFPMT *ToFLevel2::GetToFPMT(Int_t ihit)
176    };    };
177  /**  /**
178   * Method to know if a given ToF paddle was hit, that is there is a TDC signal   * Method to know if a given ToF paddle was hit, that is there is a TDC signal
179   * from both PMTs   * from both PMTs. The method uses the "tof_j_flag" variable.
180   * @param plane Plane ID (11, 12, 21, 22, 31, 32) or Plane index (0,1,2,3,4,5).   * @param plane Plane ID (11, 12, 21, 22, 31, 32) or Plane index (0,1,2,3,4,5).
181   * @param paddle_id Paddle ID.   * @param paddle_id Paddle ID.
182   * @return 1 if the paddle was hit.   * @return 1 if the paddle was hit.
# Line 207  Int_t ToFLevel2::GetNHitPaddles(Int_t pl Line 209  Int_t ToFLevel2::GetNHitPaddles(Int_t pl
209    
210    
211  /**  /**
212   * Method to get the mean dEdx from a given ToF plane   * Method to get the mean dEdx from a given ToF plane. This current version
213     * is just summing up all PMT signals, which will not give proper results,
214     * and needs a revision.
215   * @param notrack Track Number   * @param notrack Track Number
216   * @param plane Plane index (0,1,2,3,4,5).   * @param plane Plane index (0,1,2,3,4,5).
217   */   */
# Line 241  Float_t ToFLevel2::GetdEdx(Int_t notrack Line 245  Float_t ToFLevel2::GetdEdx(Int_t notrack
245    
246    
247  /**  /**
248   * Method to fill the ADC_C (dEdx)  and TDC matrix (4,12)   * Method to fill the ADC_C 4x12 matrix with the dEdx values and the TDC 4x12 matrix
249     * with the time-walk corrected TDC values.
250   * @param notrack Track Number   * @param notrack Track Number
251   * @param adc  ADC_C matrix with dEdx values   * @param adc  ADC_C matrix with dEdx values
252   * @param tdc  TDC matrix   * @param tdc  TDC matrix
# Line 303  Int_t ToFLevel2::GetPlaneIndex(Int_t pmt Line 308  Int_t ToFLevel2::GetPlaneIndex(Int_t pmt
308  };  };
309    
310  /**  /**
311   * Method to get the PMT_ID if the index (4,12) is given   * Method to get the PMT_ID if the index (4,12) is given. We have 4 channels on
312     * each of the 12 half-boards, this method decodes which PMT is cables to which
313     * channel.
314   * @param hh Channel   * @param hh Channel
315   * @param kk HalfBoard   * @param kk HalfBoard
316   */   */
# Line 336  Int_t ToFLevel2::GetPMTid(Int_t hh, Int_ Line 343  Int_t ToFLevel2::GetPMTid(Int_t hh, Int_
343  };  };
344    
345  /**  /**
346   * Method to get the PMT name (like "S11_1A") if the PMT_ID is given   * Method to get the PMT name (like "S11_1A") if the PMT_ID is given. The first
347     * PMT=0 is S11_1A, then S11_1B, then S11_2A, and so on, up to S32_3B which is PMT=47
348   * @param ind  PMT_ID (0 - 47)   * @param ind  PMT_ID (0 - 47)
349   */   */
350  TString ToFLevel2::GetPMTName(Int_t ind){  TString ToFLevel2::GetPMTName(Int_t ind){
# Line 360  TString ToFLevel2::GetPMTName(Int_t ind) Line 368  TString ToFLevel2::GetPMTName(Int_t ind)
368  };  };
369    
370  /**  /**
371   * Method to get the PMT index if the PMT ID is given   * Method to get the PMT index if the PMT ID is given. This method is the
372     * "reverse" of method "GetPMTid"
373   * @param ind  PMT_ID (0 - 47)   * @param ind  PMT_ID (0 - 47)
374   * @param hb   HalfBoard   * @param hb   HalfBoard
375   * @param ch   Channel   * @param ch   Channel

Legend:
Removed from v.1.14  
changed lines
  Added in v.1.15

  ViewVC Help
Powered by ViewVC 1.1.23