Page Menu
Home
HEPForge
Search
Configure Global Search
Log In
Files
F19251293
ANL_CC1ppip_XSec_1DEnu_nu.cxx
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Award Token
Flag For Later
Size
3 KB
Referenced Files
None
Subscribers
None
ANL_CC1ppip_XSec_1DEnu_nu.cxx
View Options
// Copyright 2016 L. Pickering, P Stowell, R. Terri, C. Wilkinson, C. Wret
/*******************************************************************************
* This file is part of NUISANCE.
*
* NUISANCE is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* NUISANCE is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with NUISANCE. If not, see <http://www.gnu.org/licenses/>.
*******************************************************************************/
/**
* Radecky et al. Phys Rev D, 3rd series, volume 25, number 5, 1 March 1982, p 1161-1173
*/
#include
"ANL_CC1ppip_XSec_1DEnu_nu.h"
// The constructor
ANL_CC1ppip_XSec_1DEnu_nu
::
ANL_CC1ppip_XSec_1DEnu_nu
(
std
::
string
inputfile
,
FitWeight
*
rw
,
std
::
string
type
,
std
::
string
fakeDataFile
){
fName
=
"ANL_CC1ppip_XSec_1DEnu_nu"
;
fPlotTitles
=
"; E_{#nu} (GeV); #sigma(E_{#nu}) (cm^{2}/nucleon)"
;
EnuMin
=
0.
;
EnuMax
=
6.0
;
fIsDiag
=
true
;
// refers to covariance matrix; this measurement has none so only use errors, not covariance
fNormError
=
0.20
;
// normalisation error on ANL BNL flux
Measurement1D
::
SetupMeasurement
(
inputfile
,
type
,
rw
,
fakeDataFile
);
this
->
SetDataValues
(
GeneralUtils
::
GetTopLevelDir
()
+
"/data/ANL/CC1pip_on_p/anl82corr-numu-p-to-mu-p-piplus-lowW_edges.txt"
);
this
->
SetupDefaultHist
();
fFullCovar
=
StatUtils
::
MakeDiagonalCovarMatrix
(
fDataHist
);
covar
=
StatUtils
::
GetInvert
(
fFullCovar
);
this
->
fScaleFactor
=
this
->
fEventHist
->
Integral
(
"width"
)
*
double
(
1E-38
)
/
double
(
fNEvents
)
*
(
16.
/
8.
);
};
void
ANL_CC1ppip_XSec_1DEnu_nu
::
FillEventVariables
(
FitEvent
*
event
)
{
if
(
event
->
NumFSParticle
(
2212
)
==
0
||
event
->
NumFSParticle
(
211
)
==
0
||
event
->
NumFSParticle
(
13
)
==
0
)
return
;
TLorentzVector
Pnu
=
event
->
GetNeutrinoIn
()
->
fP
;
TLorentzVector
Pp
=
event
->
GetHMFSParticle
(
2212
)
->
fP
;
TLorentzVector
Ppip
=
event
->
GetHMFSParticle
(
211
)
->
fP
;
TLorentzVector
Pmu
=
event
->
GetHMFSParticle
(
13
)
->
fP
;
double
hadMass
=
FitUtils
::
MpPi
(
Pp
,
Ppip
);
double
Enu
=
-
1.0
;
// ANL has a M(pi, p) < 1.4 GeV cut imposed
if
(
hadMass
<
1400
)
Enu
=
Pnu
.
E
()
/
1.E3
;
fXVar
=
Enu
;
return
;
}
bool
ANL_CC1ppip_XSec_1DEnu_nu
::
isSignal
(
FitEvent
*
event
)
{
return
SignalDef
::
isCC1pi3Prong
(
event
,
14
,
211
,
2212
,
EnuMin
,
EnuMax
);
}
/*
void ANL_CC1ppip_XSec_1DEnu_nu::FillHistograms() {
if (makeHadronicMassHist) {
hadMassHist->Fill(hadMass);
}
Measurement1D::FillHistograms();
}
void ANL_CC1ppip_XSec_1DEnu_nu::ScaleEvents() {
PlotUtils::FluxUnfoldedScaling(fMCHist, fFluxHist);
PlotUtils::FluxUnfoldedScaling(fMCFine, fFluxHist);
fMCHist->Scale(fScaleFactor);
fMCFine->Scale(fScaleFactor);
return;
}
*/
File Metadata
Details
Attached
Mime Type
text/x-c
Expires
Tue, Sep 30, 5:49 AM (1 d, 7 h)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
6564634
Default Alt Text
ANL_CC1ppip_XSec_1DEnu_nu.cxx (3 KB)
Attached To
Mode
rNUISANCEGIT nuisancegit
Attached
Detach File
Event Timeline
Log In to Comment