#include "art/Framework/Core/EDProducer.h"
#include "art/Framework/Core/ModuleMacros.h"
#include "art/Framework/Principal/Event.h"
#include "art/Framework/Principal/Handle.h"
#include "art/Framework/Services/Optional/TFileService.h"
#include "art/Framework/Principal/Run.h"
#include "art/Framework/Principal/SubRun.h"
#include "canvas/Utilities/InputTag.h"
#include "canvas/Persistency/Common/FindManyP.h"
#include "fhiclcpp/ParameterSet.h"
#include "messagefacility/MessageLogger/MessageLogger.h"
#include "ReweightBase/G4MultiReweighter.hh"
#include "ReweightBase/G4ReweightTraj.hh"
#include "ReweightBase/G4ReweightStep.hh"
#include "PropBase/G4ReweightParameterMaker.hh"
#include "Simulation/Particle.h"
#include "Geometry/Geometry.h"
#include "MCCheater/BackTracker.h"
#include "TGeoMaterial.h"
#include "GeometryObjects/GeometryBase.h"
Go to the source code of this file.
Functions | |
uint | GetTrajPointIdx (TLorentzVector daughter_pos, std::vector< TLorentzVector > traj_points) |
double | len (double x1, double x2, double x3) |
bool | isPrimary (const sim::Particle *part) |
G4ReweightTraj | makeTraj (const sim::Particle *part, art::Event &evt, art::ServiceHandle< cheat::BackTracker > bt) |
bool | RockFilter_A (std::vector< const sim::Particle * > parts, art::ServiceHandle< geo::Geometry > geom) |
bool | RockFilter_B (std::vector< const sim::Particle * > parts, art::ServiceHandle< geo::Geometry > geom) |
bool | RockFilter_C (art::Ptr< simb::MCTruth > mctruth, art::ServiceHandle< geo::Geometry > geom) |
bool | RockFilter_D (std::vector< const sim::Particle * > parts, art::ServiceHandle< geo::Geometry > geom) |
uint GetTrajPointIdx | ( | TLorentzVector | daughter_pos, |
std::vector< TLorentzVector > | traj_points | ||
) |
Definition at line 9 of file helperFunctions.cxx.
References len(), and demo0::length.
Referenced by makeTraj().
bool isPrimary | ( | const sim::Particle * | part | ) |
Definition at line 100 of file helperFunctions.cxx.
References launch_batch_jobs::process, simb::MCParticle::Process(), and string.
double len | ( | double | x1, |
double | x2, | ||
double | x3 | ||
) |
Definition at line 86 of file helperFunctions.cxx.
References demo0::length, cet::pow(), and std::sqrt().
Referenced by GetTrajPointIdx(), and makeTraj().
G4ReweightTraj makeTraj | ( | const sim::Particle * | part, |
art::Event & | evt, | ||
art::ServiceHandle< cheat::BackTracker > | bt | ||
) |
Definition at line 113 of file helperFunctions.cxx.
References simb::MCParticle::Daughter(), energy, art::EventID::event(), GetTrajPointIdx(), MECModelEnuComparisons::i, art::Event::id(), compare_h5_caf::idx, len(), demo0::length, make_pair(), simb::MCParticle::Mass(), make_training::momentum, simb::MCParticle::NumberDaughters(), simb::MCParticle::NumberTrajectoryPoints(), simb::MCParticle::PdgCode(), simb::MCParticle::Position(), cet::pow(), simb::MCParticle::Process(), simb::MCParticle::Px(), simb::MCParticle::Py(), simb::MCParticle::Pz(), PandAna.Demos.demo1::range, std::sqrt(), string, simb::MCParticle::TrackId(), cheat::BackTracker::TrackIDToParticle(), X, Y, and Z.
Referenced by g4rwgt::MakeG4WeightTable::produce().
bool RockFilter_A | ( | std::vector< const sim::Particle * > | parts, |
art::ServiceHandle< geo::Geometry > | geom | ||
) |
Definition at line 299 of file helperFunctions.cxx.
References MECModelEnuComparisons::i, geo::GeometryBase::isInsideDetectorBigBox(), calib::j, simb::MCParticle::NumberTrajectoryPoints(), part, and simb::MCParticle::Position().
bool RockFilter_B | ( | std::vector< const sim::Particle * > | parts, |
art::ServiceHandle< geo::Geometry > | geom | ||
) |
Definition at line 323 of file helperFunctions.cxx.
References MECModelEnuComparisons::i, geo::GeometryBase::isInsideDetectorBigBox(), simb::MCParticle::NumberTrajectoryPoints(), part, and simb::MCParticle::Position().
bool RockFilter_C | ( | art::Ptr< simb::MCTruth > | mctruth, |
art::ServiceHandle< geo::Geometry > | geom | ||
) |
Definition at line 346 of file helperFunctions.cxx.
References simb::MCTruth::GetNeutrino(), geo::GeometryBase::isInsideDetectorBigBox(), simb::MCNeutrino::Nu(), and simb::MCParticle::Position().
Referenced by g4rwgt::MakeG4WeightTable::produce().
bool RockFilter_D | ( | std::vector< const sim::Particle * > | parts, |
art::ServiceHandle< geo::Geometry > | geom | ||
) |
Definition at line 359 of file helperFunctions.cxx.
References abs(), MECModelEnuComparisons::i, geo::GeometryBase::isInsideDetectorBigBox(), calib::j, simb::MCParticle::NumberTrajectoryPoints(), part, simb::MCParticle::PdgCode(), and simb::MCParticle::Position().