artemis-dev / artemis

A RooT Extension with Modular processors for Instant Switching
2 stars 6 forks source link

Feature to assign tree formula for weight in TreeProjection #16

Open shkawase opened 8 years ago

shkawase commented 8 years ago

In TTree::Draw, a weight for filling the histogram can be assigned by setting the selection argument as follows:

mytree->Draw("some_branch","weight * (some boolean expression)");

However, this feature is not supported in current TAttTreeProj::FillTo().

cheese-cake commented 8 years ago

It seems easy to implement this. I will do as soon as possible. Thank you.

2016-02-26 16:50 GMT+09:00 KAWASE Shoichiro notifications@github.com:

In TTree::Draw, a weight for filling the histogram can be assigned by setting the selection argument as follows:

mytree->Draw("some_branch","weight * (some boolean expression)");

However, this feature is not supported in current TAttTreeProj::FillTo().

— Reply to this email directly or view it on GitHub https://github.com/artemis-dev/artemis/issues/16.

大田 晋輔 (Shinsuke OTA) 東京大学大学院理学系研究科附属原子核科学研究センター 助教

Center for Nuclear Study (CNS), the University of Tokyo

Address: 2-1 Hirosawa, Wako, Saitama, JAPAN E-mail: ota@cns.s.u-tokyo.ac.jp TEL: +81-48-464-4585 FAX: +81-48-464-4554

http://www.cns.s.u-tokyo.ac.jp/