Hi,
I have a 2D efficiency map of senor where we can clearly see the position of sensor is tilted (left). Is there a way I can make selection at some angle (for both Xtr and Ytr) to select the events that hits the senor (try to make a rectangular selection as on right).
Thanks in advance.
Khuram
Please find the part of code I used to draw the efficiency map.
AmaxCut="Amax>10"
Cut = "ntrack==1&&chi2ndf<3"
mask = "Xtr>1.5&&Xtr<3.7&&Ytr>-0.2&&Ytr<1.0"
if var == "charge":
h2Eff = ROOT.TProfile2D(nameEffHist,nameEffHist+";Xtr; Ytr; Eff", 100,-2.0,5.0,100,-2.0,5.0)
t.Draw("(charge>2):Ytr:Xtr>>"+nameEffHist,Cut+"&&"+mask,"profi colz")
c.Clear()
h2Eff.Draw("colz")
_ROOT Version: 6.28/10
_Platform: linuxx8664gcc
_Compiler: g++ (GCC) 13.1.0