# About normalization and attenuation input file format

**URL:** <https://castor-project.discourse.group/t/about-normalization-and-attenuation-input-file-format/72>\
**Category:** General Discussions\
**Created:** [September 10, 2018, 11:06am UTC](https://castor-project.discourse.group/t/about-normalization-and-attenuation-input-file-format/72 "2018-09-10T11:06:18Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![ahwxz123](https://avatars.discourse-cdn.com/v4/letter/a/a88e57/32.png) [@ahwxz123](https://castor-project.discourse.group/u/ahwxz123)\
**Post date:** [September 10, 2018, 11:06am UTC](https://castor-project.discourse.group/t/about-normalization-and-attenuation-input-file-format/72/1 "2018-09-10T11:06:18Z")

</div>

Hi, Dear Castor developers &users,  
These days i was trying to do some recons with normalization and attenuation correction. And i found that CASToR provides some access maybe could establish it, but i can not go on.  
I acquired from _CASToR\_general\_documentation.pdf_ that option ‘’-norm xxx.cdh’ and ’ -atn xxx.hdr ’ would complete the recon process i wanna , but formats of them were specified not so clearly as i could understood . I only searched a little description about normalization events with CASToR Input at pg.33 , so i was wondering should i convert to normalization format with extra code myself ? And what about attenuation , same so ?

regards,

---

<div class="post-metadata">

**Author:** ![Kajal\_Aggarwal](https://avatars.discourse-cdn.com/v4/letter/k/4491bb/32.png) [@Kajal\_Aggarwal](https://castor-project.discourse.group/u/Kajal_Aggarwal)\
**Post date:** [September 10, 2018, 11:59am UTC](https://castor-project.discourse.group/t/about-normalization-and-attenuation-input-file-format/72/2 "2018-09-10T11:59:01Z")

</div>

Hello Xiaozhuang Wang,

For normalization, you will have to provide a header (.Cdh) and a binary (.Cdf) file containing appropriate normalization factors. I am also working with normalization factors while reconstructing images using CASToR and to begin with normalization, I started by reading the normalization file given in the benchmark so as to understand the format. I am attaching a simple code I use to read my binary normalization files.

Further, in order to include the normalization factors, in the file castor-GATERootToCastor, while writing the event in the datafile ( LM in my case), I include the normalization factors by providing the command Event-\>SetNormalizationFactor(norm), where norm represents the normalization factor for respective castor ID 1 and castor ID 2.

Regards,

Kajal Aggarwal

[ToReadCastorBinary.cpp](https://castor-project.discourse.group/uploads/short-url/VNT9UuvnviRDTu3HHVSlRnNPDV.cpp) (565 Bytes)
