mirror of
https://github.com/OpenCMT/uLib.git
synced 2025-12-06 07:21:31 +01:00
switch to git no-history version
This commit is contained in:
14
src/ParticlePhysics/Geant/Makefile.am
Normal file
14
src/ParticlePhysics/Geant/Makefile.am
Normal file
@@ -0,0 +1,14 @@
|
||||
include $(top_srcdir)/Common.am
|
||||
|
||||
library_includedir = $(includedir)/libmutom-${PACKAGE_VERSION}/ParticlePhysics/Geant
|
||||
|
||||
library_include_HEADERS =
|
||||
|
||||
_PPGEANT_SOURCES =
|
||||
|
||||
|
||||
|
||||
noinst_LTLIBRARIES = libmutomppgeant.la
|
||||
libmutomppgeant_la_SOURCES = ${_PPGEANT_SOURCES}
|
||||
|
||||
|
||||
47
src/ParticlePhysics/MuonTomography/DetectorChamber.h
Normal file
47
src/ParticlePhysics/MuonTomography/DetectorChamber.h
Normal file
@@ -0,0 +1,47 @@
|
||||
/*//////////////////////////////////////////////////////////////////////////////
|
||||
// CMT Cosmic Muon Tomography project //////////////////////////////////////////
|
||||
////////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
Copyright (c) 2014, Universita' degli Studi di Padova, INFN sez. di Padova
|
||||
All rights reserved
|
||||
|
||||
Authors: Andrea Rigoni Garola < andrea.rigoni@pd.infn.it >
|
||||
|
||||
------------------------------------------------------------------
|
||||
This library is free software; you can redistribute it and/or
|
||||
modify it under the terms of the GNU Lesser General Public
|
||||
License as published by the Free Software Foundation; either
|
||||
version 3.0 of the License, or (at your option) any later version.
|
||||
|
||||
This library is distributed in the hope that it will be useful,
|
||||
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||
Lesser General Public License for more details.
|
||||
|
||||
You should have received a copy of the GNU Lesser General Public
|
||||
License along with this library.
|
||||
|
||||
//////////////////////////////////////////////////////////////////////////////*/
|
||||
|
||||
#ifndef U_PP_MUTOM_DETECTORCHAMBER_H
|
||||
#define U_PP_MUTOM_DETECTORCHAMBER_H
|
||||
|
||||
#include <Core/Object.h>
|
||||
|
||||
namespace uLib {
|
||||
|
||||
class ContainerBox;
|
||||
|
||||
class DetectorChamber : public Object {
|
||||
public:
|
||||
|
||||
virtual ContainerBox & Geometry() {}
|
||||
protected:
|
||||
virtual ~DetectorChamber() {}
|
||||
};
|
||||
|
||||
} // uLib
|
||||
|
||||
|
||||
|
||||
#endif // DETECTORCHAMBER_H
|
||||
53
src/ParticlePhysics/MuonTomography/DriftDetector.h
Normal file
53
src/ParticlePhysics/MuonTomography/DriftDetector.h
Normal file
@@ -0,0 +1,53 @@
|
||||
/*//////////////////////////////////////////////////////////////////////////////
|
||||
// CMT Cosmic Muon Tomography project //////////////////////////////////////////
|
||||
////////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
Copyright (c) 2014, Universita' degli Studi di Padova, INFN sez. di Padova
|
||||
All rights reserved
|
||||
|
||||
Authors: Andrea Rigoni Garola < andrea.rigoni@pd.infn.it >
|
||||
|
||||
------------------------------------------------------------------
|
||||
This library is free software; you can redistribute it and/or
|
||||
modify it under the terms of the GNU Lesser General Public
|
||||
License as published by the Free Software Foundation; either
|
||||
version 3.0 of the License, or (at your option) any later version.
|
||||
|
||||
This library is distributed in the hope that it will be useful,
|
||||
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||
Lesser General Public License for more details.
|
||||
|
||||
You should have received a copy of the GNU Lesser General Public
|
||||
License along with this library.
|
||||
|
||||
//////////////////////////////////////////////////////////////////////////////*/
|
||||
|
||||
|
||||
|
||||
#ifndef U_PPHY_DRIFTDETECTOR_H
|
||||
#define U_PPHY_DRIFTDETECTOR_H
|
||||
|
||||
|
||||
#include <Core/Types.h>
|
||||
#include <MMath/ContainerBox.h>
|
||||
|
||||
#include "ParticlePhysics/MuonTomography/DetectorChamber.h"
|
||||
|
||||
namespace uLib {
|
||||
|
||||
class DriftDetectorChamber : public DetectorChamber {
|
||||
|
||||
uLibRefMacro(Geometry,ContainerBox)
|
||||
private:
|
||||
ContainerBox m_Geometry;
|
||||
};
|
||||
|
||||
|
||||
|
||||
|
||||
} // uLib
|
||||
|
||||
|
||||
|
||||
#endif // U_PPHY_DRIFTDETECTOR_H
|
||||
65
src/ParticlePhysics/MuonTomography/Hit.h
Normal file
65
src/ParticlePhysics/MuonTomography/Hit.h
Normal file
@@ -0,0 +1,65 @@
|
||||
/*//////////////////////////////////////////////////////////////////////////////
|
||||
// CMT Cosmic Muon Tomography project //////////////////////////////////////////
|
||||
////////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
Copyright (c) 2014, Universita' degli Studi di Padova, INFN sez. di Padova
|
||||
All rights reserved
|
||||
|
||||
Authors: Andrea Rigoni Garola < andrea.rigoni@pd.infn.it >
|
||||
|
||||
------------------------------------------------------------------
|
||||
This library is free software; you can redistribute it and/or
|
||||
modify it under the terms of the GNU Lesser General Public
|
||||
License as published by the Free Software Foundation; either
|
||||
version 3.0 of the License, or (at your option) any later version.
|
||||
|
||||
This library is distributed in the hope that it will be useful,
|
||||
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||
Lesser General Public License for more details.
|
||||
|
||||
You should have received a copy of the GNU Lesser General Public
|
||||
License along with this library.
|
||||
|
||||
//////////////////////////////////////////////////////////////////////////////*/
|
||||
|
||||
|
||||
#ifndef U_PPMUTOM_HIT_H
|
||||
#define U_PPMUTOM_HIT_H
|
||||
|
||||
#include <Core/Types.h>
|
||||
#include <Math/Dense.h>
|
||||
|
||||
|
||||
namespace uLib {
|
||||
|
||||
template <typename Type, typename Code>
|
||||
class Hit {
|
||||
Code m_Code;
|
||||
Type m_DriftTime;
|
||||
};
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
class HitMC {
|
||||
public:
|
||||
virtual Id_t GetChamber() = 0;
|
||||
virtual Vector3f GetPosition() = 0;
|
||||
virtual Scalarf GetDritfTime() = 0;
|
||||
protected:
|
||||
virtual ~HitMC() {}
|
||||
};
|
||||
|
||||
|
||||
|
||||
} // uLib
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
#endif // HIT_H
|
||||
11
src/ParticlePhysics/MuonTomography/Makefile.am
Normal file
11
src/ParticlePhysics/MuonTomography/Makefile.am
Normal file
@@ -0,0 +1,11 @@
|
||||
include $(top_srcdir)/Common.am
|
||||
|
||||
library_includedir = $(includedir)/libmutom-${PACKAGE_VERSION}/ParticlePhysics/MuonTomography
|
||||
library_include_HEADERS =
|
||||
|
||||
_PPMUTOM_SOURCES =
|
||||
|
||||
noinst_LTLIBRARIES = libmutomppmutom.la
|
||||
libmutomppmutom_la_SOURCES = ${_PPMUTOM_SOURCES}
|
||||
|
||||
|
||||
89
src/ParticlePhysics/MuonTomography/MuonScatter.h
Normal file
89
src/ParticlePhysics/MuonTomography/MuonScatter.h
Normal file
@@ -0,0 +1,89 @@
|
||||
/*//////////////////////////////////////////////////////////////////////////////
|
||||
// CMT Cosmic Muon Tomography project //////////////////////////////////////////
|
||||
////////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
Copyright (c) 2014, Universita' degli Studi di Padova, INFN sez. di Padova
|
||||
All rights reserved
|
||||
|
||||
Authors: Andrea Rigoni Garola < andrea.rigoni@pd.infn.it >
|
||||
|
||||
------------------------------------------------------------------
|
||||
This library is free software; you can redistribute it and/or
|
||||
modify it under the terms of the GNU Lesser General Public
|
||||
License as published by the Free Software Foundation; either
|
||||
version 3.0 of the License, or (at your option) any later version.
|
||||
|
||||
This library is distributed in the hope that it will be useful,
|
||||
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||
Lesser General Public License for more details.
|
||||
|
||||
You should have received a copy of the GNU Lesser General Public
|
||||
License along with this library.
|
||||
|
||||
//////////////////////////////////////////////////////////////////////////////*/
|
||||
|
||||
|
||||
|
||||
#ifndef U_PPMUTOM_MUONSCATTER_H
|
||||
#define U_PPMUTOM_MUONSCATTER_H
|
||||
|
||||
#include "Core/Macros.h"
|
||||
#include "Core/Serializable.h"
|
||||
|
||||
#include "Math/Dense.h"
|
||||
|
||||
namespace uLib {
|
||||
|
||||
|
||||
|
||||
class MuonTrack {
|
||||
ULIB_SERIALIZE_ACCESS
|
||||
public:
|
||||
HLine3f track;
|
||||
Scalarf momentum;
|
||||
};
|
||||
|
||||
class MuonScatter {
|
||||
ULIB_SERIALIZE_ACCESS
|
||||
public:
|
||||
MuonTrack in, out;
|
||||
MuonTrack error_in, error_out;
|
||||
};
|
||||
|
||||
|
||||
} // uLib
|
||||
|
||||
ULIB_SERIALIZABLE(uLib::MuonTrack)
|
||||
ULIB_SERIALIZE(uLib::MuonTrack) {
|
||||
ar & AR(line);
|
||||
}
|
||||
|
||||
|
||||
|
||||
ULIB_SERIALIZABLE(uLib::MuonScatter)
|
||||
ULIB_SERIALIZE(uLib::MuonScatter) {
|
||||
ar
|
||||
& " MuonScatter: ----------------- \n"
|
||||
& "IN : " & AR(in) & "\n"
|
||||
& "OUT: " & AR(out) & "\n"
|
||||
& " ------------------------------ \n";
|
||||
}
|
||||
|
||||
|
||||
std::ostream &
|
||||
operator << (std::ostream &o, const uLib::MuonScatter &d) {
|
||||
uLib::Archive::hrt_oarchive(o) << d;
|
||||
return o;
|
||||
}
|
||||
|
||||
inline std::istream &
|
||||
operator >> (std::istream &is, uLib::MuonScatter &d)
|
||||
{
|
||||
uLib::Archive::hrt_iarchive(is) >> d;
|
||||
return is;
|
||||
}
|
||||
|
||||
|
||||
|
||||
#endif // MUONSCATTER_H
|
||||
Reference in New Issue
Block a user