Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

makeDefine fixes #299

Merged
merged 5 commits into from
Jan 28, 2023
Merged

makeDefine fixes #299

merged 5 commits into from
Jan 28, 2023

Conversation

pl0xz0rz
Copy link
Contributor

No description provided.

@miranov25
Copy link
Owner

miranov25 commented Jan 27, 2023

First 2 tests are OK:
rdf2 = makeDefine("arrayD","array1D0[1:10]-array1D2[:20:2]", rdf,3, True)
rdf2 = makeDefine("arrayCos","cos(array1D0[1:10])", rdf,3, True)

3 test is failing:

Implementation:

 ROOT::VecOps::RVec<function> arrayPx(ROOT::VecOps::RVec<TParticle> &array1DTrack){
    ROOT::VecOps::RVec<function> result(9);
    for(size_t i=0; i<9; i++){
        result[i] = array1DTrack[1+i*1].Px();
    }
    
    return result;
} 

@miranov25
Copy link
Owner

OK. mergin. I will try to get the type a put it into code

@miranov25 miranov25 merged commit 8ef51b5 into miranov25:master Jan 28, 2023
@miranov25
Copy link
Owner

Relates to #297

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants