root -l run219167.root
TH1F *h=new TH1F("h","h",5000,0,5000)
EDET->Draw("amp>>h","detn==7")
--> plots amplitude in the histogram specified for detector number 7