7 #include <calobase/RawTower.h>
8 #include <calobase/RawTowerContainer.h>
9 #include <calobase/RawTowerGeom.h>
10 #include <calobase/RawTowerGeomContainer.h>
13 #include <calobase/RawCluster.h>
14 #include <calobase/RawClusterv1.h>
15 #include <calobase/RawClusterContainer.h>
18 #include <fastjet/ClusterSequence.hh>
21 #include <TLorentzVector.h>
27 using fastjet::PseudoJet;
28 using fastjet::ClusterSequence;
29 using fastjet::JetDefinition;
52 RawClusterContainer* cemc_clusters = findNode::getClass<RawClusterContainer>(topNode,
"CLUSTER_CEMC");
53 RawClusterContainer* hcalin_clusters = findNode::getClass<RawClusterContainer>(topNode,
"CLUSTER_HCALIN");
54 RawClusterContainer* hcalout_clusters = findNode::getClass<RawClusterContainer>(topNode,
"CLUSTER_HCALOUT");
58 cout <<
"cemc_clusters " << cemc_clusters << endl;
59 cout <<
"hcalin_clusters " << hcalin_clusters << endl;
60 cout <<
"hcalout_clusters " << hcalout_clusters << endl;
64 RawClusterContainer* new_cemc_clusters = findNode::getClass<RawClusterContainer>(topNode,
"CLUSTER_CEMC_MOD");
65 RawClusterContainer* new_hcalin_clusters = findNode::getClass<RawClusterContainer>(topNode,
"CLUSTER_HCALIN_MOD");
66 RawClusterContainer* new_hcalout_clusters = findNode::getClass<RawClusterContainer>(topNode,
"CLUSTER_HCALOUT_MOD");
70 cout <<
"new_cemc_clusters " << new_cemc_clusters << endl;
71 cout <<
"new_hcalin_clusters " << new_hcalin_clusters << endl;
72 cout <<
"new_hcalout_clusters " << new_hcalout_clusters << endl;
76 vector<PseudoJet> mod_clusters;
83 int cluster_counter = 0;
91 double r = cluster->
get_r();
92 double z = cluster->
get_z();
93 double eta = -log(tan(atan2(r,z)/2.0));
94 double pt = e/cosh(eta);
95 TLorentzVector tlv_cluster;
96 tlv_cluster.SetPtEtaPhiE(pt,eta,phi,e);
97 clusters.push_back(
PseudoJet(tlv_cluster));
102 if (
verbosity > 1 ) cout <<
"number of clusters " << cluster_counter <<
" number of cluster jets" << clusterjets.size() << endl;
105 int mod_cluster_counter = 0;
113 double r = cluster->
get_r();
114 double z = cluster->
get_z();
115 double eta = -log(tan(atan2(r,z)/2.0));
116 double pt = e/cosh(eta);
117 TLorentzVector tlv_cluster;
118 tlv_cluster.SetPtEtaPhiE(pt,eta,phi,e);
119 mod_clusters.push_back(
PseudoJet(tlv_cluster));
120 ++mod_cluster_counter;
124 if (
verbosity > 1 ) cout <<
"number of clusters " << cluster_counter <<
" number of cluster jets" << mod_clusterjets.size() << endl;