diff --git a/Commission/CommissionEvent/CMakeLists.txt b/Commission/CommissionEvent/CMakeLists.txt new file mode 100644 index 0000000000000000000000000000000000000000..9aa62d5691f3c6e51b510e5fa375487bb304e807 --- /dev/null +++ b/Commission/CommissionEvent/CMakeLists.txt @@ -0,0 +1,32 @@ +################################################################################ +# Package: CommissionEvent +################################################################################ + +# Declare the package name: +atlas_subdir( CommissionEvent ) + +# Declare the package's dependencies: +atlas_depends_on_subdirs( PUBLIC + Control/CLIDSvc + Control/SGTools ) + +# External dependencies: +find_package( CLHEP ) +find_package( ROOT COMPONENTS Core Tree MathCore Hist RIO pthread ) + +# Component(s) in the package: +atlas_add_library( CommissionEvent + src/*.cxx + PUBLIC_HEADERS CommissionEvent + INCLUDE_DIRS ${CLHEP_INCLUDE_DIRS} + PRIVATE_INCLUDE_DIRS ${ROOT_INCLUDE_DIRS} + DEFINITIONS ${CLHEP_DEFINITIONS} + LINK_LIBRARIES ${CLHEP_LIBRARIES} SGTools + PRIVATE_LINK_LIBRARIES ${ROOT_LIBRARIES} ) + +atlas_add_dictionary( CommissionEventDict + CommissionEvent/CommissionEventDict.h + CommissionEvent/selection.xml + INCLUDE_DIRS ${ROOT_INCLUDE_DIRS} ${CLHEP_INCLUDE_DIRS} + LINK_LIBRARIES ${ROOT_LIBRARIES} ${CLHEP_LIBRARIES} SGTools CommissionEvent ) + diff --git a/Commission/CommissionEvent/CommissionEvent/ComTime.h b/Commission/CommissionEvent/CommissionEvent/ComTime.h new file mode 100755 index 0000000000000000000000000000000000000000..e18b1beba4c5a0a2427ccbf3f09520480dae8723 --- /dev/null +++ b/Commission/CommissionEvent/CommissionEvent/ComTime.h @@ -0,0 +1,59 @@ +/* + Copyright (C) 2002-2017 CERN for the benefit of the ATLAS collaboration +*/ + +#ifndef COMMISSIONEVENT_COMTIME +#define COMMISSIONEVENT_COMTIME +/////////////////////////////////////////////////////////////////////////////// +// // +// Information on trigger timing for ATLAS commissioning +// // +/////////////////////////////////////////////////////////////////////////////// + +#include "CLIDSvc/CLASS_DEF.h" +#include "CLHEP/Vector/ThreeVector.h" + +class ComTime +{ + public: + + ComTime() : m_trigCounterTTCTime((double)0.), m_trigCounterTime((double)0.), + m_trigCounterPosition(CLHEP::Hep3Vector((double)0.,(double)0.,(double)0.)), + m_cosThetaDirection(CLHEP::Hep3Vector((double)0.,(double)0.,(double)0.)) {} + + ComTime(double TTCTime) : m_trigCounterTTCTime(TTCTime), m_trigCounterTime((double)0.), + m_trigCounterPosition(CLHEP::Hep3Vector((double)0.,(double)0.,(double)0.)), + m_cosThetaDirection(CLHEP::Hep3Vector((double)0.,(double)0.,(double)0.)) {} + + ComTime(double TTCTime, double time) : m_trigCounterTTCTime(TTCTime), m_trigCounterTime(time), + m_trigCounterPosition(CLHEP::Hep3Vector((double)0.,(double)0.,(double)0.)), + m_cosThetaDirection(CLHEP::Hep3Vector((double)0.,(double)0.,(double)0.)) {} + + ComTime(double TTCTime, double time, CLHEP::Hep3Vector& pos, CLHEP::Hep3Vector& mom) : m_trigCounterTTCTime(TTCTime), + m_trigCounterTime(time), m_trigCounterPosition(pos), m_cosThetaDirection(mom) {} + + + ~ComTime() {}; + + void SetTTCTime(double TTCTime) {m_trigCounterTTCTime=TTCTime;} + void SetTime(double time) {m_trigCounterTime=time;} + void SetPosition(CLHEP::Hep3Vector pos) {m_trigCounterPosition=pos;} + void SetDirection(CLHEP::Hep3Vector dir) {m_cosThetaDirection=dir;} + + double getTTCTime() const {return m_trigCounterTTCTime;} + double getTime() const {return m_trigCounterTime;} + + CLHEP::Hep3Vector GetCounterPosition() const {return m_trigCounterPosition;} + CLHEP::Hep3Vector GetcosThetaDirection() const {return m_cosThetaDirection;} + + private: + + double m_trigCounterTTCTime; + double m_trigCounterTime; + CLHEP::Hep3Vector m_trigCounterPosition; + CLHEP::Hep3Vector m_cosThetaDirection; + +}; + +CLASS_DEF(ComTime,229624403,1) +#endif diff --git a/Commission/CommissionEvent/CommissionEvent/CommissionEventDict.h b/Commission/CommissionEvent/CommissionEvent/CommissionEventDict.h new file mode 100644 index 0000000000000000000000000000000000000000..1dc74771bc9e13033e2724b36d40b2c0649ae510 --- /dev/null +++ b/Commission/CommissionEvent/CommissionEvent/CommissionEventDict.h @@ -0,0 +1,10 @@ +/* + Copyright (C) 2002-2017 CERN for the benefit of the ATLAS collaboration +*/ + +#ifndef CommisionEvent_CommissionEventDict_H +#define CommisionEvent_CommissionEventDict_H + +#include "CommissionEvent/ComTime.h" + +#endif diff --git a/Commission/CommissionEvent/CommissionEvent/selection.xml b/Commission/CommissionEvent/CommissionEvent/selection.xml new file mode 100755 index 0000000000000000000000000000000000000000..91afcd3d8ba6c94d75c9dfde719fda6e4761ea48 --- /dev/null +++ b/Commission/CommissionEvent/CommissionEvent/selection.xml @@ -0,0 +1,6 @@ +<lcgdict> + + <class name="ComTime" id="FDB6E976-4AA6-4F76-B36B-D3277D52267B" /> + +</lcgdict> + diff --git a/Commission/CommissionEvent/cmt/requirements b/Commission/CommissionEvent/cmt/requirements new file mode 100755 index 0000000000000000000000000000000000000000..8d155d967b5023e216121df0e9a2f3dfae7bc403 --- /dev/null +++ b/Commission/CommissionEvent/cmt/requirements @@ -0,0 +1,23 @@ + +package CommissionEvent + +author Rob McPherson <rmcphers@triumf.ca> + +use AtlasPolicy AtlasPolicy-* +use AtlasCLHEP AtlasCLHEP-* External +use CLIDSvc CLIDSvc-* Control + +library CommissionEvent *.cxx + +apply_pattern installed_library + + +private + +use AtlasReflex AtlasReflex-* External -no_auto_imports + + +apply_pattern lcgdict dict=CommissionEvent selectionfile=selection.xml \ +headerfiles="../CommissionEvent/CommissionEventDict.h" + +end_private diff --git a/Commission/CommissionEvent/src/ComTime.cxx b/Commission/CommissionEvent/src/ComTime.cxx new file mode 100755 index 0000000000000000000000000000000000000000..16f7006a1acca7da5d85f17610defd03f2fb1fdc --- /dev/null +++ b/Commission/CommissionEvent/src/ComTime.cxx @@ -0,0 +1,5 @@ +/* + Copyright (C) 2002-2017 CERN for the benefit of the ATLAS collaboration +*/ + +#include "CommissionEvent/ComTime.h"