////////////////////////////////////////////////////////// // This class has been automatically generated on // Mon Feb 27 16:03:51 2023 by ROOT version 6.26/06 // from TTree Data/Data // found on file: DTag_4180.root ////////////////////////////////////////////////////////// #ifndef Data_Dp_h #define Data_Dp_h #include #include #include // Header file for the classes stored in the TTree if any. class Data_Dp { 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 Int_t type_D; Double_t mass_true; Double_t mass_false; Double_t massBC_true; Double_t massBC_false; Double_t deltaE_true; Double_t deltaE_false; Int_t charge_D; Double_t p_D; Double_t cosTheta_D; Double_t phi_D; Double_t p_K; Double_t cosTheta_K; Double_t phi_K; Double_t p_Pi1; Double_t cosTheta_Pi1; Double_t phi_Pi1; Double_t p_Pi2; Double_t cosTheta_Pi2; Double_t phi_Pi2; Int_t ntrk; Int_t charge_other[5000]; //[ntrk] Double_t p_other[5000]; //[ntrk] Double_t cosTheta_other[5000]; //[ntrk] Double_t phi_other[5000]; //[ntrk] Int_t run_no; // List of branches TBranch *b_type_D; //! TBranch *b_mass_true; //! TBranch *b_mass_false; //! TBranch *b_massBC_true; //! TBranch *b_massBC_false; //! TBranch *b_deltaE_true; //! TBranch *b_deltaE_false; //! TBranch *b_charge_D; //! TBranch *b_p_D; //! TBranch *b_cosTheta_D; //! TBranch *b_phi_D; //! TBranch *b_p_K; //! TBranch *b_cosTheta_K; //! TBranch *b_phi_K; //! TBranch *b_p_Pi1; //! TBranch *b_cosTheta_Pi1; //! TBranch *b_phi_Pi1; //! TBranch *b_p_Pi2; //! TBranch *b_cosTheta_Pi2; //! TBranch *b_phi_Pi2; //! TBranch *b_ntrk; //! TBranch *b_charge_other; //! TBranch *b_p_other; //! TBranch *b_cosTheta_other; //! TBranch *b_phi_other; //! TBranch *b_run_no; //! Data_Dp(TTree *tree=0); virtual ~Data_Dp(); 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_Dp_cxx Data_Dp::Data_Dp(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",tree); } Init(tree); } Data_Dp::~Data_Dp() { if (!fChain) return; delete fChain->GetCurrentFile(); } Int_t Data_Dp::GetEntry(Long64_t entry) { // Read contents of entry. if (!fChain) return 0; return fChain->GetEntry(entry); } Long64_t Data_Dp::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_Dp::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("type_D", &type_D, &b_type_D); fChain->SetBranchAddress("mass_true", &mass_true, &b_mass_true); fChain->SetBranchAddress("mass_false", &mass_false, &b_mass_false); fChain->SetBranchAddress("massBC_true", &massBC_true, &b_massBC_true); fChain->SetBranchAddress("massBC_false", &massBC_false, &b_massBC_false); fChain->SetBranchAddress("deltaE_true", &deltaE_true, &b_deltaE_true); fChain->SetBranchAddress("deltaE_false", &deltaE_false, &b_deltaE_false); fChain->SetBranchAddress("charge_D", &charge_D, &b_charge_D); fChain->SetBranchAddress("p_D", &p_D, &b_p_D); fChain->SetBranchAddress("cosTheta_D", &cosTheta_D, &b_cosTheta_D); fChain->SetBranchAddress("phi_D", &phi_D, &b_phi_D); fChain->SetBranchAddress("p_K", &p_K, &b_p_K); fChain->SetBranchAddress("cosTheta_K", &cosTheta_K, &b_cosTheta_K); fChain->SetBranchAddress("phi_K", &phi_K, &b_phi_K); fChain->SetBranchAddress("p_Pi1", &p_Pi1, &b_p_Pi1); fChain->SetBranchAddress("cosTheta_Pi1", &cosTheta_Pi1, &b_cosTheta_Pi1); fChain->SetBranchAddress("phi_Pi1", &phi_Pi1, &b_phi_Pi1); fChain->SetBranchAddress("p_Pi2", &p_Pi2, &b_p_Pi2); fChain->SetBranchAddress("cosTheta_Pi2", &cosTheta_Pi2, &b_cosTheta_Pi2); fChain->SetBranchAddress("phi_Pi2", &phi_Pi2, &b_phi_Pi2); fChain->SetBranchAddress("ntrk", &ntrk, &b_ntrk); fChain->SetBranchAddress("charge_other", charge_other, &b_charge_other); fChain->SetBranchAddress("p_other", p_other, &b_p_other); fChain->SetBranchAddress("cosTheta_other", cosTheta_other, &b_cosTheta_other); fChain->SetBranchAddress("phi_other", phi_other, &b_phi_other); fChain->SetBranchAddress("run_no", &run_no, &b_run_no); Notify(); } Bool_t Data_Dp::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_Dp::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_Dp::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_Dp_cxx