////////////////////////////////////////////////////////// // This class has been automatically generated on // Tue Dec 7 18:35:39 2021 by ROOT version 6.18/00 // from TChain seedTDNAElec2A/ ////////////////////////////////////////////////////////// #ifndef TotIon_h #define TotIon_h #include #include #include // Header file for the classes stored in the TTree if any. #include "vector" #include "vector" #include "vector" class TotIon { 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. Long64_t nbytes = 0, nb = 0; //Other declarations variables //Int_t mm=0; //Int_t mm6=0; //Int_t mm7=0; Double_t CountIon=0; Double_t CountExc=0; Double_t ekin=0; //string process=0; Int_t c=0; Int_t ee=0; Int_t gg=0; Int_t eeC=0; Int_t ggC=0; Int_t eeSEC=0; Int_t ggSEC=0; Int_t ee1=0; Int_t gg1=0; Int_t ee2=0; Int_t gg2=0; Int_t ee3=0; Int_t gg3=0; Int_t ee4=0; Int_t gg4=0; Int_t mm=0; Int_t mm1=0; Int_t mm2=0; Int_t mm3=0; Int_t mm4=0; Int_t mm5=0; Int_t mm6=0; Double_t mm7=0; Int_t mm8=0; Int_t mm9=0; Int_t mm10=0; Int_t mm11=0; Int_t mm12=0; Int_t mm13=0; Int_t mm14=0; Int_t mm15=0; Int_t mm16=0; Int_t mm17=0; Int_t mm18=0; // Declaration of leaf types Double_t Event_AccumulatedEnergyDeposited; Double_t Event_AccumulatedEnergyLost; vector *Step_ParentTrackID; vector *Step_TrackID; vector *Step_AccumulatedDose; vector *Step_AccumulatedEnergyDeposited; vector *Step_AccumulatedEnergyLost; vector *Step_AccumulatedKerma; vector *Step_FinalKineticEnergy; vector *Step_FinalMomX; vector *Step_FinalMomY; vector *Step_FinalMomZ; vector *Step_FinalPosX; vector *Step_FinalPosY; vector *Step_FinalPosZ; vector *Step_InitialKineticEnergy; vector *Step_TrackLength; vector *Step_CreatorProcess; vector *Step_FinalLogicalVolume; vector *Step_FinalMaterial; vector *Step_FinalProcess; vector *Step_Particle; // List of branches TBranch *b_Event_AccumulatedEnergyDeposited; //! TBranch *b_Event_AccumulatedEnergyLost; //! TBranch *b_Step_ParentTrackID; //! TBranch *b_Step_TrackID; //! TBranch *b_Step_AccumulatedDose; //! TBranch *b_Step_AccumulatedEnergyDeposited; //! TBranch *b_Step_AccumulatedEnergyLost; //! TBranch *b_Step_AccumulatedKerma; //! TBranch *b_Step_FinalKineticEnergy; //! TBranch *b_Step_FinalMomX; //! TBranch *b_Step_FinalMomY; //! TBranch *b_Step_FinalMomZ; //! TBranch *b_Step_FinalPosX; //! TBranch *b_Step_FinalPosY; //! TBranch *b_Step_FinalPosZ; //! TBranch *b_Step_InitialKineticEnergy; //! TBranch *b_Step_TrackLength; //! TBranch *b_Step_CreatorProcess; //! TBranch *b_Step_FinalLogicalVolume; //! TBranch *b_Step_FinalMaterial; //! TBranch *b_Step_FinalProcess; //! TBranch *b_Step_Particle; //! TotIon(TTree *tree=0); virtual ~TotIon(); 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 TotIon_cxx TotIon::TotIon(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) { #ifdef SINGLE_TREE // The following code should be used if you want this class to access // a single tree instead of a chain TFile *f = (TFile*)gROOT->GetListOfFiles()->FindObject("Memory Directory"); if (!f || !f->IsOpen()) { f = new TFile("Memory Directory"); } f->GetObject("seedTDNAElec2A",tree); #else // SINGLE_TREE // The following code should be used if you want this class to access a chain // of trees. TChain * chain = new TChain("seedTDNAElec2A",""); chain->Add("/media/gamos/One Touch/gamos6/DNA/seedTDNAElec2A_tree_1000.root/seedTDNAElec2A"); chain->Add("/media/gamos/One Touch/gamos6/DNA/seedTDNAElec2A_tree_1001.root/seedTDNAElec2A"); chain->Add("/media/gamos/One Touch/gamos6/DNA/seedTDNAElec2A_tree_1002.root/seedTDNAElec2A"); chain->Add("/media/gamos/One Touch/gamos6/DNA/seedTDNAElec2A_tree_1003.root/seedTDNAElec2A"); chain->Add("/media/gamos/One Touch/gamos6/DNA/seedTDNAElec2A_tree_1004.root/seedTDNAElec2A"); chain->Add("/media/gamos/One Touch/gamos6/DNA/seedTDNAElec2A_tree_1005.root/seedTDNAElec2A"); chain->Add("/media/gamos/One Touch/gamos6/DNA/seedTDNAElec2A_tree_1006.root/seedTDNAElec2A"); chain->Add("/media/gamos/One Touch/gamos6/DNA/seedTDNAElec2A_tree_1007.root/seedTDNAElec2A"); chain->Add("/media/gamos/One Touch/gamos6/DNA/seedTDNAElec2A_tree_1008.root/seedTDNAElec2A"); chain->Add("/media/gamos/One Touch/gamos6/DNA/seedTDNAElec2A_tree_1009.root/seedTDNAElec2A"); chain->Add("/media/gamos/One Touch/gamos6/DNA/seedTDNAElec2A_tree_1010.root/seedTDNAElec2A"); chain->Add("/media/gamos/One Touch/gamos6/DNA/seedTDNAElec2A_tree_1011.root/seedTDNAElec2A"); chain->Add("/media/gamos/One Touch/gamos6/DNA/seedTDNAElec2A_tree_1012.root/seedTDNAElec2A"); chain->Add("/media/gamos/One Touch/gamos6/DNA/seedTDNAElec2A_tree_1013.root/seedTDNAElec2A"); chain->Add("/media/gamos/One Touch/gamos6/DNA/seedTDNAElec2A_tree_1014.root/seedTDNAElec2A"); tree = chain; #endif // SINGLE_TREE } Init(tree); } TotIon::~TotIon() { if (!fChain) return; delete fChain->GetCurrentFile(); } Int_t TotIon::GetEntry(Long64_t entry) { // Read contents of entry. if (!fChain) return 0; return fChain->GetEntry(entry); } Long64_t TotIon::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 TotIon::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 object pointer Step_ParentTrackID = 0; Step_TrackID = 0; Step_AccumulatedDose = 0; Step_AccumulatedEnergyDeposited = 0; Step_AccumulatedEnergyLost = 0; Step_AccumulatedKerma = 0; Step_FinalKineticEnergy = 0; Step_FinalMomX = 0; Step_FinalMomY = 0; Step_FinalMomZ = 0; Step_FinalPosX = 0; Step_FinalPosY = 0; Step_FinalPosZ = 0; Step_InitialKineticEnergy = 0; Step_TrackLength = 0; Step_CreatorProcess = 0; Step_FinalLogicalVolume = 0; Step_FinalMaterial = 0; Step_FinalProcess = 0; Step_Particle = 0; // Set branch addresses and branch pointers if (!tree) return; fChain = tree; fCurrent = -1; fChain->SetMakeClass(1); fChain->SetBranchAddress("Event_AccumulatedEnergyDeposited", &Event_AccumulatedEnergyDeposited, &b_Event_AccumulatedEnergyDeposited); fChain->SetBranchAddress("Event_AccumulatedEnergyLost", &Event_AccumulatedEnergyLost, &b_Event_AccumulatedEnergyLost); fChain->SetBranchAddress("Step_ParentTrackID", &Step_ParentTrackID, &b_Step_ParentTrackID); fChain->SetBranchAddress("Step_TrackID", &Step_TrackID, &b_Step_TrackID); fChain->SetBranchAddress("Step_AccumulatedDose", &Step_AccumulatedDose, &b_Step_AccumulatedDose); fChain->SetBranchAddress("Step_AccumulatedEnergyDeposited", &Step_AccumulatedEnergyDeposited, &b_Step_AccumulatedEnergyDeposited); fChain->SetBranchAddress("Step_AccumulatedEnergyLost", &Step_AccumulatedEnergyLost, &b_Step_AccumulatedEnergyLost); fChain->SetBranchAddress("Step_AccumulatedKerma", &Step_AccumulatedKerma, &b_Step_AccumulatedKerma); fChain->SetBranchAddress("Step_FinalKineticEnergy", &Step_FinalKineticEnergy, &b_Step_FinalKineticEnergy); fChain->SetBranchAddress("Step_FinalMomX", &Step_FinalMomX, &b_Step_FinalMomX); fChain->SetBranchAddress("Step_FinalMomY", &Step_FinalMomY, &b_Step_FinalMomY); fChain->SetBranchAddress("Step_FinalMomZ", &Step_FinalMomZ, &b_Step_FinalMomZ); fChain->SetBranchAddress("Step_FinalPosX", &Step_FinalPosX, &b_Step_FinalPosX); fChain->SetBranchAddress("Step_FinalPosY", &Step_FinalPosY, &b_Step_FinalPosY); fChain->SetBranchAddress("Step_FinalPosZ", &Step_FinalPosZ, &b_Step_FinalPosZ); fChain->SetBranchAddress("Step_InitialKineticEnergy", &Step_InitialKineticEnergy, &b_Step_InitialKineticEnergy); fChain->SetBranchAddress("Step_TrackLength", &Step_TrackLength, &b_Step_TrackLength); fChain->SetBranchAddress("Step_CreatorProcess", &Step_CreatorProcess, &b_Step_CreatorProcess); fChain->SetBranchAddress("Step_FinalLogicalVolume", &Step_FinalLogicalVolume, &b_Step_FinalLogicalVolume); fChain->SetBranchAddress("Step_FinalMaterial", &Step_FinalMaterial, &b_Step_FinalMaterial); fChain->SetBranchAddress("Step_FinalProcess", &Step_FinalProcess, &b_Step_FinalProcess); fChain->SetBranchAddress("Step_Particle", &Step_Particle, &b_Step_Particle); Notify(); } Bool_t TotIon::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 TotIon::Show(Long64_t entry) { // Print contents of entry. // If entry is not specified, print current entry if (!fChain) return; fChain->Show(entry); } Int_t TotIon::Cut(Long64_t entry) { // This function may be called from Loop. // returns 1 if entry is accepted. // returns -1 otherwise. return 1; } #endif // #ifdef TotIon_cxx