Example of an analysis class for reconstructed raw data
This is the analysis class generated by default by KaliVedaGUI for analysis of reconstructed raw data.
#ifndef __EXAMPLERECONRAWANALYSIS_H
#define __EXAMPLERECONRAWANALYSIS_H
#include "KVReconRawDataAnalyser.h"
public:
};
#endif
#define ClassDef(name, id)
virtual Bool_t Analysis()=0
virtual void EndAnalysis()=0
void AddHisto(TH1 *histo)
virtual void InitAnalysis()=0
Base class for user analysis of raw data with event reconstruction.
DisplacementVector3D< CoordSystem, U > Mult(const Matrix &m, const DisplacementVector3D< CoordSystem, U > &v)
#include "ExampleReconRawAnalysis.h"
void ExampleReconRawAnalysis::InitAnalysis()
{
AddHisto(
new TH1F(
"Mult",
"Number of reconstructed particles in each event", 200, -.5, 199.5));
CreateTreeFile();
AddTree(t);
t->
Branch(
"ArrayName", &ArrayName);
SetJobOutputFileName("ExampleReconRawAnalysis_results.root");
}
void ExampleReconRawAnalysis::InitRun()
{
Info(
"InitRun",
"Beginning analysis of run %d containing %llu events", GetRunNumber(), GetCurrentRun()->GetEvents());
GetTree("myTree")->SetTitle(GetSystem()->GetName());
}
Bool_t ExampleReconRawAnalysis::Analysis()
{
Mult = GetReconstructedEvent()->GetMult();
FillHisto("Mult", Mult);
Z = -1;
}
}
}
Bool_t HandledRawData() const
Int_t GetZ() const
Return the number of proton / atomic number.
Nuclei reconstructed from data measured by a detector array .
virtual Bool_t IsZMeasured() const
Bool_t IsIdentified() const
TString GetArrayName() const
Returns name of array particle was detected in (if known)
virtual Int_t Branch(const char *folder, Int_t bufsize=32000, Int_t splitlevel=99)
void FillTree(TTree &myTree, const RooDataSet &data)