Hi I added a new class BrDetectorParamsChk which has the map of C1 and RICH. There are also methods for getting nearest tube, tube position and tubes relative to the tube. It overlaps with BrChkvParameters which I think should go away now. Could you look at this Djam ? There is a test program in test where one can see the essence of the tests I have done. The class should be straightforward to use for C1, just use backplane projection, but for RICH someone will have to write a class to get from the spherical mirror to the detector plane. I imagine that the class could be used like this : ..... BrVector3D projHit; const Int_t tube = c1Mgr->GetClosestTube(projHit); Float_t adcSum = c1Rdo->GetAdc(tube); Int_t nTubes = 1; for(Int_t i=-1;i<=1;i++) { for(Int_t j =-1; j<=1;j++) { if(i==0 && j==0) continue; const Int_t neighborTube = c1Mgr->GetTubeWithDirection(tube, i, j); if(neighborTube==-1) continue; adcSum += c1Rdo->GetAdc(neighborTube); nTubes++; } } const Float_t adcAvg = adcSum/nTubes; if(adcAvg>cut) pion .... The modified files were : CVS: Modified Files: CVS: BrUnits.cxx BrUnits.h Added inch used in BrDetectorParamsChk CVS: Modified Files: CVS: .cvsignore Makefile.am CVS: Added Files: CVS: TestDetectorParamsChk.cxx Added test program for the new BrDetectorParamsChk class. CVS: Modified Files: CVS: Include.h LinkDef.h Makefile.am CVS: Added Files: CVS: BrDetectorParamsChk.cxx BrDetectorParamsChk.h Added new class BrDetectorParamsChk. Test program in brat/test. Cheers Peter -- :-) --------------------------------- )-: |Peter H L Christiansen aka PAN @ NBI | |EMAIL : pchristi@nbi.dk | |OFFICE : Tb1 @ NBI | |PHONE : 353 25269 | |SNAIL : Hans Tavsensgade 35, 4th | |PHONE : 35 349336 | :-D --------------------------------- \-:
This archive was generated by hypermail 2b30 : Fri Jul 27 2001 - 06:22:42 EDT