////////////////////////////////////////////////////////// // This class has been automatically generated on // Mon Aug 3 12:14:30 2020 by ROOT version 6.18/00 // from TChain testeSB/ ////////////////////////////////////////////////////////// #ifndef dose3_h #define dose3_h #include #include #include // Header file for the classes stored in the TTree if any. #include "vector" #include "vector" #include "vector" class dose3 { 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; //declaration of some counters 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; Int_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; Int_t mm19=0; Int_t mm20=0; Int_t mm21=0; Int_t mm22=0; Int_t mm23=0; Int_t gg=0; Int_t ee=0; Int_t gg1=0; Int_t ee1=0; Double_t vol=0; Double_t volE=0; Double_t volG=0; const Int_t dens = 1000; //997.07; // kg/m³ Int_t count=0; Int_t n = 3424387; Double_t dist[3424386]={}; Double_t distE=0; Double_t distG=0; Int_t cont=0; Double_t mass = 0; Double_t massE = 0; Double_t massG = 0; Double_t max = 0; Double_t maxE = 0; Double_t maxG = 0; Double_t ed=0; Double_t edE=0; Double_t edG=0; Double_t ekin=0; Double_t ener=0; Double_t edep=0; Double_t edepWor=0; Double_t edepE=0; Double_t edepG=0; Double_t ker=0; Double_t r=0; // mm Double_t rE=0; // mm Double_t rG=0; // mm Double_t dose = 0; Double_t doseE = 0; Double_t doseG = 0; Double_t doseG1 = 0; Double_t doseTi = 0; Double_t doseDep = 0; Double_t doseElost = 0; Double_t doseEdepG = 0; Double_t doseEdepE = 0; Double_t sumDose = 0; Double_t sumDoseElost = 0; Double_t sumDoseDep = 0; Double_t sumDoseEdepE = 0; Double_t sumDoseEdepG = 0; Double_t sumDoseE = 0; Double_t sumDoseG = 0; Double_t sumDoseG1 = 0; Double_t sumDep = 0; Double_t sumDepWor = 0; Double_t somaTotal = 0; Double_t somaTotal1 = 0; Double_t somaTotalWor = 0; Double_t somaTotalWor1 = 0; // Declaration of leaf types Int_t Event_EventID; Double_t Event_AccumulatedEnergyDeposited; Double_t Event_AccumulatedEnergyLost; Double_t Event_InitialKineticEnergy; vector *Step_EventID; vector *Step_ParentTrackID; vector *Step_StepNumber; vector *Step_TrackID; vector *Step_AccumulatedDose; vector *Step_AccumulatedEnergyDeposited; vector *Step_AccumulatedEnergyLost; vector *Step_AccumulatedKerma; vector *Step_FinalGammaEquivalentDose; vector *Step_FinalKineticEnergy; vector *Step_FinalPosX; vector *Step_FinalPosY; vector *Step_FinalPosZ; vector *Step_InitialKineticEnergy; vector *Step_InitialPosX; vector *Step_InitialPosY; vector *Step_InitialPosZ; vector *Step_CreatorProcess; vector *Step_FinalLogicalVolume; vector *Step_FinalMaterial; vector *Step_FinalProcess; vector *Step_InitialLogicalVolume; vector *Step_InitialMaterial; vector *Step_InitialProcess; vector *Step_Particle; vector *Track_EventID; vector *Track_TrackID; vector *Track_AccumulatedDose; vector *Track_AccumulatedEnergyDeposited; vector *Track_AccumulatedEnergyLost; vector *Track_FinalKineticEnergy; vector *Track_FinalPosX; vector *Track_FinalPosY; vector *Track_FinalPosZ; vector *Track_FinalLogicalVolume; vector *Track_FinalMaterial; vector *Track_InitialMaterial; vector *Track_Particle; // List of branches TBranch *b_Event_EventID; //! TBranch *b_Event_AccumulatedEnergyDeposited; //! TBranch *b_Event_AccumulatedEnergyLost; //! TBranch *b_Event_InitialKineticEnergy; //! TBranch *b_Step_EventID; //! TBranch *b_Step_ParentTrackID; //! TBranch *b_Step_StepNumber; //! TBranch *b_Step_TrackID; //! TBranch *b_Step_AccumulatedDose; //! TBranch *b_Step_AccumulatedEnergyDeposited; //! TBranch *b_Step_AccumulatedEnergyLost; //! TBranch *b_Step_AccumulatedKerma; //! TBranch *b_Step_FinalGammaEquivalentDose; //! TBranch *b_Step_FinalKineticEnergy; //! TBranch *b_Step_FinalPosX; //! TBranch *b_Step_FinalPosY; //! TBranch *b_Step_FinalPosZ; //! TBranch *b_Step_InitialKineticEnergy; //! TBranch *b_Step_InitialPosX; //! TBranch *b_Step_InitialPosY; //! TBranch *b_Step_InitialPosZ; //! TBranch *b_Step_CreatorProcess; //! TBranch *b_Step_FinalLogicalVolume; //! TBranch *b_Step_FinalMaterial; //! TBranch *b_Step_FinalProcess; //! TBranch *b_Step_InitialLogicalVolume; //! TBranch *b_Step_InitialMaterial; //! TBranch *b_Step_InitialProcess; //! TBranch *b_Step_Particle; //! TBranch *b_Track_EventID; //! TBranch *b_Track_TrackID; //! TBranch *b_Track_AccumulatedDose; //! TBranch *b_Track_AccumulatedEnergyDeposited; //! TBranch *b_Track_AccumulatedEnergyLost; //! TBranch *b_Track_FinalKineticEnergy; //! TBranch *b_Track_FinalPosX; //! TBranch *b_Track_FinalPosY; //! TBranch *b_Track_FinalPosZ; //! TBranch *b_Track_FinalLogicalVolume; //! TBranch *b_Track_FinalMaterial; //! TBranch *b_Track_InitialMaterial; //! TBranch *b_Track_Particle; //! dose3(TTree *tree=0); virtual ~dose3(); 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 dose3_cxx dose3::dose3(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("testeSB",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("testeSB",""); chain->Add("/home/gamos/brachy_VMBox/Etapas/teste/sample/gamma_test/testeSB_tree_1000.root/testeSB"); chain->Add("/home/gamos/brachy_VMBox/Etapas/teste/sample/gamma_test/testeSB_tree_1001.root/testeSB"); chain->Add("/home/gamos/brachy_VMBox/Etapas/teste/sample/gamma_test/testeSB_tree_1002.root/testeSB"); chain->Add("/home/gamos/brachy_VMBox/Etapas/teste/sample/gamma_test/testeSB_tree_1003.root/testeSB"); chain->Add("/home/gamos/brachy_VMBox/Etapas/teste/sample/gamma_test/testeSB_tree_1004.root/testeSB"); chain->Add("/home/gamos/brachy_VMBox/Etapas/teste/sample/gamma_test/testeSB_tree_1005.root/testeSB"); chain->Add("/home/gamos/brachy_VMBox/Etapas/teste/sample/gamma_test/testeSB_tree_1006.root/testeSB"); chain->Add("/home/gamos/brachy_VMBox/Etapas/teste/sample/gamma_test/testeSB_tree_1007.root/testeSB"); tree = chain; #endif // SINGLE_TREE } Init(tree); } dose3::~dose3() { if (!fChain) return; delete fChain->GetCurrentFile(); } Int_t dose3::GetEntry(Long64_t entry) { // Read contents of entry. if (!fChain) return 0; return fChain->GetEntry(entry); } Long64_t dose3::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 dose3::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_EventID = 0; Step_ParentTrackID = 0; Step_StepNumber = 0; Step_TrackID = 0; Step_AccumulatedDose = 0; Step_AccumulatedEnergyDeposited = 0; Step_AccumulatedEnergyLost = 0; Step_AccumulatedKerma = 0; Step_FinalGammaEquivalentDose = 0; Step_FinalKineticEnergy = 0; Step_FinalPosX = 0; Step_FinalPosY = 0; Step_FinalPosZ = 0; Step_InitialKineticEnergy = 0; Step_InitialPosX = 0; Step_InitialPosY = 0; Step_InitialPosZ = 0; Step_CreatorProcess = 0; Step_FinalLogicalVolume = 0; Step_FinalMaterial = 0; Step_FinalProcess = 0; Step_InitialLogicalVolume = 0; Step_InitialMaterial = 0; Step_InitialProcess = 0; Step_Particle = 0; Track_EventID = 0; Track_TrackID = 0; Track_AccumulatedDose = 0; Track_AccumulatedEnergyDeposited = 0; Track_AccumulatedEnergyLost = 0; Track_FinalKineticEnergy = 0; Track_FinalPosX = 0; Track_FinalPosY = 0; Track_FinalPosZ = 0; Track_FinalLogicalVolume = 0; Track_FinalMaterial = 0; Track_InitialMaterial = 0; Track_Particle = 0; // Set branch addresses and branch pointers if (!tree) return; fChain = tree; fCurrent = -1; fChain->SetMakeClass(1); fChain->SetBranchAddress("Event_EventID", &Event_EventID, &b_Event_EventID); fChain->SetBranchAddress("Event_AccumulatedEnergyDeposited", &Event_AccumulatedEnergyDeposited, &b_Event_AccumulatedEnergyDeposited); fChain->SetBranchAddress("Event_AccumulatedEnergyLost", &Event_AccumulatedEnergyLost, &b_Event_AccumulatedEnergyLost); fChain->SetBranchAddress("Event_InitialKineticEnergy", &Event_InitialKineticEnergy, &b_Event_InitialKineticEnergy); fChain->SetBranchAddress("Step_EventID", &Step_EventID, &b_Step_EventID); fChain->SetBranchAddress("Step_ParentTrackID", &Step_ParentTrackID, &b_Step_ParentTrackID); fChain->SetBranchAddress("Step_StepNumber", &Step_StepNumber, &b_Step_StepNumber); 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_FinalGammaEquivalentDose", &Step_FinalGammaEquivalentDose, &b_Step_FinalGammaEquivalentDose); fChain->SetBranchAddress("Step_FinalKineticEnergy", &Step_FinalKineticEnergy, &b_Step_FinalKineticEnergy); 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_InitialPosX", &Step_InitialPosX, &b_Step_InitialPosX); fChain->SetBranchAddress("Step_InitialPosY", &Step_InitialPosY, &b_Step_InitialPosY); fChain->SetBranchAddress("Step_InitialPosZ", &Step_InitialPosZ, &b_Step_InitialPosZ); 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_InitialLogicalVolume", &Step_InitialLogicalVolume, &b_Step_InitialLogicalVolume); fChain->SetBranchAddress("Step_InitialMaterial", &Step_InitialMaterial, &b_Step_InitialMaterial); fChain->SetBranchAddress("Step_InitialProcess", &Step_InitialProcess, &b_Step_InitialProcess); fChain->SetBranchAddress("Step_Particle", &Step_Particle, &b_Step_Particle); fChain->SetBranchAddress("Track_EventID", &Track_EventID, &b_Track_EventID); fChain->SetBranchAddress("Track_TrackID", &Track_TrackID, &b_Track_TrackID); fChain->SetBranchAddress("Track_AccumulatedDose", &Track_AccumulatedDose, &b_Track_AccumulatedDose); fChain->SetBranchAddress("Track_AccumulatedEnergyDeposited", &Track_AccumulatedEnergyDeposited, &b_Track_AccumulatedEnergyDeposited); fChain->SetBranchAddress("Track_AccumulatedEnergyLost", &Track_AccumulatedEnergyLost, &b_Track_AccumulatedEnergyLost); fChain->SetBranchAddress("Track_FinalKineticEnergy", &Track_FinalKineticEnergy, &b_Track_FinalKineticEnergy); fChain->SetBranchAddress("Track_FinalPosX", &Track_FinalPosX, &b_Track_FinalPosX); fChain->SetBranchAddress("Track_FinalPosY", &Track_FinalPosY, &b_Track_FinalPosY); fChain->SetBranchAddress("Track_FinalPosZ", &Track_FinalPosZ, &b_Track_FinalPosZ); fChain->SetBranchAddress("Track_FinalLogicalVolume", &Track_FinalLogicalVolume, &b_Track_FinalLogicalVolume); fChain->SetBranchAddress("Track_FinalMaterial", &Track_FinalMaterial, &b_Track_FinalMaterial); fChain->SetBranchAddress("Track_InitialMaterial", &Track_InitialMaterial, &b_Track_InitialMaterial); fChain->SetBranchAddress("Track_Particle", &Track_Particle, &b_Track_Particle); Notify(); } Bool_t dose3::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 dose3::Show(Long64_t entry) { // Print contents of entry. // If entry is not specified, print current entry if (!fChain) return; fChain->Show(entry); } Int_t dose3::Cut(Long64_t entry) { // This function may be called from Loop. // returns 1 if entry is accepted. // returns -1 otherwise. return 1; } #endif // #ifdef dose3_cxx