Skip to content
Snippets Groups Projects
Commit 98d0ec8b authored by matta's avatar matta
Browse files

* Adding the TTigressData class to NPL

parent 4ff344dc
No related branches found
No related tags found
No related merge requests found
include ../Makefile.arch
#------------------------------------------------------------------------------
SHARELIB = libTigressData.so
#libTigressPhysics.so
all: $(SHARELIB)
#------------------------------------------------------------------------------
############### Detector ##############
## Tigress ##
libTigressData.so: TTigressData.o TTigressDataDict.o
$(LD) $(SOFLAGS) $^ $(OutPutOpt) $@
TTigressDataDict.cxx: TTigressData.h
rootcint -f $@ -c $^
#libTigressPhysics.so: TTigressPhysics.o TTigressPhysicsDict.o
# $(LD) $(SOFLAGS) $^ $(OutPutOpt) $@
#TTigressPhysicsDict.cxx: TTigressPhysics.h
# rootcint -f $@ -c $^
# dependances
TTigressData.o: TTigressData.cxx TTigressData.h
#TTigressPhysics.o: TTigressPhysics.cxx TTigressPhysics.h
#######################################
############# Clean and More ##########
clean:
@rm -f core *~ *.o *Dict*
distclean:
make clean; rm -f *.so
.SUFFIXES: .$(SrcSuf)
###
.$(SrcSuf).$(ObjSuf):
$(CXX) $(CXXFLAGS) $(INCLUDE) -c $<
/*****************************************************************************
* Copyright (C) 2009-2010 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: Adrien MATTA contact address: a.matta@surrey.ac.uk *
* *
* Creation Date : November 2012 *
* Last update : *
*---------------------------------------------------------------------------*
* Decription: *
* This class hold the Tigress raw data (Made for TIG10 card) *
* *
*---------------------------------------------------------------------------*
* Comment: *
* *
* *
*****************************************************************************/
#include <iostream>
using namespace std;
#include "TTigressData.h"
ClassImp(TTigressData)
/////////////////////////
TTigressData::TTigressData()
{
// Default constructor
Clear();
}
/////////////////////////
TTigressData::~TTigressData()
{
Clear();
}
/////////////////////////
void TTigressData::Clear()
{
fTIG_CloverNbr.clear();
fTIG_CrystalNbr.clear();
fTIG_Energy.clear();
fTIG_Time.clear();
}
/////////////////////////
void TTigressData::Dump() const
{
// Energy
cout << "Tigress_Mult = " << fTIG_CloverNbr.size() << endl;
// Front
for (UShort_t i = 0; i < fTIG_CloverNbr.size(); i++){
cout << "Clover: " << fTIG_CloverNbr[i]
<< " Crystal: " << fTIG_CrystalNbr[i]
<< " Energy: " << fTIG_Energy[i]
<< " Time: " << fTIG_Time[i] << endl;
}
}
\ No newline at end of file
#ifndef __TigressDATA__
#define __TigressDATA__
/*****************************************************************************
* Copyright (C) 2009-2010 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: Adrien MATTA contact address: a.matta@surrey.ac.uk *
* *
* Creation Date : November 2012 *
* Last update : *
*---------------------------------------------------------------------------*
* Decription: *
* This class hold the Tigress raw data (Made for TIG10 card) *
* *
*---------------------------------------------------------------------------*
* Comment: *
* *
* *
*****************************************************************************/
// STL
#include <vector>
using namespace std ;
// ROOT
#include "TObject.h"
class TTigressData : public TObject {
private:
// Tigress
// Energy
vector<UShort_t> fTIG_CloverNbr;
vector<UShort_t> fTIG_CrystalNbr;
vector<Double_t> fTIG_Energy;
vector<Double_t> fTIG_Time;
public:
TTigressData();
virtual ~TTigressData();
void Clear();
void Clear(const Option_t*) {};
void Dump() const;
///////////////////// SETTERS ////////////////////////
void SetCloverNbr(UShort_t CloverNbr){fTIG_CloverNbr.push_back(CloverNbr); }
void SetCrystalNbr(UShort_t CrystalNbr){fTIG_CrystalNbr.push_back(CrystalNbr);}
void SetEnergy(UShort_t Energy){fTIG_Energy.push_back(Energy);}
void SetTime(UShort_t Time){fTIG_Time.push_back(Time);}
///////////////////// GETTERS ////////////////////////
UShort_t GetCloverNbr(unsigned int i) {return fTIG_CloverNbr[i];}
UShort_t GetCrystalNbr(unsigned int i){return fTIG_CrystalNbr[i];}
Double_t GetEnergyl(unsigned int i) {return fTIG_Energy[i];}
Double_t GetTime(unsigned int i) {return fTIG_Time[i];}
ClassDef(TTigressData,1) // TigressData structure
};
#endif
This diff is collapsed.
/********************************************************************
* TTigressDataDict.h
* CAUTION: DON'T CHANGE THIS FILE. THIS FILE IS AUTOMATICALLY GENERATED
* FROM HEADER FILES LISTED IN G__setup_cpp_environmentXXX().
* CHANGE THOSE HEADER FILES AND REGENERATE THIS FILE.
********************************************************************/
#ifdef __CINT__
#error TTigressDataDict.h/C is only for compilation. Abort cint.
#endif
#include <stddef.h>
#include <stdio.h>
#include <stdlib.h>
#include <math.h>
#include <string.h>
#define G__ANSIHEADER
#define G__DICTIONARY
#define G__PRIVATE_GVALUE
#include "G__ci.h"
#include "FastAllocString.h"
extern "C" {
extern void G__cpp_setup_tagtableTTigressDataDict();
extern void G__cpp_setup_inheritanceTTigressDataDict();
extern void G__cpp_setup_typetableTTigressDataDict();
extern void G__cpp_setup_memvarTTigressDataDict();
extern void G__cpp_setup_globalTTigressDataDict();
extern void G__cpp_setup_memfuncTTigressDataDict();
extern void G__cpp_setup_funcTTigressDataDict();
extern void G__set_cpp_environmentTTigressDataDict();
}
#include "TObject.h"
#include "TMemberInspector.h"
#include "TTigressData.h"
#include <algorithm>
namespace std { }
using namespace std;
#ifndef G__MEMFUNCBODY
#endif
extern G__linked_taginfo G__TTigressDataDictLN_TClass;
extern G__linked_taginfo G__TTigressDataDictLN_TBuffer;
extern G__linked_taginfo G__TTigressDataDictLN_TMemberInspector;
extern G__linked_taginfo G__TTigressDataDictLN_TObject;
extern G__linked_taginfo G__TTigressDataDictLN_vectorlEunsignedsPshortcOallocatorlEunsignedsPshortgRsPgR;
extern G__linked_taginfo G__TTigressDataDictLN_vectorlEdoublecOallocatorlEdoublegRsPgR;
extern G__linked_taginfo G__TTigressDataDictLN_vectorlEROOTcLcLTSchemaHelpercOallocatorlEROOTcLcLTSchemaHelpergRsPgR;
extern G__linked_taginfo G__TTigressDataDictLN_reverse_iteratorlEvectorlEROOTcLcLTSchemaHelpercOallocatorlEROOTcLcLTSchemaHelpergRsPgRcLcLiteratorgR;
extern G__linked_taginfo G__TTigressDataDictLN_vectorlETVirtualArraymUcOallocatorlETVirtualArraymUgRsPgR;
extern G__linked_taginfo G__TTigressDataDictLN_reverse_iteratorlEvectorlETVirtualArraymUcOallocatorlETVirtualArraymUgRsPgRcLcLiteratorgR;
extern G__linked_taginfo G__TTigressDataDictLN_TTigressData;
/* STUB derived class for protected member access */
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