16 , m_name_file(
"embedding_data.root")
29 mi_evt = findNode::getClass<SQEvent >(topNode,
"SQEvent");
30 mi_vec_hit = findNode::getClass<SQHitVector >(topNode,
"SQHitVector");
31 if (!mi_evt || !mi_vec_hit) {
32 cout <<
PHWHERE <<
": Cannot find SQEvent and/or SQHitVector." << endl;
35 mi_sim_evt = findNode::getClass<SQMCEvent >(topNode,
"SQMCEvent");
36 mi_sim_vec_trk = findNode::getClass<SQTrackVector >(topNode,
"SQTruthTrackVector");
37 mi_sim_vec_dim = findNode::getClass<SQDimuonVector>(topNode,
"SQTruthDimuonVector");
39 mo_file =
new TFile(m_name_file.c_str(),
"RECREATE");
40 mo_tree =
new TTree(m_name_tree.c_str(),
"Created by GenEmbeddingData");
41 mo_tree->Branch(
"SQEvent" , &mi_evt);
42 mo_tree->Branch(
"SQHitVector", &mi_vec_hit);
43 if (mi_sim_evt ) mo_tree->Branch(
"SQMCEvent" , &mi_sim_evt);
44 if (mi_sim_vec_trk) mo_tree->Branch(
"SQTruthTrackVector" , &mi_sim_vec_trk);
45 if (mi_sim_vec_dim) mo_tree->Branch(
"SQTruthDimuonVector", &mi_sim_vec_dim);
int Init(PHCompositeNode *topNode)
int process_event(PHCompositeNode *topNode)
int End(PHCompositeNode *topNode)
Called at the end of all processing.
GenEmbeddingData(const std::string name="GenEmbeddingData")
int InitRun(PHCompositeNode *topNode)