6 #include <calobase/RawCluster.h>
7 #include <calobase/RawClusterContainer.h>
8 #include <calobase/RawClusterUtility.h>
13 #include <CLHEP/Vector/ThreeVector.h>
29 os <<
" ClusterJetInput: ";
32 os <<
"CLUSTER_CEMC to Jet::CEMC_CLUSTER";
36 os <<
"CLUSTER_EEMC to Jet::EEMC_CLUSTER";
40 os <<
"CLUSTER_HCALIN to Jet::HCALIN_CLUSTER";
44 os <<
"CLUSTER_HCALOUT to Jet::HCALOUT_CLUSTER";
51 if (
m_Verbosity > 0) std::cout <<
"ClusterJetInput::process_event -- entered" << std::endl;
52 GlobalVertexMap *vertexmap = findNode::getClass<GlobalVertexMap>(topNode,
"GlobalVertexMap");
55 std::cout <<
"ClusterJetInput::get_input - Fatal Error - GlobalVertexMap node is missing. Please turn on the do_global flag in the main macro in order to reconstruct the global vertex." << std::endl;
58 return std::vector<Jet *>();
61 if (vertexmap->
empty())
63 std::cout <<
"ClusterJetInput::get_input - Fatal Error - GlobalVertexMap node is empty. Please turn on the do_bbc or tracking reco flags in the main macro in order to reconstruct the global vertex." << std::endl;
64 return std::vector<Jet *>();
70 clusters = findNode::getClass<RawClusterContainer>(topNode,
"CLUSTER_CEMC");
73 return std::vector<Jet *>();
78 clusters = findNode::getClass<RawClusterContainer>(topNode,
"CLUSTER_EEMC");
81 return std::vector<Jet *>();
86 clusters = findNode::getClass<RawClusterContainer>(topNode,
"CLUSTER_HCALIN");
89 return std::vector<Jet *>();
94 clusters = findNode::getClass<RawClusterContainer>(topNode,
"CLUSTER_HCALOUT");
97 return std::vector<Jet *>();
102 clusters = findNode::getClass<RawClusterContainer>(topNode,
"TOPOCLUSTER_HCAL");
105 return std::vector<Jet *>();
110 clusters = findNode::getClass<RawClusterContainer>(topNode,
"TOPOCLUSTER_EMCAL");
113 return std::vector<Jet *>();
118 clusters = findNode::getClass<RawClusterContainer>(topNode,
"CLUSTER_FEMC");
121 return std::vector<Jet *>();
126 clusters = findNode::getClass<RawClusterContainer>(topNode,
"CLUSTER_FHCAL");
129 return std::vector<Jet *>();
134 return std::vector<Jet *>();
146 return std::vector<Jet *>();
149 std::vector<Jet *> pseudojets;
152 for (rtiter = begin_end.first; rtiter != begin_end.second; ++rtiter)
159 jet->
set_px(E_vec_cluster.x());
160 jet->
set_py(E_vec_cluster.y());
161 jet->
set_pz(E_vec_cluster.z());
164 pseudojets.push_back(jet);
167 if (
m_Verbosity > 0) std::cout <<
"ClusterJetInput::process_event -- exited" << std::endl;