Commit f3a6d2b2 authored by Adrien Matta's avatar Adrien Matta
Browse files

* Adding option to change Threshold in Nebula

parent a222a38b
Pipeline #123764 passed with stages
in 3 minutes and 45 seconds
......@@ -193,6 +193,9 @@ class TNebulaPhysics : public TObject, public NPL::VDetector {
double m_Q_Threshold; //!
double m_V_Threshold; //!
public:
void SetQThreshold(double t) {m_Q_Threshold=t;};
void SetVThreshold(double t) {m_V_Threshold=t;};
// number of detectors
private:
int m_NumberOfBars; //!
......@@ -237,7 +240,7 @@ class TNebulaPhysics : public TObject, public NPL::VDetector {
// spectra getter
public:
map<string, TH1*> GetSpectra();
// Static constructor to be passed to the Detector Factory
public:
static NPL::VDetector* Construct();
......
......@@ -3,6 +3,6 @@ void gamma(){
auto chain = new TChain("PhysicsTree");
chain->Add("root/analysis/gamma/run418.root");
chain->Draw("Nebula.Time:Nebula.DetectorNumber>>h(150,0,150,1000,0,150)","","colz");
chain->Draw("(Nebula.PosZ+4650)/Nebula.TOF:Nebula.DetectorNumber>>h(150,0,150,2000,0,500)","","colz");
}
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment