[BLAST_ANAWARE] Problem with TCut_coda.h??

From: Peter Karpius (karpiusp@einstein.unh.edu)
Date: Thu Dec 19 2002 - 13:04:35 EST


Guys-

        Please tell me if I am wrong but there may be a problem with
TBLCut_coda.h. I tried for a while to figure out why the tdc offsets were
not incorporated into the new ntuples. I thought I was reading the
default file at first but I later verified that this was not true. When I
looked at how the eep ntuple got filled I found the lines which are
commented out below. I replaced them with the uncommented lines shown.
This all goes back to TBLDetRecon::readcalib. This made the code work but
I only changed it in my directory. Is this correct? Should this be
updated? Thanks-

                                Pete

// double GetSCtdc_left(int i=0) {
// return 0.5*(Det->tof[0][i].tdc[0] + Det->tof[0][i].tdc[1]); }
// double GetSCtdc_right(int i=0) {
// return 0.5*(Det->tof[1][i].tdc[0] + Det->tof[1][i].tdc[1]); }

  double GetSCtdc_left(int i=0) {
    return 0.5*(Det->tof[0][i].t[0] + Det->tof[0][i].t[1]); }
  double GetSCtdc_right(int i=0) {
    return 0.5*(Det->tof[1][i].t[0] + Det->tof[1][i].t[1]); }

  // double GetSCpos_left(int i=0) {
// return Det->tof[0][i].tdc[0] - Det->tof[0][i].tdc[1]; }
// double GetSCpos_right(int i=0) {
// return Det->tof[1][i].tdc[0] - Det->tof[1][i].tdc[1]; }

  double GetSCpos_left(int i=0) {
    return Det->tof[0][i].t[0] - Det->tof[0][i].t[1]; }
  double GetSCpos_right(int i=0) {
    return Det->tof[1][i].t[0] - Det->tof[1][i].t[1]; }
 

----------------------------------------------
Pete Karpius
Graduate Research Assistant
Nuclear Physics Group
University of New Hampshire
phone: (603)862-1220
FAX: (603)862-2998
email: karpiusp@einstein.unh.edu
http://pubpages.unh.edu/~pkarpius/homepage.htm
----------------------------------------------



This archive was generated by hypermail 2.1.2 : Mon Feb 24 2014 - 14:07:29 EST