28 void saveHistos(TFile* outF,std::string folder);
31 bool isLayerCode(std::string histoName,
int nLayers,
int ptr );
32 void setOutputDir(TFile* outF, std::string folder, std::string histoName);
37 void Fill1DTrack(
Track* track,
double trkTimeOffset,
float weight = 1.,
const std::string& trkname =
"");
38 void Fill2DTrack(
Track* track,
float weight = 1.,
const std::string& trkname =
"");
59 std::pair<CalCluster, Track*> posOrGamma,
double calTimeOffset,
60 double trkTimeOffset,
double weight);
66 std::vector<std::string>
vPs{
"vtx_chi2",
"vtx_X",
"vtx_Y",
"vtx_Z",
"vtx_sigma_X",
"vtx_sigma_Y",
"vtx_sigma_Z",
"vtx_InvM",
"vtx_InvMErr"};
73 std::string makeCopyJsonTag =
"default=single_copy");
Class used to encapsulate information about a particle.
Class used to encapsulate raw svt hit information.
Class used to encapsulate track information.
Class used to encapsulate tracker hit information.
Class used to encapsulate Vertex information.
std::string m_name
description
std::pair< CalCluster *, Track * > getTrackClusterPair(Track *trk, std::vector< CalCluster * > &clusters, float weight)
void DefineHistos()
Definition of histograms from json config.
virtual void Define3DHistos()
define additional 3D histo by hand
void Fill1DTrack(Track *track, double trkTimeOffset, float weight=1., const std::string &trkname="")
void saveHistos(TFile *outF, std::string folder)
save histograms
TridentHistos(const std::string &inputName)
void FillTrackComparisonHistograms(Track *track_x, Track *track_y, float weight=1.)
void Fill2DTrack(Track *track, float weight=1., const std::string &trkname="")
void FillResidualHistograms(Track *track, int ly, double res, double sigma)
virtual void DefineHistosFromTemplateOnly(std::vector< std::string > histoCopyNames, std::string makeCopyJsonTag="default=single_copy")
void Fill1DHistograms(Track *track=nullptr, Vertex *vtx=nullptr, float weight=1.)
void Fill1DVertex(Vertex *vtx, float weight=1.)
void doTrackComparisonPlots(bool doplots)
void FillWABHistos(std::pair< CalCluster *, Track * > ele, CalCluster *gamma, double weight)
virtual void Define2DHistos()
define additional 2D histo by hand
void Fill1DTrackTruth(Track *track, Track *truth_track, float weight=1., const std::string &="")
virtual void DefineOneTimeHistos()
std::string getLayerCodeFromTrack(Track *trk)
void Fill2DHistograms(Vertex *vtx=nullptr, float weight=1.)
std::vector< std::string > vPs
void FillTrackClusterHistos(std::pair< CalCluster, Track * > ele, std::pair< CalCluster, Track * > posOrGamma, double calTimeOffset, double trkTimeOffset, double weight)
void setOutputDir(TFile *outF, std::string folder, std::string histoName)
void AssignLayerCode(Track *ele_trk, Track *pos_trk)
void setBeamEnergy(double ebeam)
bool isLayerCode(std::string histoName, int nLayers, int ptr)
std::string splitByElePosLayerCombos(std::string histoName)
std::string getLayerCodeFromHistoName(std::string name)