4 #include <calobase/TowerInfo.h>
5 #include <calobase/TowerInfoContainer.h>
6 #include <calobase/TowerInfoContainerv1.h>
8 #include <caloreco/CaloWaveformProcessing.h>
23 #include <Event/Event.h>
24 #include <Event/packet.h>
62 float emcalescale = 1.0;
64 TowerInfoContainer* emcaltowers = findNode::getClass<TowerInfoContainerv1>(topNode,
"TOWERS_CEMC");
68 <<
"MyJetAnalysis::process_event - Error can not find DST TOWERS_CEMC node "
72 TowerInfoContainer* calib_emcaltowers = findNode::getClass<TowerInfoContainerv1>(topNode,
"TOWERINFO_CALIB_CEMC");
73 if (!calib_emcaltowers)
76 <<
"MyJetAnalysis::process_event - Error can not find DST TOWERINFO_CALIB_CEMC node "
82 GlobalVertexMap *vertexmap = findNode::getClass<GlobalVertexMap>(topNode,
"GlobalVertexMap");
84 vertex->set_id(vertexmap->
size());
85 for (
unsigned int i = 0;
i < 3; ++
i)
87 vertex->set_position(
i, 0);
88 for (
unsigned int j =
i;
j < 3; ++
j)
90 vertex->set_error(
i,
j, 0);
97 unsigned int nchannels = emcaltowers->
size();
106 bool maskpacket =
false;
107 if (n_masked_packets > 0 )
109 for (
int i = 0;
i < n_masked_packets;
i++)
117 if (maskpacket ==
true)
130 for(
int q =0 ; q < nbads;q++)
175 std::cout <<
"Emcal_Tower_Masking::Print(const std::string &what) const Printing info for " << what << std::endl;
183 nodeItr.
findFirst(
"PHCompositeNode",
"DST"));
186 std::cout <<
"PHComposite node created: DST" << std::endl;
195 std::cout <<
" no CEMC Node? " << std::endl;
200 CEMCNode->
addNode(emcal_towerNode);
212 GlobalVertexMap *vertexes = findNode::getClass<GlobalVertexMap>(topNode,
"GlobalVertexMap");
217 globalNode->
addNode(VertexMapNode);