Skip to content
This repository has been archived by the owner on Dec 10, 2019. It is now read-only.

Transform a select expression from func-adl into C++ to extract data from ATLAS xAOD files

License

Notifications You must be signed in to change notification settings

gordonwatts/ServiceX_Code_Generator_FuncADL_xAOD

 
 

Repository files navigation

ServiceX Code Generator

This microservice is a REST API that will generate C++ source code that runs in the ATLAS environment to generate code that will extract columns of data from ATLAS xAOD binary files. The query to extract the data is generated by the func-adl LINQ-like language, and specified to the service useing the ast-language.

This repo was moved over to the ssl-hep github organization. See the repo there.

Usage

Development

Debugging & Tools

Sometimes it is useful to generate C++ from the ast-language text. There is a utility in scripts/from_ast_to_zip.py that will do this for you. For example: ```

echo "(call ResultTTree (call Select (call SelectMany (call EventDataset (list 'localds://did_01')) (lambda (list e) (call (attr e 'Jets') ''))) (lambda (list j) (call (attr j 'pt')))) (list 'jet_pt') 'analysis' 'junk.root')" | python ./scripts/from_ast_to_zip.py -z junk.zip

```

This will generate a zip file that contains the C++ source code.

About

Transform a select expression from func-adl into C++ to extract data from ATLAS xAOD files

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 100.0%