Skip to content

Conversation

@Edler1
Copy link

@Edler1 Edler1 commented Mar 10, 2022

Adding a function to obtain ghost matching jet flavour definition in JetTaggingUtils. Also an example analysis.py/preSel.py file to exemplify usage.

Copy link
Contributor

@clementhelsens clementhelsens left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks @Edler1 , please have a look at the comments

struct ghostFlavour {
std::vector<std::vector<float>> flavour;
JetClusteringUtils::FCCAnalysesJet jets;
std::vector<float> ghostStatus;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

is there a reason to use vector and not RVec here?

* Jet tagging interface utilities.
*/

//Get flavour association of jet
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Correct format for doxygen doc is for example /** my text */

//Get flavour association of jet
ROOT::VecOps::RVec<int> get_flavour(ROOT::VecOps::RVec<fastjet::PseudoJet> in, ROOT::VecOps::RVec<edm4hep::MCParticleData> MCin);

struct ghostFlavour {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

missing documentation line

};


//Get ghost flavour (MC flavour) of jet described here: ..
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

wrong format for doxygen

ghostFlavour operator() (ROOT::VecOps::RVec<edm4hep::MCParticleData> Particle, ROOT::VecOps::RVec<int> ind, std::vector<fastjet::PseudoJet> pseudoJets, int partonFlag);
};

std::vector<std::vector<float>> get_flavour(ghostFlavour ghostStruct);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

missing documentation line


std::vector<std::vector<float>> get_flavour(ghostFlavour ghostStruct);

JetClusteringUtils::FCCAnalysesJet get_jets(ghostFlavour ghostStruct);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

missing documentation line


JetClusteringUtils::FCCAnalysesJet get_jets(ghostFlavour ghostStruct);

std::vector<float> get_ghostStatus(ghostFlavour ghostStruct);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

missing documentation line


std::vector<float> get_ghostStatus(ghostFlavour ghostStruct);

std::vector<int> get_MCindex(ghostFlavour ghostStruct);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

missing documentation line

struct get_ghostFlavour {
get_ghostFlavour(int algo, float arg_radius, int arg_exclusive, float arg_cut, int arg_sorted, int arg_recombination, float arg_add1=0, float arg_add2=0);

int m_algo = 0; ///< flag to select jet clustering algorithm defined in JetClustering.cc (0 = kt, 1 = antikt, 2 = cambridge, 3 = eekt, 4 = ee genkt, 5 = genkt, 6 = valencia, 7 = jade)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please move the default values to the function arguments and structure the struct like https://github.com/HEP-FCC/FCCAnalyses/blob/optmisations/analyzers/dataframe/Algorithms.h#L21#L33

@Edler1
Copy link
Author

Edler1 commented Mar 16, 2022

Hi @clementhelsens, thanks for the helpful feedback, Kunal and I have implemented the changes following the example in Algorithms.h

Maybe two comments:

We appreciate feedback on the current state of the code.

@clementhelsens
Copy link
Contributor

hello @Edler1 , should this PR still be considered? given #136 ?

Conflicts:
	analyzers/dataframe/FCCAnalyses/JetTaggingUtils.h
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.

3 participants