Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
nptool
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
np
nptool
Commits
a100c850
Commit
a100c850
authored
11 years ago
by
de Séréville Nicolas
Browse files
Options
Downloads
Patches
Plain Diff
+ Add Spectra to the Charissa detector
parent
8a843d6a
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
3
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
NPLib/Charissa/Makefile
+1
-1
1 addition, 1 deletion
NPLib/Charissa/Makefile
NPLib/Charissa/TCharissaSpectra.cxx
+597
-0
597 additions, 0 deletions
NPLib/Charissa/TCharissaSpectra.cxx
NPLib/Charissa/TCharissaSpectra.h
+86
-0
86 additions, 0 deletions
NPLib/Charissa/TCharissaSpectra.h
with
684 additions
and
1 deletion
NPLib/Charissa/Makefile
+
1
−
1
View file @
a100c850
...
@@ -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.
Click to expand it.
NPLib/Charissa/TCharissaSpectra.cxx
0 → 100644
+
597
−
0
View file @
a100c850
This diff is collapsed.
Click to expand it.
NPLib/Charissa/TCharissaSpectra.h
0 → 100644
+
86
−
0
View file @
a100c850
#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
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment