renamed: Calibration.C -> CalibrationQQQ.C changed name to make the calibration script explicitly state the kind of detectors QQQ
renamed: Calibration.h -> CalibrationQQQ.h modified: README.md
This commit is contained in:
parent
5824fa7148
commit
948c6e6ea2
|
|
@ -1,5 +1,5 @@
|
||||||
|
|
||||||
#define Calibration_cxx
|
#define CalibrationQQQ_cxx
|
||||||
|
|
||||||
#include <TH2.h>
|
#include <TH2.h>
|
||||||
#include <TF1.h>
|
#include <TF1.h>
|
||||||
|
|
@ -32,7 +32,7 @@ double qqqwGain[MAX_QQQ][MAX_RING][MAX_WEDGE] = {{{0}}};
|
||||||
bool qqqwGainValid[MAX_QQQ][MAX_RING][MAX_WEDGE] = {{{false}}};
|
bool qqqwGainValid[MAX_QQQ][MAX_RING][MAX_WEDGE] = {{{false}}};
|
||||||
// bool qqqrGainValid[MAX_QQQ][MAX_RING][MAX_WEDGE] = {{{false}}};
|
// bool qqqrGainValid[MAX_QQQ][MAX_RING][MAX_WEDGE] = {{{false}}};
|
||||||
|
|
||||||
void Calibration::Begin(TTree * /*tree*/)
|
void CalibrationQQQ::Begin(TTree * /*tree*/)
|
||||||
{
|
{
|
||||||
plotter = new HistPlotter("Calib.root", "TFILE");
|
plotter = new HistPlotter("Calib.root", "TFILE");
|
||||||
// ----------------------- Load QQQ Gains
|
// ----------------------- Load QQQ Gains
|
||||||
|
|
@ -72,7 +72,7 @@ void Calibration::Begin(TTree * /*tree*/)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
Bool_t Calibration::Process(Long64_t entry)
|
Bool_t CalibrationQQQ::Process(Long64_t entry)
|
||||||
{
|
{
|
||||||
b_qqqMulti->GetEntry(entry);
|
b_qqqMulti->GetEntry(entry);
|
||||||
b_qqqID->GetEntry(entry);
|
b_qqqID->GetEntry(entry);
|
||||||
|
|
@ -156,7 +156,7 @@ Bool_t Calibration::Process(Long64_t entry)
|
||||||
return kTRUE;
|
return kTRUE;
|
||||||
}
|
}
|
||||||
|
|
||||||
void Calibration::Terminate()
|
void CalibrationQQQ::Terminate()
|
||||||
{
|
{
|
||||||
const double AM241_PEAK = 5485.56;
|
const double AM241_PEAK = 5485.56;
|
||||||
const double P_PEAK = 7000; // keV
|
const double P_PEAK = 7000; // keV
|
||||||
|
|
@ -1,5 +1,5 @@
|
||||||
#ifndef Calibration_h
|
#ifndef CalibrationQQQ_h
|
||||||
#define Calibration_h
|
#define CalibrationQQQ_h
|
||||||
|
|
||||||
#include <TROOT.h>
|
#include <TROOT.h>
|
||||||
#include <TChain.h>
|
#include <TChain.h>
|
||||||
|
|
@ -8,7 +8,7 @@
|
||||||
|
|
||||||
#include "Armory/ClassDet.h"
|
#include "Armory/ClassDet.h"
|
||||||
|
|
||||||
class Calibration : public TSelector {
|
class CalibrationQQQ : public TSelector {
|
||||||
public :
|
public :
|
||||||
TTree *fChain; //!pointer to the analyzed TTree or TChain
|
TTree *fChain; //!pointer to the analyzed TTree or TChain
|
||||||
|
|
||||||
|
|
@ -41,8 +41,8 @@ public :
|
||||||
TBranch *b_pcE; //!
|
TBranch *b_pcE; //!
|
||||||
TBranch *b_pcT; //!
|
TBranch *b_pcT; //!
|
||||||
|
|
||||||
Calibration(TTree * /*tree*/ =0) : fChain(0) { }
|
CalibrationQQQ(TTree * /*tree*/ =0) : fChain(0) { }
|
||||||
virtual ~Calibration() { }
|
virtual ~CalibrationQQQ() { }
|
||||||
virtual Int_t Version() const { return 2; }
|
virtual Int_t Version() const { return 2; }
|
||||||
virtual void Begin(TTree *tree);
|
virtual void Begin(TTree *tree);
|
||||||
virtual void SlaveBegin(TTree *tree);
|
virtual void SlaveBegin(TTree *tree);
|
||||||
|
|
@ -57,13 +57,13 @@ public :
|
||||||
virtual void SlaveTerminate();
|
virtual void SlaveTerminate();
|
||||||
virtual void Terminate();
|
virtual void Terminate();
|
||||||
|
|
||||||
ClassDef(Calibration,0);
|
ClassDef(CalibrationQQQ,0);
|
||||||
};
|
};
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifdef Calibration_cxx
|
#ifdef CalibrationQQQ_cxx
|
||||||
void Calibration::Init(TTree *tree){
|
void CalibrationQQQ::Init(TTree *tree){
|
||||||
|
|
||||||
// Set branch addresses and branch pointers
|
// Set branch addresses and branch pointers
|
||||||
if (!tree) return;
|
if (!tree) return;
|
||||||
|
|
@ -95,20 +95,20 @@ void Calibration::Init(TTree *tree){
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
Bool_t Calibration::Notify(){
|
Bool_t CalibrationQQQ::Notify(){
|
||||||
|
|
||||||
return kTRUE;
|
return kTRUE;
|
||||||
}
|
}
|
||||||
|
|
||||||
void Calibration::SlaveBegin(TTree * /*tree*/){
|
void CalibrationQQQ::SlaveBegin(TTree * /*tree*/){
|
||||||
|
|
||||||
TString option = GetOption();
|
TString option = GetOption();
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void Calibration::SlaveTerminate(){
|
void CalibrationQQQ::SlaveTerminate(){
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
#endif // #ifdef Calibration_cxx
|
#endif // #ifdef CalibrationQQQ_cxx
|
||||||
|
|
@ -74,7 +74,7 @@ Raw .fsu files (FSU digitizer output)
|
||||||
│ ├── GainMatchQQQ.C │
|
│ ├── GainMatchQQQ.C │
|
||||||
│ │ QQQ ring/wedge gain matching │
|
│ │ QQQ ring/wedge gain matching │
|
||||||
│ │ Output: qqq_GainMatch.dat │
|
│ │ Output: qqq_GainMatch.dat │
|
||||||
│ ├── Calibration.C │
|
│ ├── CalibrationQQQ.C │
|
||||||
│ │ Final absolute energy calibration for all detectors │
|
│ │ Final absolute energy calibration for all detectors │
|
||||||
│ │ Output: qqq_Calib.dat │
|
│ │ Output: qqq_Calib.dat │
|
||||||
│ ├── PCGainMatch.C │
|
│ ├── PCGainMatch.C │
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user