////////////////////////////////////////////////////////// // This class has been automatically generated on // Tue Apr 30 09:13:58 2024 by ROOT version 6.30/04 // from TTree AD/Analysed Data Tree // found on file: r0207_000a.root ////////////////////////////////////////////////////////// #ifndef HP_Ge_h #define HP_Ge_h #include #include #include // Header file for the classes stored in the TTree if any. class HP_Ge { public : TTree *fChain; //!pointer to the analyzed TTree or TChain Int_t fCurrent; //!current Tree number in a TChain // Fixed size dimensions of array or collections stored in the TTree if any. // Declaration of leaf types UShort_t FST_TACSRaw[4]; ULong64_t FST_TACSRawTS[4]; Float_t FST_TAC_11_C; Float_t FST_TAC_22_C; Float_t FST_TAC_12_C; Float_t FST_TAC_21_C; UShort_t FST_EnergyRaw[2]; ULong64_t FST_EnergyRawTS[2]; Float_t FST_E_C; Float_t FST_GRID_C; Int_t FST_CHIO_TraceRawM; UShort_t FST_CHIO_TraceRawNr[2]; //[FST_CHIO_TraceRawM] UShort_t FST_CHIO_TraceRaw[2]; //[FST_CHIO_TraceRawM] ULong64_t FST_CHIO_Trace_TS; Int_t FST_Start_QXRawM; UShort_t FST_Start_QXRawNr[79]; //[FST_Start_QXRawM] UShort_t FST_Start_QXRaw[79]; //[FST_Start_QXRawM] UShort_t FST_Start_QXRawT[79]; //[FST_Start_QXRawM] Int_t FST_Start_QXVM; Float_t FST_Start_QXV[76]; //[FST_Start_QXVM] UShort_t FST_Start_QXVN[76]; //[FST_Start_QXVM] Int_t FST_Start_QYRawM; UShort_t FST_Start_QYRawNr[61]; //[FST_Start_QYRawM] UShort_t FST_Start_QYRaw[61]; //[FST_Start_QYRawM] UShort_t FST_Start_QYRawT[61]; //[FST_Start_QYRawM] Int_t FST_Start_QYVM; Float_t FST_Start_QYV[61]; //[FST_Start_QYVM] UShort_t FST_Start_QYVN[61]; //[FST_Start_QYVM] ULong64_t FST_Start_X_TS; ULong64_t FST_Start_Y_TS; Float_t FST_Start_X; Float_t FST_Start_Y; Float_t FST_Start_Z; Float_t FST_Start_QMaxX; Float_t FST_Start_QMaxY; Float_t FST_Start_QMaxXN; Float_t FST_Start_QMaxYN; Int_t FST_Stop_QXRawM; UShort_t FST_Stop_QXRawNr[80]; //[FST_Stop_QXRawM] UShort_t FST_Stop_QXRaw[80]; //[FST_Stop_QXRawM] UShort_t FST_Stop_QXRawT[80]; //[FST_Stop_QXRawM] Int_t FST_Stop_QXVM; Float_t FST_Stop_QXV[80]; //[FST_Stop_QXVM] UShort_t FST_Stop_QXVN[80]; //[FST_Stop_QXVM] Int_t FST_Stop_QYRawM; UShort_t FST_Stop_QYRawNr[61]; //[FST_Stop_QYRawM] UShort_t FST_Stop_QYRaw[61]; //[FST_Stop_QYRawM] UShort_t FST_Stop_QYRawT[61]; //[FST_Stop_QYRawM] Int_t FST_Stop_QYVM; Float_t FST_Stop_QYV[61]; //[FST_Stop_QYVM] UShort_t FST_Stop_QYVN[61]; //[FST_Stop_QYVM] ULong64_t FST_Stop_X_TS; ULong64_t FST_Stop_Y_TS; Float_t FST_Stop_X; Float_t FST_Stop_Y; Float_t FST_Stop_Z; Float_t FST_Stop_QMaxX; Float_t FST_Stop_QMaxY; Float_t FST_Stop_QMaxXN; Float_t FST_Stop_QMaxYN; UShort_t LaBr3Raw[8]; ULong64_t LaBr3RawTS[8]; Float_t ADC_LABR3_0_C; Float_t ADC_LABR3_1_C; Float_t ADC_LABR3_2_C; Float_t ADC_LABR3_3_C; Float_t ADC_LABR3_4_C; Float_t ADC_LABR3_5_C; Float_t ADC_LABR3_6_C; Float_t ADC_LABR3_7_C; UShort_t QDCLaBr3Raw[4]; ULong64_t QDCLaBr3RawTS[4]; Float_t QDC_LABR3_0_C; Float_t QDC_LABR3_1_C; Float_t QDC_LABR3_2_C; Float_t QDC_LABR3_3_C; UShort_t QDCSeDRaw[8]; ULong64_t QDCSeDRawTS[8]; Float_t QDC_SED_0_C; Float_t QDC_SED_1_C; Float_t QDC_SED_2_C; Float_t QDC_SED_3_C; Float_t QDC_SED_4_C; Float_t QDC_SED_5_C; Float_t QDC_SED_6_C; Float_t QDC_SED_7_C; Int_t RunN; // List of branches TBranch *b_FST_TACSRaw; //! TBranch *b_FST_TACSRawTS; //! TBranch *b_FST_TAC_11_C; //! TBranch *b_FST_TAC_22_C; //! TBranch *b_FST_TAC_12_C; //! TBranch *b_FST_TAC_21_C; //! TBranch *b_FST_EnergyRaw; //! TBranch *b_FST_EnergyRawTS; //! TBranch *b_FST_E_C; //! TBranch *b_FST_GRID_C; //! TBranch *b_FST_CHIO_TraceRawM; //! TBranch *b_FST_CHIO_TraceRawNr; //! TBranch *b_FST_CHIO_TraceRaw; //! TBranch *b_FST_CHIO_Trace_TS; //! TBranch *b_FST_Start_QXRawM; //! TBranch *b_FST_Start_QXRawNr; //! TBranch *b_FST_Start_QXRaw; //! TBranch *b_FST_Start_QXRawT; //! TBranch *b_FST_Start_QXVM; //! TBranch *b_FST_Start_QXV; //! TBranch *b_FST_Start_QXVN; //! TBranch *b_FST_Start_QYRawM; //! TBranch *b_FST_Start_QYRawNr; //! TBranch *b_FST_Start_QYRaw; //! TBranch *b_FST_Start_QYRawT; //! TBranch *b_FST_Start_QYVM; //! TBranch *b_FST_Start_QYV; //! TBranch *b_FST_Start_QYVN; //! TBranch *b_FST_Start_X_TS; //! TBranch *b_FST_Start_Y_TS; //! TBranch *b_FST_Start_X; //! TBranch *b_FST_Start_Y; //! TBranch *b_FST_Start_Z; //! TBranch *b_FST_Start_QMaxX; //! TBranch *b_FST_Start_QMaxY; //! TBranch *b_FST_Start_QMaxXN; //! TBranch *b_FST_Start_QMaxYN; //! TBranch *b_FST_Stop_QXRawM; //! TBranch *b_FST_Stop_QXRawNr; //! TBranch *b_FST_Stop_QXRaw; //! TBranch *b_FST_Stop_QXRawT; //! TBranch *b_FST_Stop_QXVM; //! TBranch *b_FST_Stop_QXV; //! TBranch *b_FST_Stop_QXVN; //! TBranch *b_FST_Stop_QYRawM; //! TBranch *b_FST_Stop_QYRawNr; //! TBranch *b_FST_Stop_QYRaw; //! TBranch *b_FST_Stop_QYRawT; //! TBranch *b_FST_Stop_QYVM; //! TBranch *b_FST_Stop_QYV; //! TBranch *b_FST_Stop_QYVN; //! TBranch *b_FST_Stop_X_TS; //! TBranch *b_FST_Stop_Y_TS; //! TBranch *b_FST_Stop_X; //! TBranch *b_FST_Stop_Y; //! TBranch *b_FST_Stop_Z; //! TBranch *b_FST_Stop_QMaxX; //! TBranch *b_FST_Stop_QMaxY; //! TBranch *b_FST_Stop_QMaxXN; //! TBranch *b_FST_Stop_QMaxYN; //! TBranch *b_LaBr3Raw; //! TBranch *b_LaBr3RawTS; //! TBranch *b_ADC_LABR3_0_C; //! TBranch *b_ADC_LABR3_1_C; //! TBranch *b_ADC_LABR3_2_C; //! TBranch *b_ADC_LABR3_3_C; //! TBranch *b_ADC_LABR3_4_C; //! TBranch *b_ADC_LABR3_5_C; //! TBranch *b_ADC_LABR3_6_C; //! TBranch *b_ADC_LABR3_7_C; //! TBranch *b_QDCLaBr3Raw; //! TBranch *b_QDCLaBr3RawTS; //! TBranch *b_QDC_LABR3_0_C; //! TBranch *b_QDC_LABR3_1_C; //! TBranch *b_QDC_LABR3_2_C; //! TBranch *b_QDC_LABR3_3_C; //! TBranch *b_QDCSeDRaw; //! TBranch *b_QDCSeDRawTS; //! TBranch *b_QDC_SED_0_C; //! TBranch *b_QDC_SED_1_C; //! TBranch *b_QDC_SED_2_C; //! TBranch *b_QDC_SED_3_C; //! TBranch *b_QDC_SED_4_C; //! TBranch *b_QDC_SED_5_C; //! TBranch *b_QDC_SED_6_C; //! TBranch *b_QDC_SED_7_C; //! TBranch *b_RunN; //! HP_Ge(TTree *tree=0); virtual ~HP_Ge(); virtual Int_t Cut(Long64_t entry); virtual Int_t GetEntry(Long64_t entry); virtual Long64_t LoadTree(Long64_t entry); virtual void Init(TTree *tree); virtual void Loop(); virtual Bool_t Notify(); virtual void Show(Long64_t entry = -1); Double_t channel_Energy(Double_t x); }; #endif #ifdef HP_Ge_cxx HP_Ge::HP_Ge(TTree *tree) : fChain(0) { // if parameter tree is not specified (or zero), connect the file // used to generate this class and read the Tree. if (tree == 0) { TFile *f = (TFile*)gROOT->GetListOfFiles()->FindObject("r0207_000a.root"); if (!f || !f->IsOpen()) { f = new TFile("r0207_000a.root"); } f->GetObject("AD",tree); } Init(tree); } HP_Ge::~HP_Ge() { if (!fChain) return; delete fChain->GetCurrentFile(); } Int_t HP_Ge::GetEntry(Long64_t entry) { // Read contents of entry. if (!fChain) return 0; return fChain->GetEntry(entry); } Long64_t HP_Ge::LoadTree(Long64_t entry) { // Set the environment to read one entry if (!fChain) return -5; Long64_t centry = fChain->LoadTree(entry); if (centry < 0) return centry; if (fChain->GetTreeNumber() != fCurrent) { fCurrent = fChain->GetTreeNumber(); Notify(); } return centry; } void HP_Ge::Init(TTree *tree) { // The Init() function is called when the selector needs to initialize // a new tree or chain. Typically here the branch addresses and branch // pointers of the tree will be set. // It is normally not necessary to make changes to the generated // code, but the routine can be extended by the user if needed. // Init() will be called many times when running on PROOF // (once per file to be processed). // Set branch addresses and branch pointers if (!tree) return; fChain = tree; fCurrent = -1; fChain->SetMakeClass(1); fChain->SetBranchAddress("FST_TACSRaw", FST_TACSRaw, &b_FST_TACSRaw); fChain->SetBranchAddress("FST_TACSRawTS", FST_TACSRawTS, &b_FST_TACSRawTS); fChain->SetBranchAddress("FST_TAC_11_C", &FST_TAC_11_C, &b_FST_TAC_11_C); fChain->SetBranchAddress("FST_TAC_22_C", &FST_TAC_22_C, &b_FST_TAC_22_C); fChain->SetBranchAddress("FST_TAC_12_C", &FST_TAC_12_C, &b_FST_TAC_12_C); fChain->SetBranchAddress("FST_TAC_21_C", &FST_TAC_21_C, &b_FST_TAC_21_C); fChain->SetBranchAddress("FST_EnergyRaw", FST_EnergyRaw, &b_FST_EnergyRaw); fChain->SetBranchAddress("FST_EnergyRawTS", FST_EnergyRawTS, &b_FST_EnergyRawTS); fChain->SetBranchAddress("FST_E_C", &FST_E_C, &b_FST_E_C); fChain->SetBranchAddress("FST_GRID_C", &FST_GRID_C, &b_FST_GRID_C); fChain->SetBranchAddress("FST_CHIO_TraceRawM", &FST_CHIO_TraceRawM, &b_FST_CHIO_TraceRawM); fChain->SetBranchAddress("FST_CHIO_TraceRawNr", FST_CHIO_TraceRawNr, &b_FST_CHIO_TraceRawNr); fChain->SetBranchAddress("FST_CHIO_TraceRaw", FST_CHIO_TraceRaw, &b_FST_CHIO_TraceRaw); fChain->SetBranchAddress("FST_CHIO_Trace_TS", &FST_CHIO_Trace_TS, &b_FST_CHIO_Trace_TS); fChain->SetBranchAddress("FST_Start_QXRawM", &FST_Start_QXRawM, &b_FST_Start_QXRawM); fChain->SetBranchAddress("FST_Start_QXRawNr", FST_Start_QXRawNr, &b_FST_Start_QXRawNr); fChain->SetBranchAddress("FST_Start_QXRaw", FST_Start_QXRaw, &b_FST_Start_QXRaw); fChain->SetBranchAddress("FST_Start_QXRawT", FST_Start_QXRawT, &b_FST_Start_QXRawT); fChain->SetBranchAddress("FST_Start_QXVM", &FST_Start_QXVM, &b_FST_Start_QXVM); fChain->SetBranchAddress("FST_Start_QXV", FST_Start_QXV, &b_FST_Start_QXV); fChain->SetBranchAddress("FST_Start_QXVN", FST_Start_QXVN, &b_FST_Start_QXVN); fChain->SetBranchAddress("FST_Start_QYRawM", &FST_Start_QYRawM, &b_FST_Start_QYRawM); fChain->SetBranchAddress("FST_Start_QYRawNr", FST_Start_QYRawNr, &b_FST_Start_QYRawNr); fChain->SetBranchAddress("FST_Start_QYRaw", FST_Start_QYRaw, &b_FST_Start_QYRaw); fChain->SetBranchAddress("FST_Start_QYRawT", FST_Start_QYRawT, &b_FST_Start_QYRawT); fChain->SetBranchAddress("FST_Start_QYVM", &FST_Start_QYVM, &b_FST_Start_QYVM); fChain->SetBranchAddress("FST_Start_QYV", FST_Start_QYV, &b_FST_Start_QYV); fChain->SetBranchAddress("FST_Start_QYVN", FST_Start_QYVN, &b_FST_Start_QYVN); fChain->SetBranchAddress("FST_Start_X_TS", &FST_Start_X_TS, &b_FST_Start_X_TS); fChain->SetBranchAddress("FST_Start_Y_TS", &FST_Start_Y_TS, &b_FST_Start_Y_TS); fChain->SetBranchAddress("FST_Start_X", &FST_Start_X, &b_FST_Start_X); fChain->SetBranchAddress("FST_Start_Y", &FST_Start_Y, &b_FST_Start_Y); fChain->SetBranchAddress("FST_Start_Z", &FST_Start_Z, &b_FST_Start_Z); fChain->SetBranchAddress("FST_Start_QMaxX", &FST_Start_QMaxX, &b_FST_Start_QMaxX); fChain->SetBranchAddress("FST_Start_QMaxY", &FST_Start_QMaxY, &b_FST_Start_QMaxY); fChain->SetBranchAddress("FST_Start_QMaxXN", &FST_Start_QMaxXN, &b_FST_Start_QMaxXN); fChain->SetBranchAddress("FST_Start_QMaxYN", &FST_Start_QMaxYN, &b_FST_Start_QMaxYN); fChain->SetBranchAddress("FST_Stop_QXRawM", &FST_Stop_QXRawM, &b_FST_Stop_QXRawM); fChain->SetBranchAddress("FST_Stop_QXRawNr", FST_Stop_QXRawNr, &b_FST_Stop_QXRawNr); fChain->SetBranchAddress("FST_Stop_QXRaw", FST_Stop_QXRaw, &b_FST_Stop_QXRaw); fChain->SetBranchAddress("FST_Stop_QXRawT", FST_Stop_QXRawT, &b_FST_Stop_QXRawT); fChain->SetBranchAddress("FST_Stop_QXVM", &FST_Stop_QXVM, &b_FST_Stop_QXVM); fChain->SetBranchAddress("FST_Stop_QXV", FST_Stop_QXV, &b_FST_Stop_QXV); fChain->SetBranchAddress("FST_Stop_QXVN", FST_Stop_QXVN, &b_FST_Stop_QXVN); fChain->SetBranchAddress("FST_Stop_QYRawM", &FST_Stop_QYRawM, &b_FST_Stop_QYRawM); fChain->SetBranchAddress("FST_Stop_QYRawNr", FST_Stop_QYRawNr, &b_FST_Stop_QYRawNr); fChain->SetBranchAddress("FST_Stop_QYRaw", FST_Stop_QYRaw, &b_FST_Stop_QYRaw); fChain->SetBranchAddress("FST_Stop_QYRawT", FST_Stop_QYRawT, &b_FST_Stop_QYRawT); fChain->SetBranchAddress("FST_Stop_QYVM", &FST_Stop_QYVM, &b_FST_Stop_QYVM); fChain->SetBranchAddress("FST_Stop_QYV", FST_Stop_QYV, &b_FST_Stop_QYV); fChain->SetBranchAddress("FST_Stop_QYVN", FST_Stop_QYVN, &b_FST_Stop_QYVN); fChain->SetBranchAddress("FST_Stop_X_TS", &FST_Stop_X_TS, &b_FST_Stop_X_TS); fChain->SetBranchAddress("FST_Stop_Y_TS", &FST_Stop_Y_TS, &b_FST_Stop_Y_TS); fChain->SetBranchAddress("FST_Stop_X", &FST_Stop_X, &b_FST_Stop_X); fChain->SetBranchAddress("FST_Stop_Y", &FST_Stop_Y, &b_FST_Stop_Y); fChain->SetBranchAddress("FST_Stop_Z", &FST_Stop_Z, &b_FST_Stop_Z); fChain->SetBranchAddress("FST_Stop_QMaxX", &FST_Stop_QMaxX, &b_FST_Stop_QMaxX); fChain->SetBranchAddress("FST_Stop_QMaxY", &FST_Stop_QMaxY, &b_FST_Stop_QMaxY); fChain->SetBranchAddress("FST_Stop_QMaxXN", &FST_Stop_QMaxXN, &b_FST_Stop_QMaxXN); fChain->SetBranchAddress("FST_Stop_QMaxYN", &FST_Stop_QMaxYN, &b_FST_Stop_QMaxYN); fChain->SetBranchAddress("LaBr3Raw", LaBr3Raw, &b_LaBr3Raw); fChain->SetBranchAddress("LaBr3RawTS", LaBr3RawTS, &b_LaBr3RawTS); fChain->SetBranchAddress("ADC_LABR3_0_C", &ADC_LABR3_0_C, &b_ADC_LABR3_0_C); fChain->SetBranchAddress("ADC_LABR3_1_C", &ADC_LABR3_1_C, &b_ADC_LABR3_1_C); fChain->SetBranchAddress("ADC_LABR3_2_C", &ADC_LABR3_2_C, &b_ADC_LABR3_2_C); fChain->SetBranchAddress("ADC_LABR3_3_C", &ADC_LABR3_3_C, &b_ADC_LABR3_3_C); fChain->SetBranchAddress("ADC_LABR3_4_C", &ADC_LABR3_4_C, &b_ADC_LABR3_4_C); fChain->SetBranchAddress("ADC_LABR3_5_C", &ADC_LABR3_5_C, &b_ADC_LABR3_5_C); fChain->SetBranchAddress("ADC_LABR3_6_C", &ADC_LABR3_6_C, &b_ADC_LABR3_6_C); fChain->SetBranchAddress("ADC_LABR3_7_C", &ADC_LABR3_7_C, &b_ADC_LABR3_7_C); fChain->SetBranchAddress("QDCLaBr3Raw", QDCLaBr3Raw, &b_QDCLaBr3Raw); fChain->SetBranchAddress("QDCLaBr3RawTS", QDCLaBr3RawTS, &b_QDCLaBr3RawTS); fChain->SetBranchAddress("QDC_LABR3_0_C", &QDC_LABR3_0_C, &b_QDC_LABR3_0_C); fChain->SetBranchAddress("QDC_LABR3_1_C", &QDC_LABR3_1_C, &b_QDC_LABR3_1_C); fChain->SetBranchAddress("QDC_LABR3_2_C", &QDC_LABR3_2_C, &b_QDC_LABR3_2_C); fChain->SetBranchAddress("QDC_LABR3_3_C", &QDC_LABR3_3_C, &b_QDC_LABR3_3_C); fChain->SetBranchAddress("QDCSeDRaw", QDCSeDRaw, &b_QDCSeDRaw); fChain->SetBranchAddress("QDCSeDRawTS", QDCSeDRawTS, &b_QDCSeDRawTS); fChain->SetBranchAddress("QDC_SED_0_C", &QDC_SED_0_C, &b_QDC_SED_0_C); fChain->SetBranchAddress("QDC_SED_1_C", &QDC_SED_1_C, &b_QDC_SED_1_C); fChain->SetBranchAddress("QDC_SED_2_C", &QDC_SED_2_C, &b_QDC_SED_2_C); fChain->SetBranchAddress("QDC_SED_3_C", &QDC_SED_3_C, &b_QDC_SED_3_C); fChain->SetBranchAddress("QDC_SED_4_C", &QDC_SED_4_C, &b_QDC_SED_4_C); fChain->SetBranchAddress("QDC_SED_5_C", &QDC_SED_5_C, &b_QDC_SED_5_C); fChain->SetBranchAddress("QDC_SED_6_C", &QDC_SED_6_C, &b_QDC_SED_6_C); fChain->SetBranchAddress("QDC_SED_7_C", &QDC_SED_7_C, &b_QDC_SED_7_C); fChain->SetBranchAddress("RunN", &RunN, &b_RunN); Notify(); } Bool_t HP_Ge::Notify() { // The Notify() function is called when a new file is opened. This // can be either for a new TTree in a TChain or when when a new TTree // is started when using PROOF. It is normally not necessary to make changes // to the generated code, but the routine can be extended by the // user if needed. The return value is currently not used. return kTRUE; } void HP_Ge::Show(Long64_t entry) { // Print contents of entry. // If entry is not specified, print current entry if (!fChain) return; fChain->Show(entry); } Int_t HP_Ge::Cut(Long64_t entry) { // This function may be called from Loop. // returns 1 if entry is accepted. // returns -1 otherwise. return 1; } #endif // #ifdef HP_Ge_cxx