MUSIC unknown
Analysis for the MUSIC active-target ionization chamber
Loading...
Searching...
No Matches
PulseHistory.cpp File Reference
#include "PulseHistory.hpp"
#include "Constants.hpp"
#include "FileSet.hpp"
#include "IOUtils.hpp"
#include "PlottingUtils.hpp"
#include <TCanvas.h>
#include <TDecompSVD.h>
#include <TFile.h>
#include <TGraph.h>
#include <TH1D.h>
#include <TH2D.h>
#include <TLegend.h>
#include <TLine.h>
#include <TMath.h>
#include <TMatrixD.h>
#include <TProfile.h>
#include <TTree.h>
#include <TVectorD.h>
#include <algorithm>
#include <cmath>
#include <deque>
#include <functional>
#include <iostream>
Include dependency graph for PulseHistory.cpp:

Go to the source code of this file.

Namespaces

namespace  PulseHistory

Functions

const char * PulseHistory::GroupName (Int_t g)
 Human-readable name of a Group.
const char * PulseHistory::GroupTag (Int_t g)
 Short tag for filenames: L, R, Ls, Rs, S0, S17.
Int_t PulseHistory::ChainOf (Int_t g)
 Which readout chain a group belongs to.
Bool_t PulseHistory::IsLongGroup (Int_t g)
 Whether a group is a long end rather than a short end or guard.
Int_t PulseHistory::BinOf (Double_t dt_s)
 Kernel bin for a time since the previous pulse.
Double_t PulseHistory::BinCentreUs (Int_t b)
 Centre of a kernel bin, in microseconds, for reports.
Int_t PulseHistory::AmpBinOf (Double_t e_prev, Double_t mode, Int_t n_amp)
 Amplitude band of a previous pulse.
std::vector< Int_t > PulseHistory::BuildGroupMap ()
 Group lookup for every (board, channel) under the active map.
Bool_t PulseHistory::Measure (std::vector< RawHit > &hits, const std::vector< Int_t > &group_of, Result &res, const TString &file_label)
 Measure the kernels on this subfile's beam-like events.
void PulseHistory::Apply (std::vector< RawHit > &hits, const std::vector< Int_t > &group_of, Result &res)
 Apply the measured kernels to the hit stream, in place.
TString PulseHistory::Report (const Result &res, const TString &file_label)
 Format the pass as a human-readable report.
void PulseHistory::SavePlots (Result &res, const TString &file_label)
 Draw and save the diagnostics, then free them.
void PulseHistory::WriteToEventsFile (const TString &events_subpath, const Result &res)
 Record the kernels and counters alongside a subfile's events.