Skip to content
Snippets Groups Projects
Commit 0e62a987 authored by Atlas-Software Librarian's avatar Atlas-Software Librarian Committed by Graeme Stewart
Browse files

'CMakeLists.txt' (CommissionEvent-00-01-04)

parent 7436e4c5
No related branches found
No related tags found
No related merge requests found
################################################################################
# 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 )
/*
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
/*
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
<lcgdict>
<class name="ComTime" id="FDB6E976-4AA6-4F76-B36B-D3277D52267B" />
</lcgdict>
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
/*
Copyright (C) 2002-2017 CERN for the benefit of the ATLAS collaboration
*/
#include "CommissionEvent/ComTime.h"
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