Skip to content
Snippets Groups Projects
Commit f93c8735 authored by Zhoudunming Tu's avatar Zhoudunming Tu
Browse files

try new files

parent 962497fd
No related branches found
No related tags found
No related merge requests found
...@@ -33,14 +33,13 @@ int diffractive_vm_simple_analysis(const std::string& config_name) ...@@ -33,14 +33,13 @@ int diffractive_vm_simple_analysis(const std::string& config_name)
const std::string test_tag = config["test_tag"]; const std::string test_tag = config["test_tag"];
TString name_of_input = (TString) rec_file; TString name_of_input = (TString) rec_file;
name_of_input = "/gpfs02/eic/ztu/EPIC/physics/Simulation_Campaign_Oct2022/physics_benchmarks/local_data/tmp/18on110/rec-batch_5_*.tree.edm4eic.root"; name_of_input = "/gpfs02/eic/ztu/EPIC/physics/Simulation_Campaign_Oct2022/physics_benchmarks/local_data/tmp/18on110/rec-batch_5_official_*.eicrecon.tree.edm4eic.root";
std::cout << "what is this rec_file = " << name_of_input << endl; std::cout << "what is this rec_file = " << name_of_input << endl;
auto tree = new TChain("events"); auto tree = new TChain("events");
tree->Add(name_of_input); tree->Add(name_of_input);
// auto file=new TFile(name_of_input); // auto file=new TFile(name_of_input);
// auto tree = (TTree *) file->Get("events"); // auto tree = (TTree *) file->Get("events");
TTreeReader tree_reader(tree); // !the tree reader TTreeReader tree_reader(tree); // !the tree reader
TTreeReaderArray<int> mc_genStatus_array = {tree_reader, "MCParticles.generatorStatus"}; TTreeReaderArray<int> mc_genStatus_array = {tree_reader, "MCParticles.generatorStatus"};
// MC particle pz array for each MC particle // MC particle pz array for each MC particle
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment