# SLitrani update

**URL:** <https://root-forum.cern.ch/t/slitrani-update/24969>\
**Category:** Evolution Proposals, Apps & Ideas\
**Created:** [May 31, 2017, 7:19pm UTC](https://root-forum.cern.ch/t/slitrani-update/24969 "2017-05-31T19:19:13Z")\
**Posts on this page:** 17\
**Page:** 1

<div class="post-metadata">

**Author:** ![Progressive](https://root-forum.cern.ch/letter_avatar_proxy/v4/letter/p/dfb087/32.png) [@Progressive](https://root-forum.cern.ch/u/Progressive)\
**Post date:** [May 31, 2017, 7:19pm UTC](https://root-forum.cern.ch/t/slitrani-update/24969/1 "2017-05-31T19:19:13Z")

</div>

Hi,

I think update SLitrani to the current version of ROOT would be a vast advantage since this program is the only one which can handle birefringent materials like PWO which also the CERN uses for its crystals. But for the present it is not possible. Geant does not support birefringent materials and SLitrani is not up to date.  
Since SLitrani is a very nice set of optical equations and also build upon ROOT it would be the best to bring it up to the current version of ROOT.  
It would be very helpful.

Thanks!

---

<div class="post-metadata">

**Author:** ![Danilo](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/danilo/32/34528_2.png) [@Danilo](https://root-forum.cern.ch/u/Danilo)\
**Post date:** [May 31, 2017, 7:39pm UTC](https://root-forum.cern.ch/t/slitrani-update/24969/2 "2017-05-31T19:39:23Z")

</div>

Hi,

I think I am missing what are the problematic aspects related to the upgrade of ROOT.

Cheers,  
D

---

<div class="post-metadata">

**Author:** ![Progressive](https://root-forum.cern.ch/letter_avatar_proxy/v4/letter/p/dfb087/32.png) [@Progressive](https://root-forum.cern.ch/u/Progressive)\
**Post date:** [May 31, 2017, 7:48pm UTC](https://root-forum.cern.ch/t/slitrani-update/24969/3 "2017-05-31T19:48:52Z")

</div>

Hi,

I don’t know. As mentioned the development of SLitrani stopped some years ago and is, even with some effort, only to be able to run under root v.34 (which is also difficult to set up now/it is what I’m now trying to do).

[https://crystalclear.web.cern.ch/crystalclear/SLitraniX/SLitrani/index.html](https://crystalclear.web.cern.ch/crystalclear/SLitraniX/SLitrani/index.html) is hosted by CERN

I tried to make it run under root v6 but after two days I stopped though I managed to solve several complications, bindings, changes and so on. But as I do not know how much time it will take I stopped. Hence I’m not the best programmer so additionally I didn’t know if I can handle all the upcoming issues. And now I’m trying to run it with an old root version. But this is also difficult…

The long and the short of it: As PWO is an often used material for crystals and the light ray is needed for research issues and there is already a nice program for it but not up to date it would be glad if someone could take up on this.

I can sum up all errors and solutions I discovered so far to bring it up to the current version but I guess a person who can fix this in general won’t need my pre-work?

Kind regards

---

<div class="post-metadata">

**Author:** ![Danilo](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/danilo/32/34528_2.png) [@Danilo](https://root-forum.cern.ch/u/Danilo)\
**Post date:** [June 1, 2017, 5:28am UTC](https://root-forum.cern.ch/t/slitrani-update/24969/4 "2017-06-01T05:28:22Z")

</div>

Hi,

on this forum you will find prompt support on all the concrete issues you still have to face once they have been properly formulated and, where needed, supported with reproducers.

Cheers,  
Danilo

---

<div class="post-metadata">

**Author:** ![Progressive](https://root-forum.cern.ch/letter_avatar_proxy/v4/letter/p/dfb087/32.png) [@Progressive](https://root-forum.cern.ch/u/Progressive)\
**Post date:** [June 1, 2017, 7:54am UTC](https://root-forum.cern.ch/t/slitrani-update/24969/5 "2017-06-01T07:54:23Z")

</div>

Hi,

I’m not sure if I understand you correctly. I thought here I can suggest changes, add-ons and so on related to ROOT?

Kind regards

---

<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:** [June 1, 2017, 8:03am UTC](https://root-forum.cern.ch/t/slitrani-update/24969/6 "2017-06-01T08:03:21Z")

</div>

This whole [SLitrani](https://crystalclear.web.cern.ch/crystalclear/SLitraniX/SLitrani/) business starts to be annoying.  
Here’s a set of “fixes” which will allow you to [build the current SLitrani version on Linux](https://crystalclear.web.cern.ch/crystalclear/SLitraniX/SLitrani/Download/Preliminaries_L.html) with [ROOT 5.x](https://root.cern.ch/build-root-old-method): [SLitrani\_1\_4.Linux\_Fixes\_2017\_06\_14.tar.gz](https://root-forum.cern.ch/uploads/default/original/2X/5/5a2c72f1e388f333c00d18498d7d76b9da0544d1.gz) (57.8 KB)  
Simply download and unpack the original [SLitrani\_1\_4.tar.gz](https://crystalclear.web.cern.ch/crystalclear/SLitraniX/SLitrani/Download/SLitrani_1_4.tar.gz) file and then unpack the above “fixes” (no need to modify anything in them).  
Note: you will need to go through all the warnings that appear during the compilation yourself.  
BTW. Do remember to download from git and build the newest “[head of the v5-34-00-patches branch](https://root.cern.ch/root-version-v5-34-00-patch-release-notes)” (the “v5-34-36” release is really old / outdated).

---

<div class="post-metadata">

**Author:** ![Danilo](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/danilo/32/34528_2.png) [@Danilo](https://root-forum.cern.ch/u/Danilo)\
**Post date:** [June 1, 2017, 8:12am UTC](https://root-forum.cern.ch/t/slitrani-update/24969/7 "2017-06-01T08:12:27Z")

</div>

Hi,

you can propose an add-on, sure. I am not sure that SLitrani can be classified as a root add-on. To me it looks like a package building on top of ROOT. Now, if there is any issue linked with ROOT feel free to share it on the forum: you will receive support.

Cheers,  
D

---

<div class="post-metadata">

**Author:** ![Progressive](https://root-forum.cern.ch/letter_avatar_proxy/v4/letter/p/dfb087/32.png) [@Progressive](https://root-forum.cern.ch/u/Progressive)\
**Post date:** [June 1, 2017, 12:51pm UTC](https://root-forum.cern.ch/t/slitrani-update/24969/8 "2017-06-01T12:51:42Z")

</div>

Thanks a lot!  
which version of root exactly I do have to download? I’m confused with v5-34-00 and the comment, that v5-34-36 is old (isn’t it newer than v5-34-00?).

---

<div class="post-metadata">

**Author:** ![Progressive](https://root-forum.cern.ch/letter_avatar_proxy/v4/letter/p/dfb087/32.png) [@Progressive](https://root-forum.cern.ch/u/Progressive)\
**Post date:** [June 1, 2017, 12:53pm UTC](https://root-forum.cern.ch/t/slitrani-update/24969/9 "2017-06-01T12:53:07Z")

</div>

Hi,

woudln’t it be valuable to add this in common ROOT?  
Or to treat it like Geant?

Kind regards

---

<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:** [June 1, 2017, 1:04pm UTC](https://root-forum.cern.ch/t/slitrani-update/24969/10 "2017-06-01T13:04:26Z")

</div>

[https://root-forum.cern.ch/t/trouble-installing/18046/11](https://root-forum.cern.ch/t/trouble-installing/18046/11)  
[https://root-forum.cern.ch/t/installing-external-libraries-fits-files-in-root/17945/6](https://root-forum.cern.ch/t/installing-external-libraries-fits-files-in-root/17945/6)  
[https://root-forum.cern.ch/t/error-cannot-open-file-tunuran-h/17831/4](https://root-forum.cern.ch/t/error-cannot-open-file-tunuran-h/17831/4)

---

<div class="post-metadata">

**Author:** ![Progressive](https://root-forum.cern.ch/letter_avatar_proxy/v4/letter/p/dfb087/32.png) [@Progressive](https://root-forum.cern.ch/u/Progressive)\
**Post date:** [June 13, 2017, 3:30pm UTC](https://root-forum.cern.ch/t/slitrani-update/24969/11 "2017-06-13T15:30:10Z")

</div>

edit:

Got it fixed. I set the ROOTDEV variable wrongly. Sorry.

---

<div class="post-metadata">

**Author:** ![Progressive](https://root-forum.cern.ch/letter_avatar_proxy/v4/letter/p/dfb087/32.png) [@Progressive](https://root-forum.cern.ch/u/Progressive)\
**Post date:** [June 14, 2017, 12:33am UTC](https://root-forum.cern.ch/t/slitrani-update/24969/12 "2017-06-14T00:33:29Z")

</div>

Hi,

sorry, I guess I need a little help…

Installation worked properly but when I want ro run a macro I receive some errors:

> user@User-PC:~/rootdev/macros$ root -l  
> root [0] .x SLitBeam01.C

> size : 5  
> name : SLitBeam01  
> listing : SLitBeam01  
> upcom : Beam of muons, crystal and APD  
> downcom : Simple example with beam issued from an ellipse  
> otherseq : 0  
> indebug : 1  
> WithDate : 0

> dlopen error: /home/user/rootdev/lib/libTwoPad.so: undefined symbol: \_ZNK8TGWindow7GetNameEv  
> Load Error: Failed to load Dynamic link library /home/user/rootdev/lib/libTwoPad.so  
> Error: Symbol kload1 is not defined in current scope InitSLitrani.C:43:  
> \*\*\* Interpreter error recovered \*\*\*  
> Info in TGeoManager::TGeoManager: Geometry setup, SLitBeam01 of new Litrani created  
> Error: Symbol TLitMedium is not defined in current scope SLitBeam01.C:117:  
> Error: Symbol TLitMedium is not defined in current scope SLitBeam01.C:117:  
> Error: type TLitMedium not defined FILE:/home/user/rootdev/macros/./SLitBeam01.C LINE:117  
> Warning: Automatic variable TLitMedium_pbwo4 is allocated SLitBeam01.C:117:  
> Error: Undeclared variable TLitMedium_pbwo4 SLitBeam01.C:117:  
> \*\*\* Interpreter error recovered \*\*\*  
> slitrani [1]

Do you know why this occurs?

---

<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:** [June 14, 2017, 12:33pm UTC](https://root-forum.cern.ch/t/slitrani-update/24969/13 "2017-06-14T12:33:29Z")

</div>

I improved my file with “fixes” (I additionally fixed some problems in the “SLitrani/SMacros” subdirectory). See my first post above.  
Note that you may need to copy “SpectraDB.rdb” and / or “SplineFitDB.rdb” into your working subdirectory (e.g. into the “SLitrani/SMacros” subdirectory, if you work there).

---

<div class="post-metadata">

**Author:** ![Progressive](https://root-forum.cern.ch/letter_avatar_proxy/v4/letter/p/dfb087/32.png) [@Progressive](https://root-forum.cern.ch/u/Progressive)\
**Post date:** [June 14, 2017, 4:35pm UTC](https://root-forum.cern.ch/t/slitrani-update/24969/14 "2017-06-14T16:35:48Z")

</div>

Yes, compiling worked well, thanks! 😃

I even asked some colleques and no one knows how to install SLitrani… probably this is a dead topic.  
Might be interesting whenever someone wants to do research again with scintilliation light with the CERN crystals…  
But on the other hand: Obviously no one cares 😕

---

<div class="post-metadata">

**Author:** ![Progressive](https://root-forum.cern.ch/letter_avatar_proxy/v4/letter/p/dfb087/32.png) [@Progressive](https://root-forum.cern.ch/u/Progressive)\
**Post date:** [June 14, 2017, 8:27pm UTC](https://root-forum.cern.ch/t/slitrani-update/24969/15 "2017-06-14T20:27:19Z")

</div>

Maybe this helps someone: [https://baltig.infn.it/SABRE/Slitrani-source](https://baltig.infn.it/SABRE/Slitrani-source)

---

<div class="post-metadata">

**Author:** ![iamaanand](https://root-forum.cern.ch/letter_avatar_proxy/v4/letter/i/9d8465/32.png) [@iamaanand](https://root-forum.cern.ch/u/iamaanand)\
**Post date:** [November 30, 2023, 10:48am UTC](https://root-forum.cern.ch/t/slitrani-update/24969/16 "2023-11-30T10:48:47Z")

</div>

@Wile_E_Coyote I am not able to install SLitrani. Can you help me?

> [@Wile\_E\_Coyote](#):
>
> Simply download and unpack the original [SLitrani\_1\_4.tar.gz](https://crystalclear.web.cern.ch/crystalclear/SLitraniX/SLitrani/Download/SLitrani_1_4.tar.gz) file and then unpack the above “fixes” (no need to modify anything in them).

This link seems not working.

---

<div class="post-metadata">

**Author:** ![Eddy\_Offermann](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/eddy_offermann/32/25079_2.png) [@Eddy\_Offermann](https://root-forum.cern.ch/u/Eddy_Offermann)\
**Post date:** [December 3, 2023, 8:16am UTC](https://root-forum.cern.ch/t/slitrani-update/24969/17 "2023-12-03T08:16:08Z")

</div>

a simple “SLitrani source”-google gives a [link](https://baltig.infn.it/SABRE/Slitrani-source/-/tree/master) to the current source. It compiles with ROOT 6 is the claim.  
Unfortunately the link to the source code is not working but looking at the page of the Crystal Clear Collaboration, the current spokesperson is: Etiennette Auffray. I suggest to contact her.
