~lbno-nd/lbno-nd/trunk

« back to all changes in this revision

Viewing changes to src/fluxgen/PiFluxProjectionAlgorithm.cc

  • Committer: tstainer
  • Date: 2014-06-16 14:50:45 UTC
  • Revision ID: tstainer@liv.ac.uk-20140616145045-6hb0uouxkh8pcp2r
added readme and updates

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
//____________________________________________________________________________
 
2
/*!
 
3
 
 
4
\class    PiFluxProjectionAlgorithm
 
5
 
 
6
\author   Yordan Karadzhov <Yordan.Karadzhov \at cern.ch>
 
7
          University of Geneva
 
8
 
 
9
\author   Tom Stainer <tstainer \at liv.ac.uk>
 
10
          University of Liverpool
 
11
 
 
12
\created  Sep 2012
 
13
\last update May 2014
 
14
 
 
15
*/
 
16
//____________________________________________________________________________
1
17
#include "PiFluxProjectionAlgorithm.hh"
2
18
 
3
19
PiFluxProjectionAlgorithm::PiFluxProjectionAlgorithm() {
34
50
  //get the pdg code for the neutrino
35
51
  int nuPDG = piDecay->getNuPDG();
36
52
 
37
 
  //select the particlur flavour only for neutrino
 
53
  //select the particular flavour only for neutrino
38
54
  if(flavour_ !=0 && nuPDG != flavour_)return false;
39
55
 
40
56
  double piDecay_X = nuPos.X();