Skip to content
Snippets Groups Projects
Commit a100c850 authored by de Séréville Nicolas's avatar de Séréville Nicolas
Browse files

+ Add Spectra to the Charissa detector

parent 8a843d6a
No related branches found
No related tags found
No related merge requests found
...@@ -10,7 +10,7 @@ all: $(SHARELIB) ...@@ -10,7 +10,7 @@ all: $(SHARELIB)
## MUST2 ## ## MUST2 ##
#libCharissa.so: TCharissaData.o TCharissaDataDict.o TCharissaPhysics.o TCharissaPhysicsDict.o TCharissaSpectra.o #libCharissa.so: TCharissaData.o TCharissaDataDict.o TCharissaPhysics.o TCharissaPhysicsDict.o TCharissaSpectra.o
libCharissa.so: TCharissaData.o TCharissaDataDict.o libCharissa.so: TCharissaData.o TCharissaDataDict.o TCharissaSpectra.o
$(LD) $(SOFLAGS) $^ $(OutPutOpt) $@ $(LD) $(SOFLAGS) $^ $(OutPutOpt) $@
TCharissaDataDict.cxx: TCharissaData.h TCharissaDataDict.cxx: TCharissaData.h
......
This diff is collapsed.
#ifndef TMUST2SPECTRA_H
#define TMUST2SPECTRA_H
/*****************************************************************************
* Copyright (C) 2009-2013 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: N. de Sereville contact address: deserevi@ipno.in2p3.fr *
* *
* Creation Date : dec 2013 *
* Last update : *
*---------------------------------------------------------------------------*
* Decription: *
* This class holds all the online spectra needed for Charissa *
* *
*---------------------------------------------------------------------------*
* Comment: *
* + first version (not complete yet) *
* *
* *
*****************************************************************************/
// C++ STL headers
#include <map>
// ROOT headers
#include "TObject.h"
#include <TH1.h>
#include <TH2.h>
#include <TString.h>
// NPLib headers
#include "TCharissaData.h"
//#include "TCharissaPhysics.h"
using namespace std;
// ForwardDeclaration
//class TCharissaPhysics;
class TCharissaSpectra {
public:
// constructor and destructor
TCharissaSpectra();
TCharissaSpectra(unsigned int NumberOfTelescope);
~TCharissaSpectra();
private:
// Instantiate and register histo to maps
TH1* AddHisto1D(TString name, TString title, Int_t nbinsx, Double_t xlow, Double_t xup, TString family);
TH1* AddHisto2D(TString name, TString title, Int_t nbinsx, Double_t xlow, Double_t xup,
Int_t nbinsy, Double_t ylow, Double_t yup, TString family);
// Initialization methods
void InitRawSpectra();
void InitPreTreatedSpectra();
void InitPhysicsSpectra();
public:
// Filling methods
void FillRawSpectra(TCharissaData*);
void FillPreTreatedSpectra(TCharissaData*);
// void FillPhysicsSpectra(TCharissaPhysics*);
// Check the Spectra
void CheckSpectra();
public:
// get map histo which will be used for GSpectra in GUser
map< vector<TString>, TH1* > GetMapHisto() const {return fMapHisto;}
TH1* GetHisto(TString family,TString name);
void WriteHisto(TString filename="VOID");
private: // Information on MUST2
unsigned int fNumberOfTelescope;
unsigned int fStripX;
unsigned int fStripY;
unsigned int fCrystalCsI;
private:
// map holding histo pointers and their family names
map< vector<TString>, TH1* > fMapHisto;
};
#endif
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