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 <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 qqqrGainValid[MAX_QQQ][MAX_RING][MAX_WEDGE] = {{{false}}};
|
||||
|
||||
void Calibration::Begin(TTree * /*tree*/)
|
||||
void CalibrationQQQ::Begin(TTree * /*tree*/)
|
||||
{
|
||||
plotter = new HistPlotter("Calib.root", "TFILE");
|
||||
// ----------------------- 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_qqqID->GetEntry(entry);
|
||||
|
|
@ -156,7 +156,7 @@ Bool_t Calibration::Process(Long64_t entry)
|
|||
return kTRUE;
|
||||
}
|
||||
|
||||
void Calibration::Terminate()
|
||||
void CalibrationQQQ::Terminate()
|
||||
{
|
||||
const double AM241_PEAK = 5485.56;
|
||||
const double P_PEAK = 7000; // keV
|
||||
|
|
@ -1,5 +1,5 @@
|
|||
#ifndef Calibration_h
|
||||
#define Calibration_h
|
||||
#ifndef CalibrationQQQ_h
|
||||
#define CalibrationQQQ_h
|
||||
|
||||
#include <TROOT.h>
|
||||
#include <TChain.h>
|
||||
|
|
@ -8,7 +8,7 @@
|
|||
|
||||
#include "Armory/ClassDet.h"
|
||||
|
||||
class Calibration : public TSelector {
|
||||
class CalibrationQQQ : public TSelector {
|
||||
public :
|
||||
TTree *fChain; //!pointer to the analyzed TTree or TChain
|
||||
|
||||
|
|
@ -41,8 +41,8 @@ public :
|
|||
TBranch *b_pcE; //!
|
||||
TBranch *b_pcT; //!
|
||||
|
||||
Calibration(TTree * /*tree*/ =0) : fChain(0) { }
|
||||
virtual ~Calibration() { }
|
||||
CalibrationQQQ(TTree * /*tree*/ =0) : fChain(0) { }
|
||||
virtual ~CalibrationQQQ() { }
|
||||
virtual Int_t Version() const { return 2; }
|
||||
virtual void Begin(TTree *tree);
|
||||
virtual void SlaveBegin(TTree *tree);
|
||||
|
|
@ -57,13 +57,13 @@ public :
|
|||
virtual void SlaveTerminate();
|
||||
virtual void Terminate();
|
||||
|
||||
ClassDef(Calibration,0);
|
||||
ClassDef(CalibrationQQQ,0);
|
||||
};
|
||||
|
||||
#endif
|
||||
|
||||
#ifdef Calibration_cxx
|
||||
void Calibration::Init(TTree *tree){
|
||||
#ifdef CalibrationQQQ_cxx
|
||||
void CalibrationQQQ::Init(TTree *tree){
|
||||
|
||||
// Set branch addresses and branch pointers
|
||||
if (!tree) return;
|
||||
|
|
@ -95,20 +95,20 @@ void Calibration::Init(TTree *tree){
|
|||
|
||||
}
|
||||
|
||||
Bool_t Calibration::Notify(){
|
||||
Bool_t CalibrationQQQ::Notify(){
|
||||
|
||||
return kTRUE;
|
||||
}
|
||||
|
||||
void Calibration::SlaveBegin(TTree * /*tree*/){
|
||||
void CalibrationQQQ::SlaveBegin(TTree * /*tree*/){
|
||||
|
||||
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 │
|
||||
│ │ QQQ ring/wedge gain matching │
|
||||
│ │ Output: qqq_GainMatch.dat │
|
||||
│ ├── Calibration.C │
|
||||
│ ├── CalibrationQQQ.C │
|
||||
│ │ Final absolute energy calibration for all detectors │
|
||||
│ │ Output: qqq_Calib.dat │
|
||||
│ ├── PCGainMatch.C │
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user