Pergunta

Eu sou um estudante de pós-graduação modesto em um departamento de física de partículas de alta energia. Com um desgosto infundadas para C / C ++ e um amor fundado de python, eu recorreram a python para minha análise de dados até agora (apenas o material fácil) e estou prestes a tentar scripts de apoio python contra bibliotecas de raiz e, particularmente, utilizar MINUIT para algum parâmetro de minimização.

Assim como perguntando se alguém tem alguma dica para a instalação e uso destes, eu me perguntava se valia a pena tentar mesmo ou apenas para cair na "norma" de usar C / C ++, ou se as coisas como pyminuit são utilizáveis. Ou você acha que eu poderia envolver toda C scripts / C ++ em código python para fazer uso dos meus métodos de análise auto-escrito existentes (não tenho experiência invólucro até o momento). Desculpe pela imprecisão; Estou indo em um grande desconhecido que supera muito a minha experiência atual.

Foi útil?

Solução

Você está ciente de pyROOT , certo?

Nunca tentei me, então eu não sei como ele pode se comparam com suas necessidades.

Outras dicas

It's probably worth checking out rootpy. Maybe not totally mature yet, but it's a step in the right direction.

Yes, rootpy is built on top of PyROOT, but with some additional features:

  • it emphasizes a pythonic interface and hides some of the ugliness of ROOT;
  • it integrates with matlibplot, which has a larger development community, and a greater presence on SO, not to mention better looking plots;
  • it allows conversion to HDF5 files, which will allow you to share data with people who can't take the time to install the monolithic ROOT package.

Unfortunately, as long as you're working with something built on top of CINT (which PyROOT is), you'll still have to deal with one of the ugliest parts of ROOT.


The other option, if you're sick of fumbling with PyROOT, is to use one of the packages that converts ROOT directly to HDF5

I wrote a minuit wrapper a while back(In my sample of 1 experience, ROOT's minuit seems more robust than pyminuit and I like ROOT Minuit output more)

https://github.com/piti118/RTMinuit

With numpy root file reading capability

https://github.com/piti118/root_numpy

And not so polished fitting library and toy generation etc. based on RTMinuit and numpy

https://github.com/piti118/dist_fit

Tutorials and help are all given in the package

Licenciado em: CC-BY-SA com atribuição
Não afiliado a StackOverflow
scroll top