69 hRecoMomentum =
tfs->
make<TH1F>(
"RecoMomentum",
";Reconstructed WC Momentum (MeV);", 100, 0, 2000);
85 std::vector<art::Ptr<brb::WCTrack> > wcTracks;
90 std::cout <<
"There are " << wcTracks.size() <<
" WC tracks in this event" <<
std::endl;
92 if (wcTracks.size()) {
99 std::vector<art::Ptr<simb::MCTruth> > mcTruths;
104 std::cout <<
"Thers is " << mcTruths.size() <<
" MCTruth simulation-level objects in this event" <<
std::endl;
106 if (mcTruths.size()) {
107 std::cout <<
"There are " << mcTruths[0]->NParticles() <<
" particles in this simulation" <<
std::endl;
std::string fWCTrackModuleLabel
void reconfigure(const fhicl::ParameterSet &pset)
std::string fMCTruthModuleLabel
void analyze(const art::Event &evt)
DEFINE_ART_MODULE(TestTMapFile)
Encapsulation of reconstructed digitizer 'hits'. Used for ToF PMTs and SiPMs, and Cherenkov and Muon ...
double P(const int i=0) const
T get(std::string const &key) const
Encapsulation of reconstructed Time-of-Flight (ToF) information. Part of beamline reconstruction for ...
Encapsulation of reconstructed Wire Chamber track. Part of beamline reconstruction for NOvA test beam...
EventNumber_t event() const
EDAnalyzer(Table< Config > const &config)
WCTrackRecoAnalysis(const fhicl::ParameterSet &pset)
T * make(ARGS...args) const
bool getByLabel(std::string const &label, std::string const &productInstanceName, Handle< PROD > &result) const
const TLorentzVector & Momentum(const int i=0) const
art::ServiceHandle< art::TFileService > tfs
Raw data definitions for beamline data used in NOvA test beam experiment.
void fill_ptr_vector(std::vector< Ptr< T >> &ptrs, H const &h)
Encapsulation of reconstructed PID information from detectors in the beamline (ToF, WCs, Cherenkov). Part of beamline reconstruction for NOvA test beam.
int NParticles(int pdg_code, const TClonesArray *const particle_list)
Encapsulation of reconstructed track in the muon stack downstream of test beam detector. Part of beamline reconstruction for NOvA test beam.