LArSoft  v09_90_00
Liquid Argon Software toolkit - https://larsoft.org/
readHits.C File Reference
#include "TROOT.h"
#include "TFile.h"
#include "TSystem.h"
#include "TKey.h"
#include "include/ExP01TrackerHit.hh"

Go to the source code of this file.

Functions

void hits ()
 

Function Documentation

void hits ( )

Definition at line 15 of file readHits.C.

Referenced by pma::ProjectionMatchingAlg::addEndpointRef_(), pma::Track3D::AddHits(), genf::GFTrack::addHitVector(), ClusteringValidation::ClusterAnalyser::Analyse(), reco3d::PlotSpacePoints::analyze(), cheat::CheckBackTracking::analyze(), MCBTDemo::analyze(), hit::MagDriftAna::analyze(), hit::GausHitFinderAna::analyze(), cluster::DBclusterAna::analyze(), trkf::SpacePointAna::analyze(), RecoProxyUsageExample::analyze(), NuShowerEff::analyze(), nnet::PointIdEffTest::analyze(), lar::example::AnalysisExample::analyze(), ClusteringValidation::ClusteringValidation::analyze(), cluster::ClusterMergeHelper::AppendResult(), pma::ProjectionMatchingAlg::autoFlip(), pma::ProjectionMatchingAlg::buildMultiTPCTrack(), pma::ProjectionMatchingAlg::buildSegment(), pma::ProjectionMatchingAlg::buildShowerSeg(), lar_pandora::LArPandoraOutput::BuildSlice(), ShowerRecoTools::ShowerStartPositionCheater::CalculateElement(), ShowerRecoTools::ShowerTrackFinderCheater::CalculateElement(), ShowerRecoTools::Shower2DLinearRegressionTrackHitFinder::CalculateElement(), ShowerRecoTools::ShowerLinearEnergy::CalculateElement(), ShowerRecoTools::ShowerDirectionCheater::CalculateElement(), ShowerRecoTools::ShowerNumElectronsEnergy::CalculateElement(), ShowerRecoTools::ShowerIncrementalTrackHitFinder::CalculateElement(), ShowerRecoTools::ShowerTrajPointdEdx::CalculateElement(), ShowerRecoTools::ShowerLinearEnergy::CalculateEnergy(), ShowerRecoTools::ShowerNumElectronsEnergy::CalculateEnergy(), shower::LArPandoraShowerCheatingAlg::CheatDebugEVD(), cluster::ClusterCrawlerAlg::CheckHitDuplicates(), shower::EMShowerAlg::CheckIsolatedHits_(), cheat::RecoCheckAna::CheckRecoClusters(), cheat::RecoCheckAna::CheckRecoEvents(), cheat::RecoCheckAna::CheckRecoShowers(), cheat::RecoCheckAna::CheckRecoTracks(), cheat::RecoCheckAna::CheckRecoVertices(), shower::EMShowerAlg::CheckShowerHits_(), shower::EMShowerAlg::CheckShowerPlanes(), pma::ProjectionMatchingAlg::chkEndpointHits_(), nnet::EmTrack< N >::classify_hits(), trkf::KGTrack::clear(), cluster::ClusterParamsAlgBase::Clear(), tss::Cluster2D::Cluster2D(), evd::RecoBaseDrawer::Cluster2D(), lar_pandora::LArPandoraHelper::CollectClusters(), pma::PMAlgTracker::collectSingleViewEnd(), pma::PMAlgTracker::collectSingleViewFront(), lar_pandora::LArPandoraHelper::CollectTracks(), lar_dl_content::DlVertexingAlgorithm::CompleteMCHierarchy(), ems::MultiEMShowers::convCluster(), cluster::BlurredClusteringAlg::ConvertBinsToRecobHits(), cluster::BlurredClusteringAlg::ConvertRecobHitsToVector(), lar_pandora::LArPandoraOutput::CopyAllHitsToSingleSlice(), nnet::PointIdEffTest::countPfpDep(), apa::DisambigAlg::Crawl(), recob::HitCollectionCreator::CreatePtrToLastHit(), nnet::ParticleDecayId::DetectDecay(), pma::Dist2(), evd::RecoBaseDrawer::DrawTrackVertexAssns2D(), trkf::SpacePointAlg::enableW(), evd::RecoBaseDrawer::Event2D(), pma::ProjectionMatchingAlg::extendTrack(), pma::PMAlgTracker::extendTrack(), cluster::HoughBaseAlg::FastTransform(), trkf::SpacePointAlg::fillComplexSpacePoint(), reco3d::TripletFinder::FillHitMap(), trkf::SpacePointAlg::fillSpacePoint(), trkf::SpacePointAlg::fillSpacePoints(), evd::RecoBaseDrawer::FillTQHistoDP(), cluster::SmallClusterFilter::filter(), filter::MuonFilter::filter(), ShowerRecoTools::Shower2DLinearRegressionTrackHitFinder::FindInitialTrackHits(), shower::EMShowerAlg::FindOrderOfHits_(), mvapid::MVAAlg::FitAndSortTrack(), trkf::TrackKalmanFitter::fitTrack(), util::PxHitConverter::GeneratePxHit(), trkf::Track3DKalmanHit::getAllHits(), lar_pandora::LArPandoraHelper::GetAssociatedHits(), trkf::Track3DKalmanHit::getClusteredHits(), trkf::TrackStitcher::GetHitsFromAssdSpacePoints(), trkf::TrackStitcher::GetHitsFromComponentTracks(), trkf::Track3DKalmanHit::getPFParticleStuff(), lar_pandora::LArPandoraSliceIdHelper::GetPFParticleToHitsMap(), lar_pandora::LArPandoraSliceIdHelper::GetReconstructedHitsInSlice(), cheat::BackTrackerService::GetSetOfEveIds(), cheat::BackTracker::GetSetOfEveIds(), cheat::BackTrackerService::GetSetOfTrackIds(), cheat::BackTracker::GetSetOfTrackIds(), lar_pandora::LArPandoraSliceIdHelper::GetSliceMetadata(), pma::ProjectionMatchingAlg::guideEndpoints(), pma::Track3D::HasTPC(), evd::RecoBaseDrawer::Hit2D(), proxy::TrackCollectionProxyElement< CollProxy >::hitAtPoint(), cheat::BackTrackerService::HitChargeCollectionEfficiency(), cheat::BackTracker::HitChargeCollectionEfficiency(), cheat::BackTrackerService::HitChargeCollectionPurity(), cheat::BackTracker::HitChargeCollectionPurity(), cheat::BackTrackerService::HitCollectionEfficiency(), cheat::BackTracker::HitCollectionEfficiency(), cheat::BackTrackerService::HitCollectionPurity(), cheat::BackTracker::HitCollectionPurity(), cluster::ClusterAndHitMerger::Hits(), cheat::BackTracker::HitToXYZ(), cluster::HoughBaseAlg::HoughBaseAlg(), cluster::ClusterParamsImportWrapper< Algo >::ImportHits(), cluster::DBScan3DAlg::init(), shower::EMShowerAlg::isCleanShower(), pma::ProjectionMatchingAlg::isContained(), pma::Track3D::Length(), main(), trkf::Track3DKalmanHitAlg::makeTracks(), pma::PMAlgTracker::matchCluster(), pma::PMAlgTracker::matchTrack(), cluster::MergeClusterAlg::MergeClusters(), cluster::ClusterAndHitMerger::NHits(), proxy::TrackCollectionProxyElement< CollProxy >::nHits(), mvapid::MVAAlg::SumDistance2::operator()(), cheat::PhotonBackTracker::OpHitToSimSDPs(), shower::LArPandoraShowerAlg::OrderShowerHits(), shower::EMShowerAlg::OrderShowerHits(), shower::LArPandoraShowerAlg::OrganizeHits(), calo::GnocchiCalorimetry::OrganizeHits(), calo::GnocchiCalorimetry::OrganizeHitsIndividual(), calo::GnocchiCalorimetry::OrganizeHitsSnippets(), recob::HitAndAssociationsWriterBase::peek(), recob::HitCollectionCreator::peek(), recob::HitCollectionAssociator::prepare_associations(), recob::HitRefinerAssociator::prepare_associations(), lar_pandora::LArPandoraEventDump::PrintCluster(), lar_pandora::LArPandoraEventDump::PrintShower(), lar_pandora::LArPandoraEventDump::PrintSlice(), lar_pandora::LArPandoraEventDump::PrintSpacePoint(), lar_pandora::LArPandoraEventDump::PrintTrack(), DUNE::NeutrinoShowerEff::processEff(), genf::GFDaf::processTrack(), vertex::VertexCheater::produce(), hit::DisambigCheater::produce(), event::EventCheater::produce(), trkf::TCTrack::produce(), shwf::ShowerCheater::produce(), trkf::SpacePointCheater::produce(), trkf::SpacePointFinder::produce(), tss::TrackShowerHits::produce(), trkf::TrackCheater::produce(), cluster::ClusterCheater::produce(), shwf::ShowerFinder::produce(), hit::HitCheater::produce(), trkf::TrackStitcher::produce(), vertex::PrimaryVertexFinder::produce(), cluster::DBCluster3D::produce(), calo::ShowerCalorimetry::produce(), reco3d::SpacePointSolver::produce(), trkf::Track3Dreco::produce(), ShowerReco3D::produce(), cluster::BlurredClustering::produce(), cluster::TrajCluster::produce(), trkf::Track3DKalman::produce(), shwf::ShowerReco::produce(), trkf::TrackKalmanCheater::produce(), quad::QuadVtx::produce(), vertex::VertexFinder2D::produce(), shower::EMShower::produce(), nnet::ParticleDecayId::produce(), t0::MCTruthT0Matching::produce(), calo::Calorimetry::produce(), trkf::Track3DKalmanSPS::produce(), calo::GnocchiCalorimetry::produce(), trkf::CosmicTracker::produce(), pma::ProjectionMatchingAlg::ProjectionMatchingAlg(), evd::RecoBaseDrawer::Prong2D(), cheat::BackTrackerService::provider(), pma::PMAlgTracker::reassignHits_1(), pma::PMAlgTracker::reassignSingleViewEnds_1(), pma::Track3D::RemoveHits(), cluster::ClusterCrawlerAlg::RemoveObsoleteHits(), ems::EMShower3D::Reoptimize(), recob::HitCollectionCreator::reserve(), lar_content::HierarchyMonitoringAlgorithm::Run(), mvapid::MVAAlg::RunPCA(), shower::TrackShowerSeparationAlg::SelectShowerHits(), shower::ReconTrack::SetHits(), trkf::KalmanFilterAlg::setPlane(), trkf::TrackKalmanFitter::setupInputStates(), shower::LArPandoraShowerAlg::ShowerCentre(), shower::ShowerEnergyAlg::ShowerEnergy(), recob::HitAndAssociationsWriterBase::size(), recob::HitCollectionCreator::size(), evd::RecoBaseDrawer::Slice2D(), trkf::Track3DKalmanHitAlg::smoothandextendTrack(), mvapid::MVAAlg::SortShower(), shower::LArPandoraShowerAlg::SpacePointCharge(), cheat::BackTrackerService::SpacePointHitsToWeightedXYZ(), cheat::BackTracker::SpacePointHitsToWeightedXYZ(), shower::LArPandoraShowerAlg::SpacePointTime(), nnet::PointIdEffTest::testCNN(), pma::ProjectionMatchingAlg::testHits(), pma::Track3D::TestHits(), pma::Track3D::TestHitsMse(), trkf::TrackKalmanFitter::TrackKalmanFitter(), cluster::HoughBaseAlg::Transform(), shower::LArPandoraShowerCheatingAlg::TrueParticleIDFromTrueChain(), reco3d::PlotSpacePoints::TrueSpacePoints(), pma::ProjectionMatchingAlg::validate(), pma::ProjectionMatchingAlg::validate_on_adc_test(), and shower::EMShowerAlg::WorstPlane_().

16 {
17  TFile fo("hits.root");
18 
19  std::vector<ExP01TrackerHit*>* hits;
20  fo.GetListOfKeys()->Print();
21 
22  TIter next(fo.GetListOfKeys());
23  TKey *key;
24  double tot_en;
25  while ((key=(TKey*)next()))
26  {
27  fo.GetObject(key->GetName(), hits);
28 
29  tot_en = 0;
30  cout << "Collection: " << key->GetName() << endl;
31  cout << "Number of hits: " << hits->size() << endl;
32  for (int i=0;i!=hits->size();i++)
33  {
34  (*hits)[i]->Print();
35  }
36  }
37 }
void hits()
Definition: readHits.C:15