Skip to content
Snippets Groups Projects
Commit f3a6d2b2 authored by Adrien Matta's avatar Adrien Matta :skull_crossbones:
Browse files

* Adding option to change Threshold in Nebula

parent a222a38b
No related branches found
No related tags found
No related merge requests found
Pipeline #123764 passed
...@@ -193,6 +193,9 @@ class TNebulaPhysics : public TObject, public NPL::VDetector { ...@@ -193,6 +193,9 @@ class TNebulaPhysics : public TObject, public NPL::VDetector {
double m_Q_Threshold; //! double m_Q_Threshold; //!
double m_V_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 // number of detectors
private: private:
int m_NumberOfBars; //! int m_NumberOfBars; //!
...@@ -237,7 +240,7 @@ class TNebulaPhysics : public TObject, public NPL::VDetector { ...@@ -237,7 +240,7 @@ class TNebulaPhysics : public TObject, public NPL::VDetector {
// spectra getter // spectra getter
public: public:
map<string, TH1*> GetSpectra(); map<string, TH1*> GetSpectra();
// Static constructor to be passed to the Detector Factory // Static constructor to be passed to the Detector Factory
public: public:
static NPL::VDetector* Construct(); static NPL::VDetector* Construct();
......
...@@ -3,6 +3,6 @@ void gamma(){ ...@@ -3,6 +3,6 @@ void gamma(){
auto chain = new TChain("PhysicsTree"); auto chain = new TChain("PhysicsTree");
chain->Add("root/analysis/gamma/run418.root"); 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");
} }
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment