Skip to content
Snippets Groups Projects
Commit 7ffa75eb authored by Damien Thisse's avatar Damien Thisse
Browse files

[Actar] Added the class TActarBeam that holds some characteristics of beam...

[Actar] Added the class TActarBeam that holds some characteristics of beam tracks travelling throught Actar
parent 6de0c6cd
No related branches found
No related tags found
No related merge requests found
......@@ -3,8 +3,9 @@ add_custom_command(OUTPUT TActarDataDict.cxx COMMAND ../../scripts/build_dict.sh
add_custom_command(OUTPUT MEventReducedDict.cxx COMMAND ../../scripts/build_dict.sh MEventReduced.h MEventReducedDict.cxx MEventReduced.rootmap libNPActar.dylib MTreeStructureLinkDef.h DEPENDS MEventReduced.h)
add_custom_command(OUTPUT TActarPhysicsReaderDict.cxx COMMAND ../../scripts/build_dict.sh TActarPhysicsReader.h TActarPhysicsReaderDict.cxx TActarPhysicsReader.rootmap libNPActar.dylib DEPENDS TActarPhysicsReader.h)
add_custom_command(OUTPUT TActarScatteringDict.cxx COMMAND ../../scripts/build_dict.sh TActarScattering.h TActarScatteringDict.cxx TActarScattering.rootmap libNPActar.dylib DEPENDS TActarScattering.h)
add_custom_command(OUTPUT TActarBeamDict.cxx COMMAND ../../scripts/build_dict.sh TActarBeam.h TActarBeamDict.cxx TActarBeam.rootmap libNPActar.dylib DEPENDS TActarBeam.h)
add_library(NPActar SHARED TActarSpectra.cxx TActarData.cxx TActarPhysics.cxx TActarPhysicsReader.cxx TActarScatteringDict.cxx TActarScattering.cxx TActarDataDict.cxx TActarPhysicsDict.cxx TActarPhysicsReaderDict.cxx MEventReducedDict.cxx)
add_library(NPActar SHARED TActarSpectra.cxx TActarData.cxx TActarPhysics.cxx TActarPhysicsReader.cxx TActarScatteringDict.cxx TActarScattering.cxx TActarBeam.cxx TActarBeamDict.cxx TActarDataDict.cxx TActarPhysicsDict.cxx TActarPhysicsReaderDict.cxx MEventReducedDict.cxx)
target_link_libraries(NPActar ${ROOT_LIBRARIES} NPCore NPTrackReconstruction)
install(FILES TActarData.h TActarPhysics.h TActarSpectra.h MEventReduced.h TActarPhysicsReader.h TActarScattering.h DESTINATION ${CMAKE_INCLUDE_OUTPUT_DIRECTORY})
install(FILES TActarData.h TActarPhysics.h TActarSpectra.h MEventReduced.h TActarPhysicsReader.h TActarScattering.h TActarBeam.h DESTINATION ${CMAKE_INCLUDE_OUTPUT_DIRECTORY})
/*****************************************************************************
* Copyright (C) 2009-2017 this file is part of the NPTool Project *
* *
* For the licensing terms see $NPTOOL/Licence/NPTool_Licence *
* For the list of contributors see $NPTOOL/Licence/Contributors *
*****************************************************************************/
/*****************************************************************************
* Original Author: Damien Thisse contact address: damien.thisse@cea.fr *
* *
* Creation Date : November 2024 *
* Last update : November 2024 *
*---------------------------------------------------------------------------*
* Decription: *
* This class hold Actar Beam properties *
* *
*---------------------------------------------------------------------------*
* Comment: *
* *
* *
*****************************************************************************/
#include "TActarBeam.h"
ClassImp(TActarBeam)
TActarBeam::TActarBeam():
f_EntryPoint(0,0,0),
f_ExitPoint(0,0,0),
f_Voxels(0)
{}
void TActarBeam::SetPoints(TVector3 & EntryPoint, TVector3 & ExitPoint){
f_EntryPoint = EntryPoint;
f_ExitPoint = ExitPoint;
f_Theta = (f_ExitPoint - f_EntryPoint).Angle(TVector3(1,0,0));
}
void TActarBeam::SetVoxels(int Voxels){
f_Voxels = Voxels;
}
void TActarBeam::SetIsScatteredBeam(bool IsScatteredBeam){
f_IsScatteredBeam = IsScatteredBeam;
}
\ No newline at end of file
#ifndef TACTARBEAM_H
#define TACTARBEAM_H
/*****************************************************************************
* Copyright (C) 2009-2017 this file is part of the NPTool Project *
* *
* For the licensing terms see $NPTOOL/Licence/NPTool_Licence *
* For the list of contributors see $NPTOOL/Licence/Contributors *
*****************************************************************************/
/*****************************************************************************
* Original Author: Damien Thisse contact address: damien.thisse@cea.fr *
* *
* Creation Date : November 2024 *
* Last update : November 2024 *
*---------------------------------------------------------------------------*
* Decription: *
* This class hold Actar Scattring events properties *
* *
*---------------------------------------------------------------------------*
* Comment: *
* *
* *
*****************************************************************************/
// C++ headers
using namespace std;
// ROOT headers
#include "TObject.h"
#include "TVector3.h"
class TActarBeam : public TObject {
public:
TActarBeam();
~TActarBeam() {};
//////////////////////////////////////////////////////////////
// Inherited from TObject and overriden to avoid warnings
public:
void Clear() {};
void Clear(const Option_t*) {};
void SetPoints(TVector3 & EntryPoint, TVector3 & ExitPoint); //!
void SetVoxels(int Voxels); //!
void SetIsScatteredBeam(bool IsScatteredBeam); //!
//////////////////////////////////////////////////////////////
// data obtained after reconstruction of an event
TVector3 f_EntryPoint;
TVector3 f_ExitPoint;
double f_Theta;
int f_Voxels;
bool f_IsScatteredBeam;
public:
ClassDef(TActarBeam, 1) //ActarBeam structure
};
#endif
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment