00001 // $Id: TrackerVeto.cxx,v 1.1.1.1 1999/12/28 01:36:03 burnett Exp $ 00002 // 00003 // Original author: Sawyer Gillespie 00004 // hgillesp@u.washington.edu 00005 // 00006 00007 #include "reconstruction/TrackerVeto.h" // include class declaration 00008 #include "reconstruction/GlastFit.h" 00009 #include "reconstruction/GlastRecon.h" 00010 #include "reconstruction/LbldData.h" 00011 #include "reconstruction/TrackerRecon.h" 00012 00013 // implementation of the TrackerVeto class 00014 00015 TrackerVeto::TrackerVeto (GlastRecon* r) 00016 : ReconAnalysis (r) 00017 { 00018 } 00019 00020 TrackerVeto::~TrackerVeto () 00021 { 00022 } 00023 00024 void TrackerVeto::setUpData () 00025 { 00026 i_trkVeto_code = data()->addElement("trkVeto_code"); 00027 i_trkVeto_Xsigma = data()->addElement("trkVeto_Xsigma"); 00028 i_trkVeto_Ysigma = data()->addElement("trkVeto_Ysigma"); 00029 } 00030 00031 void TrackerVeto::compute () 00032 { 00033 // get the TrackerRecon object which has reconstructed the 00034 // data within the silicon tracker 00035 TrackerRecon* tr = recon()->getTracker(); 00036 00037 // find the best x and y fits to the gamma ray 00038 GFtrack* _Xbest = tr->gammaFit()->getXpair()->getBest(); 00039 GFtrack* _Ybest = tr->gammaFit()->getYpair()->getBest(); 00040 00041 // local variables 00042 int indexhit = 0; 00043 double xsigma = 0, ysigma = 0; 00044 00045 // determine incidence w. ACD system 00046 bool Xveto = _Xbest->veto(indexhit, xsigma); 00047 bool Yveto = _Ybest->veto(indexhit, ysigma); 00048 00049 // determine the id code based upon the results 00050 float idcode = 0; 00051 if (Xveto) idcode = 1; 00052 if (Yveto) idcode += 2; 00053 00054 // set the state of this object to reflect the results of the 00055 // computation 00056 ReconAnalysis::result (new Result(idcode, xsigma, ysigma)); 00057 00058 // add the data to the list of archival data elements. 00059 tr->data.addData(i_trkVeto_code, idcode); 00060 tr->data.addData(i_trkVeto_Xsigma, xsigma); 00061 tr->data.addData(i_trkVeto_Ysigma, ysigma); 00062 }
1.2.3 written by Dimitri van Heesch,
© 1997-2000