Re: Another change prop. - BrVertexFilter

From: Christian Holm Christensen (cholm@hehi03.nbi.dk)
Date: Wed Dec 12 2001 - 13:26:09 EST

  • Next message: Christian Holm Christensen: "Re: Upcoming BRAT changes"

    Hi Bjorn at all, 
    
    On Wed, 12 Dec 2001 09:56:53 -0500 (EST)
    Bjorn H Samset <bjornhs@rcf2.rhic.bnl.gov> wrote
    concerning "Another change prop. - BrVertexFilter":
    > 
    > Hi dev'ils.
    
    He he, more funny names - did I mention the 70'ies Danish Punk band
    called Brats? if not, it's one of my friends big brothers band! Ha
    ha!?  
    
    > While we're at it I'd like to make another change - in BrVertexFilter.
    > Currently it works like this:
    > 
    > if (require bb vertex < 15)
    > 1) check if bb vertex is there
    > 2) If yes, check if |z|<15 - stop if not
    > 3) if no bb vertex, continue!
    > 
    > This is good if we then e.g. cut on zdc, but not if bb<15 is my only cut -
    > I want to add a flag saying wether you should _demand_ a specific vertex
    > (zdc/bb/tpc).
    > 
    > More importantly, I'd like to change the order in which it checks the BB
    > vertices - it currently looks for BbRdo first and then for BrBbVertex. I
    > guess the other way around would be more sensible since BrBbVertex is more
    > precise.
    
    That;'s easily done - just add more BrVertexFilter's.  That is, do 
      
      //__________________________________________________________________
      // Module: BrVertexFilter
      BrVertexFilter* vertexFilter = 
        new BrVertexFilter("bbfilter", "BB vertex filter");
      vertexFilter->SetMaxZdcMaxVertexZ(50)
      vertexFilter->SetMaxBbMaxVertexZ(0)
      mainModule->AddModule(vertexFilter);
    
    
      //__________________________________________________________________
      // Module: BrVertexFilter
      BrVertexFilter* vertexFilter = 
        new BrVertexFilter("bbfilter", "BB vertex filter");
      vertexFilter->SetMaxZdcMaxVertexZ(0)
      vertexFilter->SetMaxBbMaxVertexZ(50)
      mainModule->AddModule(vertexFilter);
    
    and so on.  Also check out BrColsionFilter.  If any specific vertex is
    set to 0 (zero) then, that vertex isn't checked.  As you see, there's
    no reason to change the module/filter - all you need is to read the
    doc and/ro the code (if the doc is missing, please complain, and the
    appropiate person - in this case me - should fix it). 
    
    > Plus some minor cleanup...
    
    What are those  'minor cleanup's?  Please be more precise. 
    
    > If I don't hear any complaints I'll do this tomorrow.
    
    Don't change the order, just add more vertex filters!
    
    Yours, 
    
    Christian Holm Christensen -------------------------------------------
    Address: Sankt Hansgade 23, 1. th.           Phone:  (+45) 35 35 96 91 
             DK-2200 Copenhagen N                Cell:   (+45) 28 82 16 23
             Denmark                             Office: (+45) 353  25 305 
    Email:   cholm@nbi.dk                        Web:    www.nbi.dk/~cholm
    



    This archive was generated by hypermail 2b30 : Wed Dec 12 2001 - 13:27:00 EST