Deprecated: Array and string offset access syntax with curly braces is deprecated in /mnt/hep_web/hep_web/member/n-kota/dokuwiki/inc/init.php on line 542
ja:root:tcut

TCut


TCut

 TCut c1 = "x<1";  //文字列を " " で囲んで書く
 TCut c2 = "y<0";  //
 TCut c3 = c1&&c2; //合成することもできる
 
 tree->Draw("x", c1);     //一番基本的な使い方
 tree->Draw("x", c1||"x>0");  //他のcut条件(not TCut)と組み合わせるときは " " でくくって並べる
 tree->Draw("x", c1&&c2);     //TCutを合わせるときは " " でくくらずそのまま
 
 tree->Draw("x", "(x+y)"*(c1&&c2));       // " * " て何?
 
 Float_t cutVal = 0.01;
 TCut c4 = Form("x > %f",cutVal);