Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
N
NeuRad_tests
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Vratislav Chudoba
NeuRad_tests
Commits
430fd149
Commit
430fd149
authored
Feb 23, 2017
by
Vratislav Chudoba
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
A few macros_W modified.
parent
bab4d184
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
14 additions
and
6 deletions
+14
-6
cal1ePeaks.cxx
macros_W/cal1ePeaks.cxx
+11
-3
calPeaksVoltage.cxx
macros_W/calPeaksVoltage.cxx
+2
-2
extract1DHists.cxx
macros_W/extract1DHists.cxx
+1
-1
No files found.
macros_W/cal1ePeaks.cxx
View file @
430fd149
...
@@ -7,7 +7,8 @@ void cal1ePeaks()
...
@@ -7,7 +7,8 @@ void cal1ePeaks()
{
{
TString
location
=
"../data/WPT_tests"
;
TString
location
=
"../data/WPT_tests"
;
TString
suffix
=
"_nonLin"
;
// TString suffix = "_nonLin";
TString
suffix
=
""
;
//name of input root file
//name of input root file
TString
iFile
;
TString
iFile
;
...
@@ -16,7 +17,7 @@ void cal1ePeaks()
...
@@ -16,7 +17,7 @@ void cal1ePeaks()
// iFile.Form("%s/680pF_11okt_measure_with_opt_grease/HV900_Sci_mounted_Am241in_front_10cm_thr28_nxtrim1_11oct_30min_0000.root", location.Data());
// iFile.Form("%s/680pF_11okt_measure_with_opt_grease/HV900_Sci_mounted_Am241in_front_10cm_thr28_nxtrim1_11oct_30min_0000.root", location.Data());
//name of file with calibration parameters
//name of file with calibration parameters
TString
oFile
=
"cal1e_HV1000_nonLin.par"
;
TString
oFile
=
"
parameters/
cal1e_HV1000_nonLin.par"
;
// TString oFile = "cal1e_HV950.par";
// TString oFile = "cal1e_HV950.par";
// TString oFile = "cal1e_HV900.par";
// TString oFile = "cal1e_HV900.par";
...
@@ -27,7 +28,7 @@ void cal1ePeaks()
...
@@ -27,7 +28,7 @@ void cal1ePeaks()
//2D histogram to be calibrated
//2D histogram to be calibrated
// TString histName = "adcAllWoBaseline";
// TString histName = "adcAllWoBaseline";
TString
histName
=
"fh
CalAdcAllWoBaselineNonLinea
r"
;
TString
histName
=
"fh
AdcAllWoBaselineNLcor
r"
;
ofstream
calFile
;
ofstream
calFile
;
calFile
.
open
(
oFile
.
Data
());
calFile
.
open
(
oFile
.
Data
());
...
@@ -121,6 +122,11 @@ void cal1ePeaks()
...
@@ -121,6 +122,11 @@ void cal1ePeaks()
cWork
[
cNumber
]
->
cd
(
i
-
pads
*
cNumber
+
1
);
cWork
[
cNumber
]
->
cd
(
i
-
pads
*
cNumber
+
1
);
hTemp
->
Draw
();
hTemp
->
Draw
();
hTemp
->
GetXaxis
()
->
SetRangeUser
(
xmin
,
xmax
);
hTemp
->
GetXaxis
()
->
SetRangeUser
(
xmin
,
xmax
);
hTemp
->
GetXaxis
()
->
CenterTitle
();
hTemp
->
GetXaxis
()
->
SetTitle
(
"A*"
);
hTemp
->
GetXaxis
()
->
SetTitleSize
(
0.06
);
hTemp
->
GetXaxis
()
->
SetTitleOffset
(
0.75
);
hTemp
->
GetYaxis
()
->
SetTitle
(
"counts"
);
if
(
useParFile
)
{
if
(
useParFile
)
{
std
::
getline
(
parFile
,
line
);
std
::
getline
(
parFile
,
line
);
std
::
istringstream
(
line
,
ios_base
::
in
)
>>
ch
>>
min
>>
max
;
std
::
istringstream
(
line
,
ios_base
::
in
)
>>
ch
>>
min
>>
max
;
...
@@ -133,6 +139,8 @@ void cal1ePeaks()
...
@@ -133,6 +139,8 @@ void cal1ePeaks()
calFile
.
close
();
calFile
.
close
();
// cWork[0]->SaveAs("figures/cal1e.png");
}
}
void
fillParFilePreliminary
(
Int_t
noChannels
,
Int_t
min
,
Int_t
max
)
{
void
fillParFilePreliminary
(
Int_t
noChannels
,
Int_t
min
,
Int_t
max
)
{
...
...
macros_W/calPeaksVoltage.cxx
View file @
430fd149
...
@@ -7,10 +7,10 @@ using namespace std;
...
@@ -7,10 +7,10 @@ using namespace std;
void
calPeaksVoltage
()
void
calPeaksVoltage
()
{
{
TString
inFile
=
"
parameter
s/histOutput680.root"
;
TString
inFile
=
"
object
s/histOutput680.root"
;
// TString inFile = "histOutput.root";
// TString inFile = "histOutput.root";
TString
outFile
=
"
../parameter
s/calGraphs680.root"
;
TString
outFile
=
"
object
s/calGraphs680.root"
;
// TString outFile = "calGraphs.root";
// TString outFile = "calGraphs.root";
TString
outPeaksFile
=
"parameters/halfVoltPositions680.par"
;
TString
outPeaksFile
=
"parameters/halfVoltPositions680.par"
;
...
...
macros_W/extract1DHists.cxx
View file @
430fd149
...
@@ -3,7 +3,7 @@ void extract1DHists()
...
@@ -3,7 +3,7 @@ void extract1DHists()
//output in channel units
//output in channel units
// TString outputFile = "histOutput.root";
// TString outputFile = "histOutput.root";
TString
outputFile
=
"
parameter
s/histOutput680.root"
;
TString
outputFile
=
"
object
s/histOutput680.root"
;
//output in 1e units
//output in 1e units
// TString outputFile = "histOutput1e_HV1000.root";
// TString outputFile = "histOutput1e_HV1000.root";
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment