diff --git a/NPLib/Detectors/Nebula/TNebulaPhysics.h b/NPLib/Detectors/Nebula/TNebulaPhysics.h index be14226c6b1966f53693ec6f5b50e496267f6e9a..5e1499b8ee42b0a6d6e6bfcecedf0aa364efbd6d 100644 --- a/NPLib/Detectors/Nebula/TNebulaPhysics.h +++ b/NPLib/Detectors/Nebula/TNebulaPhysics.h @@ -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(); diff --git a/Projects/S034/Calibration/Nebula/gamma.cxx b/Projects/S034/Calibration/Nebula/gamma.cxx index d8a7d0d647104074b6a93ec8cb09a3cb1ff6fbf5..e1bdeb940b6c5dae418e930f65d6f08a35c672da 100644 --- a/Projects/S034/Calibration/Nebula/gamma.cxx +++ b/Projects/S034/Calibration/Nebula/gamma.cxx @@ -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"); }