27 #include <trackbase/TrkrDefUtil.h>
34 #include <mvtx/MvtxDefUtil.h>
35 #include <mvtx/MvtxHitSetv1.h>
79 for (
int ichip=0; ichip<4; ichip++){
80 h2d_hit[ichip] =
new TH2F(Form(
"h2d_hit_chip%d",ichip),
"",1024,-0.5,1023.5,512,-0.5,511.5);
81 h1d_hit_per_evt[ichip] =
new TH1F(Form(
"h1d_hit_per_evt_chip%d",ichip),
"",101,-0.5,100);
82 h1d_clus_per_evt[ichip] =
new TH1F(Form(
"h1d_clus_per_evt_chip%d",ichip),
"",51,-0.5,50.5);
84 h2d_hit_beam[ichip] =
new TH2F(Form(
"h2d_hit_beam_chip%d",ichip),
"",1025,-512.5,512.5,513,-256.5,256.5);
85 h2d_hit_trk[ichip] =
new TH2F(Form(
"h2d_hit_trk_chip%d",ichip),
"",1025,-512.5,512.5,513,-256.5,256.5);
86 h2d_clus[ichip] =
new TH2F(Form(
"h2d_clus_chip%d",ichip),
"",1024,0,3.0,512,0,1.5);
87 h2d_clus_beam[ichip] =
new TH2F(Form(
"h2d_clus_beam_chip%d",ichip),
"",1024,-3.0/2,3.0/2,512,-1.5/2,1.5/2);
89 h1d_clus_size_x[ichip] =
new TH1F(Form(
"h1d_clus_size_x_chip%d",ichip),
"",51,-0.5,50.5);
90 h1d_clus_size_z[ichip] =
new TH1F(Form(
"h1d_clus_size_z_chip%d",ichip),
"",51,-0.5,50.5);
95 h2d_trk_finder =
new TH2F(
"h2d_trk_finder",
"",1025,-512.5,512.5,513,-256.5,256.5);
117 TrkrDefUtil trkrdefutil;
118 MvtxDefUtil mvtxdefutil;
120 int nhit_per_chip[4] = {0};
121 int nclus_per_chip[4] = {0};
134 int ichip = int(mvtxdefutil.GetChipId(iter->first));
136 MvtxHitSetv1 *hitset =
static_cast<MvtxHitSetv1 *
>(iter->second);
138 MvtxHitSetv1::ConstRange hit_iter_range = hitset->GetHits();
139 for ( MvtxHitSetv1::ConstIterator hit_iter = hit_iter_range.first; hit_iter!=hit_iter_range.second; ++hit_iter){
141 int icol = int(hit_iter->first);
142 int irow = int(hit_iter->second);
144 h2d_hit[ichip]->Fill(icol,irow);
150 nhit_per_chip[ichip]++;
158 int ichip = trkrdefutil.GetLayer(clus_iter->first);
162 h2d_clus[ichip]->Fill(clus->GetZ(),clus->GetX());
168 nclus_per_chip[ichip]++;
171 int nchip_w_clus = 0;
173 for (
int ichip=0; ichip<4; ichip++){
177 if ( nclus_per_chip[ichip]>0 ) nchip_w_clus++;
271 cout <<
"-----MvtxQAHisto::End------" << endl;
290 cluscon = findNode::getClass<TrkrClusterContainer>(topNode,
"TrkrClusterContainer");
293 cout <<
"MvtxQAHisto::Process_Event - TrkrClusterContainer not found" << endl;
297 hitsetcon = findNode::getClass<TrkrHitSetContainer>(topNode,
"TrkrHitSetContainer");
300 cout <<
"MvtxQAHisto::Process_Event - TrkrHitSetContainer not found" << endl;