LArSoft  v07_13_02
Liquid Argon Software toolkit - http://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(), trkmkr::TrackTrajectoryCreationBookKeeper::addPoint(), ClusteringValidation::ClusterAnalyser::Analyse(), reco3d::PlotSpacePoints::analyze(), cheat::CheckBackTracking::analyze(), MCBTDemo::analyze(), trkf::SpacePointAna::analyze(), hit::MagDriftAna::analyze(), RecoProxyUsageExample::analyze(), cluster::DBclusterAna::analyze(), hit::GausHitFinderAna::analyze(), NuShowerEff::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(), calo::LinearEnergyAlg::CalculateClusterEnergy(), evd::AnalysisBaseDrawer::CalorInteractive(), cluster::ClusterCrawlerAlg::CheckHitDuplicates(), cheat::RecoCheckAna::CheckRecoClusters(), cheat::RecoCheckAna::CheckRecoEvents(), cheat::RecoCheckAna::CheckRecoShowers(), cheat::RecoCheckAna::CheckRecoTracks(), cheat::RecoCheckAna::CheckRecoVertices(), shower::EMShowerAlg::CheckShowerPlanes(), pma::ProjectionMatchingAlg::chkEndpointHits(), trkf::KGTrack::clear(), cluster::ClusterParamsAlgBase::Clear(), tss::Cluster2D::Cluster2D(), evd::RecoBaseDrawer::Cluster2D(), lar_pandora::LArPandoraHelper::CollectClusters(), lar_pandora::LArPandoraHelper::CollectShowers(), pma::PMAlgTracker::collectSingleViewEnd(), pma::PMAlgTracker::collectSingleViewFront(), lar_pandora::LArPandoraHelper::CollectTracks(), ems::MultiEMShowers::convCluster(), cluster::BlurredClusteringAlg::ConvertBinsToRecobHits(), cluster::BlurredClusteringAlg::ConvertRecobHitsToVector(), lar_pandora::LArPandoraOutput::CopyAllHitsToSingleSlice(), apa::DisambigAlg::Crawl(), recob::HitCollectionCreator::CreatePtrToLastHit(), pma::Dist2(), evd::RecoBaseDrawer::DrawTrackVertexAssns2D(), recob::HitCollectionCreator::emplace_back(), 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::FillTQHisto(), evd::RecoBaseDrawer::FillTQHistoDP(), filter::MuonFilter::filter(), shower::EMShowerAlg::FindOrderOfHits(), mvapid::MVAAlg::FitAndSortTrack(), trkf::TrackKalmanFitter::fitTrack(), cmtool::CFAlgoStartTimeCompat::Float(), util::PxHitConverter::GeneratePxHit(), trkf::Track3DKalmanHit::getAllHits(), lar_pandora::LArPandoraHelper::GetAssociatedHits(), trkf::BezierTrack::GetClosestApproaches(), trkf::Track3DKalmanHit::getClusteredHits(), trkf::TrackStitcher::GetHitsFromAssdSpacePoints(), trkf::TrackStitcher::GetHitsFromComponentTracks(), trkf::Track3DKalmanHit::getPFParticleStuff(), cheat::BackTrackerService::GetSetOfEveIds(), cheat::BackTracker::GetSetOfEveIds(), cheat::BackTrackerService::GetSetOfTrackIds(), cheat::BackTracker::GetSetOfTrackIds(), 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::ClusterParamsImportWrapper< Algo >::ImportHits(), cluster::DBScan3DAlg::init(), shower::EMShowerAlg::isCleanShower(), pma::ProjectionMatchingAlg::isContained(), pma::Track3D::Length(), main(), wc::MergeWireCell::MakeShowers(), wc::MergeWireCell::MakeTracks(), trkf::Track3DKalmanHitAlg::makeTracks(), pma::PMAlgTracker::matchCluster(), pma::PMAlgTracker::matchTrack(), vertex::AggregateVertex::MatchV2T(), cluster::MergeClusterAlg::MergeClusters(), cluster::ClusterAndHitMerger::NHits(), proxy::TrackCollectionProxyElement< CollProxy >::nHits(), mvapid::MVAAlg::SumDistance2::operator()(), cheat::PhotonBackTracker::OpHitToSimSDPs(), shower::EMShowerAlg::OrderShowerHits(), 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(), event::EventMaker::produce(), opdet::FlashClusterMatch::produce(), hit::DisambigCheater::produce(), vertex::VertexCheater::produce(), trkf::TCTrack::produce(), cluster::SimpleClusterMerger::produce(), event::EventCheater::produce(), shwf::ShowerCheater::produce(), trkf::SpacePointFinder::produce(), trkf::SpacePointCheater::produce(), tss::TrackShowerHits::produce(), cluster::SimpleLineCluster::produce(), hit::HitCheater::produce(), trkf::TrackCheater::produce(), calo::BezierCalorimetry::produce(), cluster::ClusterCheater::produce(), cluster::DBCluster3D::produce(), ShowerReco3D::produce(), cluster::FuzzyClusterMerger::produce(), cluster::BlurredClustering::produce(), shower::EMShower::produce(), trkf::Track3Dreco::produce(), trkf::TrackKalmanCheater::produce(), shwf::ShowerFinder::produce(), reco3d::SpacePointSolver::produce(), vertex::PrimaryVertexFinder::produce(), trkf::TrackStitcher::produce(), calo::Calorimetry::produce(), vertex::VertexFinder2D::produce(), shwf::ShowerReco::produce(), trkf::Track3DKalman::produce(), trkf::Track3DKalmanSPS::produce(), t0::MCTruthT0Matching::produce(), trkf::CosmicTracker::produce(), ems::MergeEMShower3D::produce(), pma::ProjectionMatchingAlg::ProjectionMatchingAlg(), evd::RecoBaseDrawer::Prong2D(), cheat::BackTrackerService::provider(), recob::HitAndAssociationsWriterBase::put_into(), recob::HitCollectionCreator::put_into(), pma::PMAlgTracker::reassignHits_1(), pma::PMAlgTracker::reassignHits_2(), pma::PMAlgTracker::reassignSingleViewEnds_1(), pma::PMAlgTracker::reassignSingleViewEnds_2(), pma::Track3D::RemoveHits(), cluster::ClusterCrawlerAlg::RemoveObsoleteHits(), ems::EMShower3D::Reoptimize(), recob::HitCollectionCreator::reserve(), mvapid::MVAAlg::RunPCA(), shower::TrackShowerSeparationAlg::SelectShowerHits(), shower::ReconTrack::SetHits(), trkf::KalmanFilterAlg::setPlane(), trkf::TrackKalmanFitter::setupInputStates(), shower::ShowerEnergyAlg::ShowerEnergy(), recob::HitAndAssociationsWriterBase::size(), recob::HitCollectionCreator::size(), evd::RecoBaseDrawer::Slice2D(), trkf::Track3DKalmanHitAlg::smoothandextendTrack(), mvapid::MVAAlg::SortShower(), cheat::BackTrackerService::SpacePointHitsToWeightedXYZ(), cheat::BackTracker::SpacePointHitsToWeightedXYZ(), pma::Track3D::TestHits(), pma::ProjectionMatchingAlg::testHits(), pma::Track3D::TestHitsMse(), trkf::TrackKalmanFitter::TrackKalmanFitter(), trkmkr::TrackTrajectoryCreationBookKeeper::TrackTrajectoryCreationBookKeeper(), cluster::HoughBaseAlg::Transform(), reco3d::PlotSpacePoints::TrueSpacePoints(), recob::HitCollectionAssociator::use_hits(), recob::HitRefinerAssociator::use_hits(), ems::EMShower3D::Validate(), pma::ProjectionMatchingAlg::validate(), and pma::ProjectionMatchingAlg::validate_on_adc_test().

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