7 #include <calobase/TowerInfov1.h>
8 #include <calobase/TowerInfoContainerv1.h>
46 , _outfilename(filename)
68 std::cout <<
"Beginning Init in MultiDetectorMultiplicity" << std::endl;
84 std::cout <<
"Beginning process_event in MultiDetectorMultiplicity" << std::endl;
96 CentralityInfo* cent_node = findNode::getClass<CentralityInfo>(topNode,
"CentralityInfo");
99 std::cout <<
"MultiDetectorMultiplicity::process_event - Error can not find centrality node " << std::endl;
164 std::cout <<
"Ending MultiDetectorMultiplicity analysis package" << std::endl;
220 std::cout <<
"Finished MultiDetectorMultiplicity analysis package" << std::endl;
300 _SubsystemObjectsFail =
new TH1I(
"SubsystemObjectsFail",
"Times objects were NOT found;;Entries",8,0.,8.);
315 SvtxTrackMap *trackmap = findNode::getClass<SvtxTrackMap>(topNode,
"SvtxTrackMap");
320 <<
"SvtxTrackMap node is missing, can't collect tracks"
333 if (quality > 10)
continue;
343 int nsiliconhits = 0;
373 nsiliconhits = silicon_seed->size_cluster_keys();
376 if(nTPChits < 20)
continue;
378 if (nsiliconhits < 2)
continue;
388 TrkrClusterContainer *MVTXclusterMap = findNode::getClass<TrkrClusterContainer>(topNode,
"TRKR_CLUSTER");
393 <<
"TRKR_CLUSTER node is missing, can't collect hits"
399 float MVTXclusters = 0.;
404 for(
auto clusIter = range.first; clusIter != range.second; ++clusIter )
406 const auto cluster = clusIter->second;
408 if(!cluster)
continue;
421 TowerInfoContainer *towerinfosEM = findNode::getClass<TowerInfoContainer>(topNode,
"TOWERINFO_CALIB_CEMC");
426 <<
"TOWERINFO_CALIB_CEMC node is missing, can't collect EMCal towers"
432 float EMCalTotalEnergy = 0.;
435 for(
unsigned int i = 0;
i < towerinfosEM->
size();
i++)
441 return EMCalTotalEnergy;
446 TowerInfoContainer *towerinfosIH = findNode::getClass<TowerInfoContainer>(topNode,
"TOWERINFO_CALIB_HCALIN");
451 <<
"TOWERINFO_CALIB_HCALIN node is missing, can't collect IHCal towers"
457 float IHCalTotalEnergy = 0.;
460 for(
unsigned int i = 0;
i < towerinfosIH->
size();
i++)
466 return IHCalTotalEnergy;
471 TowerInfoContainer *towerinfosOH = findNode::getClass<TowerInfoContainer>(topNode,
"TOWERINFO_CALIB_HCALOUT");
476 <<
"TOWERINFO_CALIB_HCALOUT node is missing, can't collect OHCal towers"
482 float OHCalTotalEnergy = 0.;
485 for(
unsigned int i = 0;
i < towerinfosOH->
size();
i++)
491 return OHCalTotalEnergy;
496 TowerInfoContainer *towerinfosEPD = findNode::getClass<TowerInfoContainer>(topNode,
"TOWERINFO_CALIB_EPD");
501 <<
"TOWERINFO_CALIB_EPD node is missing, can't collect sEPD towers"
507 float EPDTotalEnergy = 0.;
510 for(
unsigned int i = 0;
i < towerinfosEPD->
size();
i++)
516 return EPDTotalEnergy;
521 for(
int i = 0;
i < 10;
i++)
523 histo->GetXaxis()->SetBinLabel(
i+1,Form(
"%d-%d%%",90-(
i*10),100-(
i*10)));
524 if(doYaxisLabels) histo->GetYaxis()->SetBinLabel(
i+1,Form(
"%d-%d%%",90-(
i*10),100-(
i*10)));
530 GlobalVertexMap *vertexmap = findNode::getClass<GlobalVertexMap>(topNode,
"GlobalVertexMap");
533 std::cout <<
"GlobalVertexMap node is missing. Event aborted!" << std::endl;
538 if (vertexmap->
empty())
540 std::cout <<
"GlobalVertexMap node is empty. Event aborted!" << std::endl;