Skip to content
Snippets Groups Projects
Commit 17b99c4e authored by Viktor's avatar Viktor
Browse files

update AT version

parent 4bc48ae7
No related branches found
No related tags found
1 merge request!272Update AnalysisTree
...@@ -41,7 +41,7 @@ void ATKFParticleFinder::InitOutput(const std::string& file_name) { ...@@ -41,7 +41,7 @@ void ATKFParticleFinder::InitOutput(const std::string& file_name) {
ParticlesRecoBranch.AddField<int>("daughter2id"); ParticlesRecoBranch.AddField<int>("daughter2id");
out_config_.AddBranchConfig(ParticlesRecoBranch); out_config_.AddBranchConfig(ParticlesRecoBranch);
particles_reco_ = new AnalysisTree::Particles(out_config_.GetLastId()); particles_reco_ = new AnalysisTree::Particles(out_config_.GetBranchConfig("ParticlesReconstructed").GetId());
out_tree_ = new TTree("aTree", "AnalysisTree ParticlesReco"); out_tree_ = new TTree("aTree", "AnalysisTree ParticlesReco");
out_tree_->Branch( out_tree_->Branch(
...@@ -173,9 +173,7 @@ void ATKFParticleFinder::WriteCandidates( ...@@ -173,9 +173,7 @@ void ATKFParticleFinder::WriteCandidates(
const KFParticleTopoReconstructor* eventTR) { const KFParticleTopoReconstructor* eventTR) {
particles_reco_->ClearChannels(); particles_reco_->ClearChannels();
for (unsigned int iP = 0; iP < eventTR->GetParticles().size(); iP++) { for (const auto & particle : eventTR->GetParticles()) {
const KFParticle& particle = eventTR->GetParticles()[iP];
auto* particlerec = particles_reco_->AddChannel(); auto* particlerec = particles_reco_->AddChannel();
particlerec->Init(out_config_.GetBranchConfig(particles_reco_->GetId())); particlerec->Init(out_config_.GetBranchConfig(particles_reco_->GetId()));
......
set(ANALYSISTREE_VERSION 9f49db8c1cd0cd1079a3f9267358a9a7362bde41) set(ANALYSISTREE_VERSION v2.1.0)
set(ANALYSISTREE_SRC_URL "https://github.com/HeavyIonAnalysis/AnalysisTree.git") set(ANALYSISTREE_SRC_URL "https://github.com/HeavyIonAnalysis/AnalysisTree.git")
set(ANALYSISTREE_DESTDIR "${CMAKE_BINARY_DIR}/external/ANALYSISTREE-prefix") set(ANALYSISTREE_DESTDIR "${CMAKE_BINARY_DIR}/external/ANALYSISTREE-prefix")
......
set(ANALYSISTREEQA_VERSION be56549d0ee90b628e1ec49131924a03982365d6) set(ANALYSISTREEQA_VERSION v2.0.0)
set(ANALYSISTREEQA_SRC_URL "https://github.com/HeavyIonAnalysis/AnalysisTreeQA.git") set(ANALYSISTREEQA_SRC_URL "https://github.com/HeavyIonAnalysis/AnalysisTreeQA.git")
set(ANALYSISTREEQA_DESTDIR "${CMAKE_BINARY_DIR}/external/ANALYSISTREEQA-prefix") set(ANALYSISTREEQA_DESTDIR "${CMAKE_BINARY_DIR}/external/ANALYSISTREEQA-prefix")
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment