#ifndef __TMCP_H
#define __TMCP_H
#include <iostream>
#ifndef __ROOTDEFINE_H
#define __ROOTDEFINE_H
#include "rootDefine.h"
#endif
#ifndef __PACKETID_H
#define __PACKETID_H
#include "packetID.h"
#endif
#include <TRandom3.h>
#include <TROOT.h>
#include <TBranch.h>
#include <TTree.h>
#include <TObject.h>
#include <TFolder.h>
#include "TMcpDet.h"
using namespace std;
class TMcp : public TObject {
private:
TRandom3 fRandom;
Int_t fQdcSlot[TMCP_NQDCS];
protected:
TString fName;
TString fTitle;
Char_t *mcpMapFile;
public:
TMcp *fCon;
Bool_t fAddRndm;
UShort_t fNwords;
UShort_t time[32];
UShort_t charge[TMCP_NQDCS][32];
UShort_t ene[32];
Double_t rTime[32];
Double_t timeCorr[32];
Double_t maskX;
Double_t maskY;
Double_t xAngle;
Double_t yAngle;
Double_t iAngle;
Double_t tShift[4];
Double_t thetaMCP[2];
Double_t tarMcpPlasticGap;
Double_t mcpMcpGap;
Double_t upMcpPlasticGap;
Double_t maskTarGap;
TMcpDet mcp0;
TMcpDet mcp1;
TBranch *b_time;
TBranch *b_charge;
TBranch *b_ene;
TBranch *b_rTime;
TBranch *b_timeCorr;
TBranch *b_maskX;
TBranch *b_maskY;
TBranch *b_xAngle;
TBranch *b_yAngle;
TBranch *b_iAngle;
TBranch *b_mcp0;
TBranch *b_mcp1;
TFolder *f_mcp0;
TFolder *f_mcp1;
TTree *fChain;
Int_t fCurrent;
public:
TMcp(): fName(), fTitle() {fRandom.SetSeed(0);}
~TMcp() {}
TMcp(const TMcp &);
const Char_t *GetName() const {return fName;}
const Char_t *GetTitle() const {return fTitle;}
void SetName(const Char_t *name);
void SetNameTitle(const Char_t *name, const Char_t *title);
void SetTitle(const Char_t *title="");
Int_t Calibrate(Option_t *prefix="",Option_t *path="",
Option_t *treeName="",
Option_t *option="RECREATE");
Int_t Calculate(Long64_t);
void Clear(Option_t *option="");
void Copy(TObject &mcp) const;
void CreateFolders();
Int_t GenPrime(Option_t *prefix="",Option_t *path="",
Option_t *treeName="",
Option_t *option="RECREATE");
Int_t GenPrime(Long64_t entry);
void InitBranch(TTree *tree,Option_t *stage);
void InitClass();
void InitTree(TTree *tree);
Bool_t LoadQdcTdcMap();
Bool_t SetMcpMapFile(Char_t *filePath);
Bool_t Unpack(UShort_t *pEvent);
UShort_t* UnpackEnergy(UShort_t *p);
UShort_t* UnpackTime(UShort_t *p);
UShort_t* UnpackCharge(UShort_t *p);
ClassDef(TMcp,4)
};
#endif
Last change: Sun Dec 21 12:38:49 2008
Last generated: 2008-12-21 12:38
This page has been automatically generated. If you have any comments or suggestions about the page layout send a mail to ROOT support, or contact the developers with any questions or problems regarding ROOT.