Re: questions for cent module

From: Christian Holm Christensen (cholm@hehi03.nbi.dk)
Date: Tue May 01 2001 - 06:53:32 EDT

  • Next message: Christian Holm Christensen: "Problem Compiling GBRAHMS on Solaris (SPARC)"

    Hi Eun-Joo,
    
    On Mon, 30 Apr 2001 17:13:08 -0400
    Eun-Joo Kim <ejkim@bnl.gov> wrote
    concerning ": questions for cent module":
    > Hi, I have some questions about common centrality module.
    
    First off, such questions should go to the brahms-dev-l list, so
    others may benefiet from you insight. (This is also why I quote the
    entire mail here.)
    
    > This was the first time I tried to use your "BrTileCent".
    > I would like to put the "BrTileCent" to "MRS track tree" part.
    > I used Brat which I checked out in Mar 21.
    > First I got message "cent=0" from followings;
    > 
    >     BrTileCent* tileCent = (BrTileCent*)
    > event->GetObject("CentMultTile");
    >     float centcut = tileCent->GetHighCut();
    >     cout<<"cent = "<<tileCent->GetHighCut()<<endl;
    
    I assume you have used BrTileRdoModule a BrTileCentModule before doing
    any of this?
    
    > So I updated just "brat mult" part.
    > Compiling was OK, however, when I was running executable,
    > it failed, something "abort". I debugged and error messages were
    > 
    >  Program received signal SIGFPE, Arithmetic exception.
    > 0x40f3869d in BrTileRdoModule::CalibrateRings (this=0x882b150,
    > rdo=0x913d320)
    >     at BrTileRdoModule.cxx:530
    > 530                 BR_TILE_RING_MAX /rdo->fRingHits[i];     
    > 
    
    Yeps. It's actually rather imparrising. I made an mistake (I'll
    correct it in a moment, just before I go to "international workers
    day" - you know, a good old socialistic tradition, not really meant
    for academia though.) The problem is, that rdo->fRingHits[i] may be
    zero, in which case there's a division by zero!   
    
    A temporary hack, is to set the outlier method to kNoCorrection, like 
    
      BrTileRdoModule* tileModule = new BrTileRdoModule("MultTile", 
    						    "Tile Reducer");
      tileModule->SetOutlerMethod(BrTileRdoModule::kNoCorrection); 
    
    but the correction should be there soon though. 
    
    > My working code is located in
    > "/home/ejkim/YonSeub/cen/GenerateTrackTree.cxx"  
    > on pii machine.  I would appreciate if you can give some hints.
    
    Yours, 
    
    Christian  -----------------------------------------------------------
    Holm Christensen                             Phone:  (+45) 35 35 96 91 
      Sankt Hansgade 23, 1. th.                  Office: (+45) 353  25 305 
      DK-2200 Copenhagen N                       Web:    www.nbi.dk/~cholm    
      Denmark                                    Email:       cholm@nbi.dk
     
    



    This archive was generated by hypermail 2b29 : Tue May 01 2001 - 06:54:22 EDT