12 #include <g4jets/JetMap.h>
13 #include <g4jets/JetMapV1.h>
16 #include <calobase/RawClusterContainer.h>
26 cout <<
"TreeMaker::CreateNode called" << endl;
38 cout <<
PHWHERE <<
"DST node not found, doing nothing." << endl;
46 cout <<
PHWHERE <<
"ANTIKT node not found, doing nothing." << endl;
54 cout <<
PHWHERE <<
"TOWER node not found, doing nothing." << endl;
59 JetMap* check_jets = findNode::getClass<JetMap>(topNode,
"AntiKt_Tower_Mod_r02");
63 cout <<
"TreeMaker::CreateNode : creating AntiKt_Tower_Mod_r02 node " << endl;
64 JetMap *mod_jets =
new JetMapV1();
72 cout <<
"TreeMaker::CreateNode : AntiKt_Tower_Mod_r02 already exists! " << endl;
83 cout <<
PHWHERE <<
"CEMC node not found, doing nothing." << endl;
88 RawClusterContainer* check_cemc_clusters = findNode::getClass<RawClusterContainer>(topNode,
"CLUSTER_CEMC_MOD");
89 if ( !check_cemc_clusters )
92 cout <<
"TreeMaker::CreateNode : creating CLUSTER_CEMC_MOD node " << endl;
101 cout <<
"TreeMaker::CreateNode : CLUSTER_CEMC_MOD already exists! " << endl;
108 cout <<
PHWHERE <<
"HCALIN node not found, doing nothing." << endl;
113 RawClusterContainer* check_hcalin_clusters = findNode::getClass<RawClusterContainer>(topNode,
"CLUSTER_HCALIN_MOD");
114 if ( !check_hcalin_clusters )
117 cout <<
"TreeMaker::CreateNode : creating CLUSTER_HCALIN_MOD node " << endl;
121 hcalinNode->
addNode(clusterNode);
126 cout <<
"TreeMaker::CreateNode : CLUSTER_HCALIN_MOD already exists! " << endl;
133 cout <<
PHWHERE <<
"HCALOUT node not found, doing nothing." << endl;
138 RawClusterContainer* check_hcalout_clusters = findNode::getClass<RawClusterContainer>(topNode,
"CLUSTER_HCALOUT_MOD");
139 if ( !check_hcalout_clusters )
142 cout <<
"TreeMaker::CreateNode : creating CLUSTER_HCALOUT_MOD node " << endl;
146 hcaloutNode->
addNode(clusterNode);
151 cout <<
"TreeMaker::CreateNode : CLUSTER_HCALOUT_MOD already exists! " << endl;