# Issue in running program in root

**URL:** <https://root-forum.cern.ch/t/issue-in-running-program-in-root/53419>\
**Category:** Newbie\
**Created:** [February 2, 2023, 1:59pm UTC](https://root-forum.cern.ch/t/issue-in-running-program-in-root/53419 "2023-02-02T13:59:38Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![Saradindu](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/saradindu/32/26687_2.png) [@Saradindu](https://root-forum.cern.ch/u/Saradindu)\
**Post date:** [February 2, 2023, 1:59pm UTC](https://root-forum.cern.ch/t/issue-in-running-program-in-root/53419/1 "2023-02-02T13:59:38Z")

</div>

I am using the following command to run the program

root -q sand-spill-events.0.edep.root loadEDepSim.C readEDepSim.C

and getting following errors

In file included from input\_line\_40:1:  
/home/saradindu/postdoc\_genoa/dune-ge-main/readEDepSim.C:83:16: error: ‘Position’ is a private member of ‘TG4PrimaryVertex’  
\<\< " " \<Position.Y()  
^  
libedepsim\_io dictionary payload:88:20: note: declared private here  
TLorentzVector Position;  
^  
In file included from input\_line\_40:1:  
/home/saradindu/postdoc\_genoa/dune-ge-main/readEDepSim.C:84:17: error: ‘Position’ is a private member of ‘TG4PrimaryVertex’  
\<\< " " \<\< v-\>Position.Z()  
^  
libedepsim\_io dictionary payload:88:20: note: declared private here  
TLorentzVector Position;  
^  
In file included from input\_line\_40:1:  
/home/saradindu/postdoc\_genoa/dune-ge-main/readEDepSim.C:85:22: error: ‘Position’ is a private member of ‘TG4PrimaryVertex’  
\<\< " Time " \<\< v-\>Position.T()  
^  
libedepsim\_io dictionary payload:88:20: note: declared private here  
TLorentzVector Position;  
^  
In file included from input\_line\_40:1:  
/home/saradindu/postdoc\_genoa/dune-ge-main/readEDepSim.C:86:31: error: ‘Reaction’ is a private member of ‘TG4PrimaryVertex’  
\<\< " ReacType "\<Reaction;  
^  
libedepsim\_io dictionary payload:94:17: note: declared private here  
std::string Reaction;  
^  
In file included from input\_line\_40:1:  
/home/saradindu/postdoc\_genoa/dune-ge-main/readEDepSim.C:88:63: error: ‘Position’ is a private member of ‘TG4PrimaryVertex’  
std::cout\<\<"Position in local coord. "\<\<LocalCoordinates(v-\>Position).Y()\<\<std::endl;  
^  
[readEDepSim.C](https://root-forum.cern.ch/uploads/short-url/lmx8AmyE7rB2bunCdT61yS0jlUo.C) (5.0 KB)

The code is attached readEDepSim.C .

Please let me know what is the problem and how to solve this.

regards,  
Saradindu

---

<div class="post-metadata">

**Author:** ![Wile\_E\_Coyote](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/wile_e_coyote/32/12417_2.png) [@Wile\_E\_Coyote](https://root-forum.cern.ch/u/Wile_E_Coyote)\
**Post date:** [February 2, 2023, 2:04pm UTC](https://root-forum.cern.ch/t/issue-in-running-program-in-root/53419/2 "2023-02-02T14:04:49Z")

</div>

The “`TG4PrimaryVertex`” class is not a part of ROOT. You need to consult its author(s).

---

<div class="post-metadata">

**Author:** ![Saradindu](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/saradindu/32/26687_2.png) [@Saradindu](https://root-forum.cern.ch/u/Saradindu)\
**Post date:** [February 2, 2023, 3:44pm UTC](https://root-forum.cern.ch/t/issue-in-running-program-in-root/53419/3 "2023-02-02T15:44:36Z")

</div>

Thank you. I can’t understand where to write.

Could you please advise.

Regards,  
Saradindu

---

<div class="post-metadata">

**Author:** ![Wile\_E\_Coyote](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/wile_e_coyote/32/12417_2.png) [@Wile\_E\_Coyote](https://root-forum.cern.ch/u/Wile_E_Coyote)\
**Post date:** [February 2, 2023, 4:05pm UTC](https://root-forum.cern.ch/t/issue-in-running-program-in-root/53419/4 "2023-02-02T16:05:12Z")

</div>

Talk to the one who gave you this file and/or your colleagues and/or your supervisor.

BTW. I would try with:  
`v->GetPosition().Y()`  
`v->GetPosition().Z()`  
`v->GetPosition().T()`  
`v->GetReaction()`

---

<div class="post-metadata">

**Author:** ![Saradindu](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/saradindu/32/26687_2.png) [@Saradindu](https://root-forum.cern.ch/u/Saradindu)\
**Post date:** [February 2, 2023, 4:30pm UTC](https://root-forum.cern.ch/t/issue-in-running-program-in-root/53419/5 "2023-02-02T16:30:41Z")

</div>

Respected Wile,  
Thank you very much . It works.

regards,  
Saradindu

---

<div class="post-metadata">

**Author:** ![Saradindu](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/saradindu/32/26687_2.png) [@Saradindu](https://root-forum.cern.ch/u/Saradindu)\
**Post date:** [February 2, 2023, 4:32pm UTC](https://root-forum.cern.ch/t/issue-in-running-program-in-root/53419/6 "2023-02-02T16:32:17Z")

</div>

Respected Wile,

Thank you very much. It works.

regards,  
Saradindu
