////////////////////////////////////////////////////////// // This class has been automatically generated on // Thu Feb 16 15:40:46 2023 by ROOT version 6.26/06 // from TTree Data_D0/Data_D0 // found on file: DTag_4180.root ////////////////////////////////////////////////////////// #ifndef Data_D0_h #define Data_D0_h #include #include #include // Header file for the classes stored in the TTree if any. class Data_D0 { 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 Double_t mass_D0; Double_t massBC_D0; Double_t deltaE_D0; Int_t charge_D0; Double_t p_D0; Double_t cosTheta_D0; Double_t phi_D0; Double_t p_K0; Double_t cosTheta_K0; Double_t phi_K0; Double_t p_Pi10; Double_t cosTheta_Pi10; Double_t phi_Pi10; Int_t ntrk0; Int_t charge_other0[5000]; //[ntrk0] Double_t p_other0[5000]; //[ntrk0] Double_t cosTheta_other0[5000]; //[ntrk0] Int_t run_no0; // List of branches TBranch *b_mass_D0; //! TBranch *b_massBC_D0; //! TBranch *b_deltaE_D0; //! TBranch *b_charge_D0; //! TBranch *b_p_D0; //! TBranch *b_cosTheta_D0; //! TBranch *b_phi_D0; //! TBranch *b_p_K0; //! TBranch *b_cosTheta_K0; //! TBranch *b_phi_K0; //! TBranch *b_p_Pi10; //! TBranch *b_cosTheta_Pi10; //! TBranch *b_phi_Pi10; //! TBranch *b_ntrk0; //! TBranch *b_charge_other0; //! TBranch *b_p_other0; //! TBranch *b_cosTheta_other0; //! TBranch *b_run_no0; //! Data_D0(TTree *tree=0); virtual ~Data_D0(); 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); }; #endif #ifdef Data_D0_cxx Data_D0::Data_D0(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("DTag_4180.root"); if (!f || !f->IsOpen()) { f = new TFile("DTag_4180.root"); } f->GetObject("Data_D0",tree); } Init(tree); } Data_D0::~Data_D0() { if (!fChain) return; delete fChain->GetCurrentFile(); } Int_t Data_D0::GetEntry(Long64_t entry) { // Read contents of entry. if (!fChain) return 0; return fChain->GetEntry(entry); } Long64_t Data_D0::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 Data_D0::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("mass_D0", &mass_D0, &b_mass_D0); fChain->SetBranchAddress("massBC_D0", &massBC_D0, &b_massBC_D0); fChain->SetBranchAddress("deltaE_D0", &deltaE_D0, &b_deltaE_D0); fChain->SetBranchAddress("charge_D0", &charge_D0, &b_charge_D0); fChain->SetBranchAddress("p_D0", &p_D0, &b_p_D0); fChain->SetBranchAddress("cosTheta_D0", &cosTheta_D0, &b_cosTheta_D0); fChain->SetBranchAddress("phi_D0", &phi_D0, &b_phi_D0); fChain->SetBranchAddress("p_K0", &p_K0, &b_p_K0); fChain->SetBranchAddress("cosTheta_K0", &cosTheta_K0, &b_cosTheta_K0); fChain->SetBranchAddress("phi_K0", &phi_K0, &b_phi_K0); fChain->SetBranchAddress("p_Pi10", &p_Pi10, &b_p_Pi10); fChain->SetBranchAddress("cosTheta_Pi10", &cosTheta_Pi10, &b_cosTheta_Pi10); fChain->SetBranchAddress("phi_Pi10", &phi_Pi10, &b_phi_Pi10); fChain->SetBranchAddress("ntrk0", &ntrk0, &b_ntrk0); fChain->SetBranchAddress("charge_other0", charge_other0, &b_charge_other0); fChain->SetBranchAddress("p_other0", p_other0, &b_p_other0); fChain->SetBranchAddress("cosTheta_other0", cosTheta_other0, &b_cosTheta_other0); fChain->SetBranchAddress("run_no0", &run_no0, &b_run_no0); Notify(); } Bool_t Data_D0::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 Data_D0::Show(Long64_t entry) { // Print contents of entry. // If entry is not specified, print current entry if (!fChain) return; fChain->Show(entry); } Int_t Data_D0::Cut(Long64_t entry) { // This function may be called from Loop. // returns 1 if entry is accepted. // returns -1 otherwise. return 1; } #endif // #ifdef Data_D0_cxx