Hello
While doing a simple Events->Scan
in a tree, I require the following cutString
cut=(Muon_pt>29 || Electron_pt>37) || ( HLT_IsoMu24 || HLT_IsoMu27 || HLT_Ele35_WPTight_Gsf)```
so the print out is like that
root [6] Events->Scan("run:event:luminosityBlock:nMuon:Muon_pt:HLT_IsoMu24:HLT_IsoMu27:nElectron:Electron_pt:HLT_Ele35_WPTight_Gsf"," (Muon_pt>29 || Electron_pt>37) || ( HLT_IsoMu24 || HLT_IsoMu27 || HLT_Ele35_WPTight_Gsf) ")
***********************************************************************************************************************************************
* Row * Instance * run * event * luminosit * nMuon * Muon_pt * HLT_IsoMu * HLT_IsoMu * nElectron * Electron_ * HLT_Ele35 *
***********************************************************************************************************************************************
* 27 * 0 * 1 * 20688595 * 8360 * 1 * 30.359632 * 1 * 1 * 1 * 7.6053214 * 0 *
* 48 * 0 * 1 * 20688645 * 8360 * 1 * 25.083187 * 0 * 0 * 1 * 43.771064 * 1 *
* 72 * 0 * 1 * 20688694 * 8360 * 1 * 32.037674 * 1 * 1 * 1 * 5.7447304 * 0 *
* 108 * 0 * 1 * 20688667 * 8360 * 1 * 3.4408552 * 0 * 0 * 1 * 37.886581 * 0 *
* 137 * 0 * 1 * 20688803 * 8360 * 3 * 22.084796 * 0 * 0 * 2 * 39.982471 * 1 *
* 137 * 1 * 1 * 20688803 * 8360 * 3 * 12.733344 * 0 * 0 * 2 * 31.555551 * 1 *
so naively, you should get events when either muon (electrons) have pt> 29 (37) and also when some HLT triggers exist in the event. However, if one does now (just omitting the muon_pt || electron_pt part)
root [7] Events->Scan("run:event:luminosityBlock:nMuon:Muon_pt:HLT_IsoMu24:HLT_IsoMu27:nElectron:Electron_pt:HLT_Ele35_WPTight_Gsf"," ( HLT_IsoMu24 || HLT_IsoMu27 || HLT_Ele35_WPTight_Gsf) ")
***********************************************************************************************************************************************
* Row * Instance * run * event * luminosit * nMuon * Muon_pt * HLT_IsoMu * HLT_IsoMu * nElectron * Electron_ * HLT_Ele35 *
***********************************************************************************************************************************************
* 2 * 0 * 1 * 20688579 * 8360 * 0 * * 0 * 0 * 1 * 40.771743 * 1 *
* 14 * 0 * 1 * 20688578 * 8360 * 1 * 36.654624 * 1 * 1 * 0 * * 0 *
* 16 * 0 * 1 * 20688577 * 8360 * 1 * 26.556858 * 1 * 0 * 0 * * 0 *
* 17 * 0 * 1 * 20688610 * 8360 * 1 * 42.732452 * 1 * 1 * 0 * * 0 *
* 20 * 0 * 1 * 20688537 * 8360 * 1 * 41.883316 * 1 * 1 * 0 * * 0 *
* 21 * 0 * 1 * 20688582 * 8360 * 1 * 30.107580 * 1 * 1 * 0 * * 0 *
* 23 * 0 * 1 * 20688589 * 8360 * 0 * * 0 * 0 * 1 * 37.945220 * 1 *
* 26 * 0 * 1 * 20688588 * 8360 * 1 * 36.903709 * 1 * 1 * 0 * * 0 *
* 27 * 0 * 1 * 20688595 * 8360 * 1 * 30.359632 * 1 * 1 * 1 * 7.6053214 * 0 *
* 33 * 0 * 1 * 20688553 * 8360 * 1 * 27.617397 * 1 * 1 * 0 * * 0 *
* 43 * 0 * 1 * 20688649 * 8360 * 1 * 31.803113 * 1 * 1 * 0 * * 0 *
* 48 * 0 * 1 * 20688645 * 8360 * 1 * 25.083187 * 0 * 0 * 1 * 43.771064 * 1 *
you can clearly see that the second example returns more lines, but I would have expected that for instance also all the events like from the second example ie Row 2
* 2 * 0 * 1 * 20688579 * 8360 * 0 * * 0 * 0 * 1 * 40.771743 * 1 *
should have been returned with the first syntax as the condition is either muon_pt> OR electron_pt> which is clearly satisfied in Row2
In other words, the
"(Muon_pt>29 || Electron_pt>37) || ( HLT_IsoMu24 || HLT_IsoMu27 || HLT_Ele35_WPTight_Gsf)"
does not satisfy the OR conditions from the first parentheses…unless if I am missing something.
Any ideas?