Functions
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.

References om::cout, allTimeWatchdog::endl, MECModelEnuComparisons::i, findDuplicateFiles::key, and next().

Referenced by novaddt::HitsAna::addHit(), dt::Chain::AllHits(), novaddt::MilliBlockChecking::analyze(), cheat::TestTrackIds::analyze(), novaddt::Evaluation::analyze(), novaddt::SingletonRejectionAna::analyze(), cheat::CheckBackTracking::analyze(), calib::ThresholdAna::analyze(), air::AirTree::analyze(), novaddt::RateMonitor::analyze(), air::AirShower::analyze(), mmc::Validation::analyze(), novaddt::ChannelMapMaker::analyze(), mcchk::ShowerAnaCheck::analyze(), supernova::SnovaAna::analyze(), novaddt::HotMapMaker::analyze(), sn::SupernovaAna::analyze(), sn::SNSlicerAna::analyze(), mono::DataCheckMonopole::analyze(), mcchk::LeptonAna::analyze(), ddt::DataSliceEva::analyze(), ddt::SlicerEva::analyze(), mcchk::DetSimAna::analyze(), zcl::FastMMStudy::analyze(), mono::Monopole::analyze(), LightLevels::analyze(), CerenkovResponse::analyze(), air::AirKalmanAna::analyze(), ddt::SuperDDTEva::analyze(), upmuana::UpMuRecoAna::analyze(), murem::MRCCAna::analyze(), slicer::Slicer::BlockSlice(), beamlinereco::WCTrackAlg::buildFourPointTracks(), sn::SupernovaMCCluster::BuildInteractionHitMap(), cheat::CheckBackTracking::CheckPurityAndEfficiency(), cheat::RecoCheckAna::CheckRecoClusters(), trk::KalmanTrackAna::CheckRecoTracks(), dt::Chunk::Chunk(), ddthelpers::cluster_hits(), sn::SNMichelAnalyzer::ClusterAroundTrackEnds(), cheat::BackTracker::ClusterByTruth(), bpfit::dEdxCalculator::computeDEDX(), novaddt::DropoutDCMFilter::CountDCMOccupancy(), tdslicer::TDSlicer::DBSCAN(), novaddt::ContainedSlice::defineContainmentRegion(), draw_hits(), Expression::Eval(), zcl::FastMonopoleTriggers::FastMonopoleTriggers(), Expression::fetchAll(), tdslicer::TDSlicer::FillDists(), novaddt::ChannelMapService::fillMapFromEvent(), hv::HoughVertexAlg::FillMaps(), murem::MuonRemove::FillTruthInfo(), novaddt::SortByTDC::filter(), novaddt::HighSortByTDC::filter(), novaddt::SortByDCM::filter(), novaddt::SortByPlane::filter(), novaddt::TDSlice::filter(), novaddt::Slicer3D::filter(), novaddt::DCMSlice::filter(), novaddt::HighADCFilter::filter(), novaddt::TimeSlice::filter(), novaddt::SingletonRejection::filter(), novaddt::DDTStreamer::filter(), novaddt::DDTDemo::filter(), novaddt::DBSlicer::filter(), novaddt::ActivityTrigger::filter(), novaddt::FEBOverflowTrigger::filter(), novaddt::FEBFlashFilter::filter(), novaddt::ActiveDCMFilter::filter(), novaddt::ActivityTriggerAna::filter(), novaddt::SlowMonopoleTrigger::filter(), novaddt::FastMMTrigger::filter(), mono::MonopoleCluster::filter(), novaddt::NNFastMMTrigger::filter(), novaddt::SlowMMTrigger::filter(), mono::SlowMonopoleFilt::filter(), calib::MuondEdx::filter(), calib::MuonTrackHits::filter(), calib::MuondEdxAna::filter(), novaddt::ContainedSlice::filterForContainedHitLists(), novaddt::Multiplet::findslices(), calib::EnergyStandardCandles::FindStoppingMuons(), trk::WindowTrackingAlg::FitView(), nuesand::FillNueSandbox::FracAngChanges(), nuesand::FillNueSandbox::FracNonContiguous(), evd::SimulationDrawer::GetLimits(), tdslicer::TDSlicer::GetPtInfo(), evd::SimulationDrawer::GetTimeLimits(), novaddt::HitsAna::HitFormatConsolidation(), slicer::MMSlicer::HitTime(), slicer::Slicer::HitTime(), cheat::BackTracker::HitToFLSHit(), novaddt::Multiplet::isHitCloseToHit(), cheat::BackTracker::IsHitsNoise(), make_plots(), dt::View::MakeChunkCombos(), cheat::BackTracker::MCTruthToCluster(), cvn::PixelMap::NInput(), sn::SliceRemover::NumRemoved(), sn::LowHighADCRemover::NumRemovedHigh(), sn::TrackActivityRemover::NumRemovedTrack(), novaddt::UpMuAna::populateFLSmap(), tdslicer::TDSlicer::Prims(), novaddt::ContainedSlice::printDDTSlices(), novaddt::SortByView::produce(), cheat::ClusterCheater::produce(), cheat::ProngCheater::produce(), cheat::ShowerCheater::produce(), cheat::TrackCheater::produce(), NovaDDTHitProducer::produce(), MergeG4Collections::MergeG4Collections::produce(), MergeCollections::MergeCollections::produce(), cvn::CVNCosmicMapper::produce(), photrans::PhotonTransport::produce(), sn::SNSlicer::produce(), sn::SupernovaMCCluster::produce(), cheat::MCCheater::produce(), sn::SNBackgroundRejection::produce(), photrans::ImprovedTransport::produce(), murem::MergeTruth::produce(), novaddt::HitSubtract::produce(), novaddt::NovaDDTRawInputDriver::readNext(), cheat::BackTracker::Rebuild(), dt::DiscreteTracker::RecoDiscrete(), sn::FEBFlasherRemover::remove(), sn::ColdHotChannelsRemover::remove(), sn::LowHighADCRemover::remove(), sn::HighEnergyRemover::remove(), sn::TrackActivityRemover::remove(), beamlinereco::WCHitFinderAlg::run_DBSCAN(), trk::KalmanTrack::SegmentFinder(), set_eventn_status_timing(), sn::HighEnergyRemover::SetVetoWindowPadding(), trk::WindowTrackingAlg::ShortViewTrack(), beamlinereco::WCTrackAlg::shouldSkipTrigger(), trk::KalmanTrack::SingleSegment(), murem::TrackCleanUpAlg::SortByDistFromTrack(), tdslicer::TDSlicer::SortStuff(), slicer::MMSlicer::WindowSlice(), slicer::Slicer::WindowSlice(), slicer::MMSlicer::WindowSliceZ(), and slicer::Slicer::WindowSliceZ().

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
OStream cout
Definition: OStream.cxx:6
void next()
Definition: show_event.C:84