21 #include <calobase/TowerInfoContainer.h>
22 #include <calobase/TowerInfo.h>
23 #include <calobase/TowerInfoDefs.h>
32 ,cdbtreename_i(cdbtreename_i)
33 ,cdbtreename_o(cdbtreename_o)
41 std::cout <<
"towerid::towerid(const std::string &name) Calling ctor" << std::endl;
46 std::cout <<
"towerid::~towerid() Calling dtor" << std::endl;
53 T =
new TTree(
"T_inner",
"T_inner");
54 T2 =
new TTree(
"T_outer",
"T_outer");
58 std::cout <<
"towerid::Init(PHCompositeNode *topNode) Initializing" << std::endl;
65 std::cout <<
"towerid::InitRun(PHCompositeNode *topNode) Initializing for Run XXX" << std::endl;
76 hcalTowerContainer_i = findNode::getClass<TowerInfoContainer>(topNode,
"TOWERS_HCALIN");
77 hcalTowerContainer_o = findNode::getClass<TowerInfoContainer>(topNode,
"TOWERS_HCALOUT");
78 if(!hcalTowerContainer_o)
80 std::cout <<
PHWHERE <<
"towerid::process_event Could not find node TOWERS_CEMC" << std::endl;
85 bool goodevent =
false;
86 int tower_range_i = hcalTowerContainer_i->
size();
87 int tower_range_o = hcalTowerContainer_o->size();
88 for(
int j = 0;
j < tower_range_i;
j++){
90 double energy = hcalTowerContainer_i -> get_tower_at_channel(
j) -> get_energy();
100 for(
int j = 0;
j < tower_range_o;
j++){
102 double energy = hcalTowerContainer_o -> get_tower_at_channel(
j) -> get_energy();
134 Espec_i->SetBins(goodevents,0,goodevents);
135 Espec_o->SetBins(goodevents,0,goodevents);
138 for(
int i = 0;
i < 1536;
i++){
155 float cutoffFreq_i_lo;
157 float cutoffFreq_o_lo;
164 std::cout <<
"towerid::EndRun(const int runnumber) Ending Run for Run " << runnumber << std::endl;
165 std::cout <<
"Inner hot tower cutoff: " << cutoffFreq_i << std::endl;
166 std::cout <<
"Inner cold tower cutoff: " << cutoffFreq_i_lo << std::endl;
168 std::cout <<
"Outer hot tower cutoff: " << cutoffFreq_o << std::endl;
169 std::cout <<
"OUter cold tower cutoff: " << cutoffFreq_o_lo << std::endl;
171 for(
int i = 0;
i < 1536;
i++){
193 std::cout <<
"towerid::EndRun(const int runnumber) Ending Run for Run " << runnumber << std::endl;
200 std::cout <<
"towerid::End(PHCompositeNode *topNode) This is the End..." << std::endl;
205 for(
int i = 0;
i<1536;
i++){
229 for(
int j = 0;
j<1536;
j++){
280 std::cout <<
"towerid::Reset(PHCompositeNode *topNode) being Reset" << std::endl;
286 std::cout <<
"towerid::Print(const std::string &what) const Printing info for " << what << std::endl;