mirror of
https://github.com/OpenCMT/uLib.git
synced 2025-12-06 07:21:31 +01:00
Moved class from mutom-g4-castor
This commit is contained in:
@@ -7,6 +7,7 @@ set(HEADERS
|
||||
muBlastMCTrack.h
|
||||
muCastorMCTrack.h
|
||||
muCastorHit.h
|
||||
muCastorInfo.h
|
||||
)
|
||||
|
||||
set(DICTIONARY_HEADERS
|
||||
@@ -18,6 +19,7 @@ set(DICTIONARY_HEADERS
|
||||
muBlastMCTrack.h
|
||||
muCastorMCTrack.h
|
||||
muCastorHit.h
|
||||
muCastorInfo.h
|
||||
)
|
||||
|
||||
SET(SOURCES
|
||||
@@ -27,6 +29,7 @@ SET(SOURCES
|
||||
muBlastMCTrack.cpp
|
||||
muCastorMCTrack.cpp
|
||||
muCastorHit.cpp
|
||||
muCastorInfo.cpp
|
||||
)
|
||||
|
||||
set(LIBRARIES
|
||||
|
||||
@@ -78,6 +78,7 @@ using namespace ROOT::Mutom;
|
||||
#pragma link C++ class muBlastHit+;
|
||||
#pragma link C++ class muCastorMCTrack+;
|
||||
#pragma link C++ class muCastorHit+;
|
||||
#pragma link C++ class muCastorInfo+;
|
||||
|
||||
#endif // __CINT__
|
||||
|
||||
|
||||
44
src/Root/muCastorInfo.cpp
Normal file
44
src/Root/muCastorInfo.cpp
Normal file
@@ -0,0 +1,44 @@
|
||||
//------------------------------------------------
|
||||
// The Virtual Monte Carlo examples
|
||||
// Copyright (C) 2007, 2008 Ivana Hrivnacova
|
||||
// All rights reserved.
|
||||
//
|
||||
// For the licensing terms see geant4_vmc/LICENSE.
|
||||
// Contact: vmc@pcroot.cern.ch
|
||||
//-------------------------------------------------
|
||||
|
||||
/// \file muCastorInfo.cxx
|
||||
/// \brief Implementation of the muCastorInfo class
|
||||
///
|
||||
/// \author G. Bonomi, A. Donzella - INFN
|
||||
|
||||
#include <iostream>
|
||||
|
||||
#include "muCastorInfo.h"
|
||||
|
||||
/// \cond CLASSIMP
|
||||
ClassImp(muCastorInfo)
|
||||
/// \endcond
|
||||
|
||||
using namespace std;
|
||||
|
||||
//_____________________________________________________________________________
|
||||
muCastorInfo::muCastorInfo()
|
||||
: fMuGen(-1)
|
||||
{
|
||||
/// Default constructor
|
||||
}
|
||||
//_____________________________________________________________________________
|
||||
muCastorInfo::~muCastorInfo()
|
||||
{
|
||||
/// Destructor
|
||||
}
|
||||
//_____________________________________________________________________________
|
||||
void muCastorInfo::Print(const Option_t* /*opt*/) const
|
||||
{
|
||||
/// Printing
|
||||
|
||||
cout << " Generated muons: " << fMuGen
|
||||
<< endl;
|
||||
}
|
||||
|
||||
44
src/Root/muCastorInfo.h
Normal file
44
src/Root/muCastorInfo.h
Normal file
@@ -0,0 +1,44 @@
|
||||
#ifndef muCastor_RUN_H
|
||||
#define muCastor_RUN_H
|
||||
|
||||
//------------------------------------------------
|
||||
// The Virtual Monte Carlo examples
|
||||
// Copyright (C) 2007, 2008 Ivana Hrivnacova
|
||||
// All rights reserved.
|
||||
//
|
||||
// For the licensing terms see geant4_vmc/LICENSE.
|
||||
// Contact: vmc@pcroot.cern.ch
|
||||
//-------------------------------------------------
|
||||
|
||||
/// \file muCastorInfo.h
|
||||
/// \brief Definition of the muCastorInfo class
|
||||
///
|
||||
/// \authors G. Bonomi, A. Donzella - INFN
|
||||
|
||||
#include <TObject.h>
|
||||
#include <TVector3.h>
|
||||
|
||||
class muCastorInfo : public TObject
|
||||
{
|
||||
public:
|
||||
muCastorInfo();
|
||||
virtual ~muCastorInfo();
|
||||
|
||||
// methods
|
||||
virtual void Print(const Option_t* option = "") const;
|
||||
|
||||
void SetMuGen (Int_t muGen) { fMuGen = muGen; };
|
||||
void SetMuTrk (Int_t muTrk) { fMuTrk = muTrk; };
|
||||
|
||||
Int_t GetMuGen() { return fMuGen; };
|
||||
|
||||
private:
|
||||
Int_t fMuGen; // Generated muons
|
||||
Int_t fMuTrk; // Tracked muons
|
||||
|
||||
ClassDef(muCastorInfo,1) //muCastorInfo
|
||||
};
|
||||
|
||||
#endif //muCastor_RUN_H
|
||||
|
||||
|
||||
@@ -6,11 +6,9 @@
|
||||
// Martin Subieta martin.subieta@ing.unibs.it
|
||||
//******************************************************************************************
|
||||
|
||||
#include <iostream>
|
||||
|
||||
#include "Detectors/MuonScatter.h"
|
||||
#include <Root/muCastorMCTrack.h>
|
||||
#include <TClonesArray.h>
|
||||
#include <iostream>
|
||||
|
||||
using namespace std;
|
||||
|
||||
@@ -32,8 +30,6 @@ uLib::MuonScatter &operator << (uLib::MuonScatter &mu, const muCastorMCTrack &bs
|
||||
return mu;
|
||||
}
|
||||
|
||||
//namespace ROOT {
|
||||
//namespace Mutom {
|
||||
// ----- Default constructor -------------------------------------------
|
||||
muCastorMCTrack::muCastorMCTrack()
|
||||
{
|
||||
@@ -223,5 +219,3 @@ void muCastorMCTrack::Reset()
|
||||
fPntE = 0;
|
||||
|
||||
}
|
||||
//} // Mutom
|
||||
//} // ROOT
|
||||
|
||||
@@ -12,17 +12,10 @@
|
||||
#include "vector"
|
||||
#include "TObject.h"
|
||||
#include "TParticle.h"
|
||||
#include "Detectors/MuonScatter.h"
|
||||
|
||||
class TClonesArray;
|
||||
|
||||
|
||||
namespace uLib {
|
||||
class MuonScatter;
|
||||
}
|
||||
|
||||
//namespace ROOT {
|
||||
//namespace Mutom {
|
||||
|
||||
class muCastorMCTrack : public TObject
|
||||
{
|
||||
|
||||
@@ -89,8 +82,6 @@ public:
|
||||
ClassDef(muCastorMCTrack,1);
|
||||
|
||||
};
|
||||
//} // Mutom
|
||||
//} // ROOT
|
||||
|
||||
uLib::MuonScatter &operator << (uLib::MuonScatter &mu, const muCastorMCTrack &bsmu);
|
||||
#endif //muCastor_MCTRACK_H
|
||||
|
||||
Reference in New Issue
Block a user