Skip to content
Snippets Groups Projects
  1. Feb 14, 2017
  2. Feb 13, 2017
  3. Feb 11, 2017
    • Eduardo Rodrigues's avatar
      Merge branch 'vanya-lokiphysmc-v0' into 'master' · 13024350
      Eduardo Rodrigues authored
      LoKiPhysMC: add custom mc-truth matcher for photons
      
      - add new algorithm   MCTuthPhoton to create "custom" MC-truth links
         for some interesting MC-photons and neutral protoparticles
        
      e.g. build MC-truth for photons from Bs -> phi(1020) gamma decays:
      ```
          from Configurables import LoKi__MCTruthPhoton as CustomPP2MC 
           
          alg = CustomPP2MC('Custom')
          alg.EnergyFraction  = (0.1,2)
          alg.MaxChi2         = 4
          ##
          alg.PropertiesPrint = True 
          alg.Preambulo = [
              "from GaudiKernel.SystemOfUnits import GeV, MeV, cm" ,
              ]
          alg.Code = """
          ( MCPT > 100 * MeV ) & MCDECTREE ( 'Beauty -> (phi(1020) => K+ K-) ^gamma' ) 
          """
      ```
      
      Or a bit more generic case:
      
      ```   
          alg.Preambulo = [
              "from GaudiKernel.SystemOfUnits import GeV, MeV, cm" ,
              "from LoKiCore.functions import in_range" 
              ]
          alg.Code = """
          ( MCPZ >  1   * GeV             ) &
          ( MCPT >  0.1 * GeV             ) &
          MCFROMDECAYS                      &
          ( abs ( MCPX / MCPZ  ) < 0.350  ) &
          ( abs ( MCPY / MCPZ  ) < 0.250  ) &
          in_range ( -20*cm , MCVFASPF( MCVZ ) , 20*cm ) 
          """
      ```
      MC-mathching is performed using the spatial matching of photon direction 
      and LHCb::CaloPosition ( using data on center&spread) using chi2.
      for inner/middle zones chi2<1 has almost 100% efficiency, 
      for outer zone the distribution is a bit wider, but  efficiency for chi2<2 requirement is close to 100%
      ```
             150   ++----+----+----+----+----+----+----+----+----+----+  
                    ||    .    .    .    .    .    .    .    .    .    |  
                    ||    .    .    .    .    .    .    .    .    .    |  
                    ||    .    .    .    .    .    .    .    .    .    |  
                    ||    .    .    .    .    .    .    .    .    .    |  
              112   ++.................................................+  
                    ||    .    .    .    .    .    .    .    .    .    |  
                    |**   .    .    .    .    .    .    .    .    .    |  
                    |***  .    .    .    .    .    .    .    .    .    |  
                    |***  .    .    .    .    .    .    .    .    .    |  
               75   +***...............................................+  
                    |***  .    .    .    .    .    .    .    .    .    |  
                    |***  .    .    .    .    .    .    .    .    .    |  
                    |**** .    .    .    .    .    .    .    .    .    |  
                    |**** .    .    .    .    .    .    .    .    .    |  
             37.5   +****..............................................+  
                    |*****.    .    .    .    .    .    .    .    .    |  
                    |******    .    .    .    .    .    .    .    .    |  
                    |********* .    .    .    .    .    .    .    .    |  
                    |***********    .    .    .    .    .    .    .    |  
                0 *-++----+----+***************************************->*
                  U                                                       
                  N                                                      O
                  D                                                      V
                  E                                                      E
                  R                                                      R
                  F                                                      F
                  L       0    0    1    1         2    2    3    3      L
                  O       .    .    .    .         .    .    .    .      O
                  W 00    4    8    2    6    2    4    8    2    6    4 W
                                                                          
      ```
      
      Optionally the criteria on  E(mc)/E(calo) can be  applied. 
      
      
      Typical usage, e.g. in Bender:
      
      ```
        bender_alg        = ...
        bender_alg.PP2MCs = [ 
           'Relations/Rec/ProtoP/Charged'  ,
           'Relations/Rec/ProtoP/Upstream' ,
           'Relations/Rec/ProtoP/Custom'   ]
      
      ```
      or for mcMatch utility:
      ```
          ... = mcMatch ( ... , strings( [
           'Relations/Rec/ProtoP/Charged'  ,
           'Relations/Rec/ProtoP/Upstream' ,
           'Relations/Rec/ProtoP/Custom'   ] ) , ... ) 
      ```
      
      See merge request !99
      13024350
    • Eduardo Rodrigues's avatar
      Merge branch 'vanya-track-scale-state-v0' into 'master' · ceb8cec7
      Eduardo Rodrigues authored
      TrackScaleState: add more counters and a final check
      
      add more counters and a final check. It  helps to detect/identify misconfiguration.
      
      See merge request !100
      ceb8cec7
    • Eduardo Rodrigues's avatar
      Merge branch 'remove-obsolete-packages' into 'master' · 51bfe653
      Eduardo Rodrigues authored
      Remove packages from AnalysisSys/CMakeLists.txt
      
      - To fix !101, where I had forgotten to remove from CMakeLists.txt
      - See LHCBPS-1696
      
      See merge request !102
      51bfe653
    • Eduardo Rodrigues's avatar
      Update CMakeLists.txt · 2289174e
      Eduardo Rodrigues authored
      2289174e
    • Eduardo Rodrigues's avatar
      Merge branch 'master' into 'remove-obsolete-packages' · 0c9f9c4f
      Eduardo Rodrigues authored
      # Conflicts:
      #   AnalysisSys/CMakeLists.txt
      0c9f9c4f
    • Eduardo Rodrigues's avatar
      Merge branch 'move-packages-to-Phys' into 'master' · 035c4225
      Eduardo Rodrigues authored
      Remove moved packages from AnalysisSys/CMakeLists.txt
      
      - This was forgotten in !98
      
      See merge request !103
      035c4225
    • Rosen Matev's avatar
      acbb4f3c
    • Rosen Matev's avatar
      9ed9e646
  4. Feb 10, 2017
  5. Feb 09, 2017
  6. Jan 31, 2017
  7. Jan 30, 2017
  8. Jan 29, 2017
  9. Jan 27, 2017
  10. Jan 26, 2017
    • Eduardo Rodrigues's avatar
      Merge branch 'vanya-ostap-v13' into 'master' · 8dd08072
      Eduardo Rodrigues authored
      Analysis/Ostap: improve paralellisation
      
      ! 2017-01-24 - Vanya Belyaev
       - Kisa.py, TreeDeco.py
         - improve tree/chain -> histogram projections
         - more functionality, better parallelisation
      
      See merge request !89
      8dd08072
  11. Jan 24, 2017
  12. Jan 23, 2017
  13. Jan 21, 2017
  14. Jan 19, 2017
  15. Jan 18, 2017
Loading