filt::LArG4FakeTriggerFilter::LArG4FakeTriggerFilter |
( |
fhicl::ParameterSet const & |
pset | ) |
|
|
explicit |
void filt::LArG4FakeTriggerFilter::beginJob |
( |
| ) |
|
|
overridevirtual |
double filt::LArG4FakeTriggerFilter::EnergyInTPC |
( |
const art::Ptr< simb::MCParticle > |
particle | ) |
|
|
private |
Definition at line 105 of file LArG4FakeTriggerFilter_module.cc.
116 int npts = particle->NumberTrajectoryPoints();
117 for (
int i = 1; i < npts; i++){
118 TVector3 pos(particle->Vx(i), particle->Vy(i), particle->Vz(i));
120 if (pos[0] >= xmin && pos[0] <= xmax && pos[1] >= ymin && pos[1] <= ymax && pos[2] >= zmin && pos[2] <= zmax){
121 e_dep += particle->E(i-1) - particle->E(i);
geo::Length_t DetHalfWidth(geo::TPCID const &tpcid) const
Returns the half width of the active volume of the specified TPC.
process_name pandoraGausCryo1 vertexChargeCryo1 vertexStubCryo1 xmin
geo::Length_t DetHalfHeight(geo::TPCID const &tpcid) const
Returns the half height of the active volume of the specified TPC.
geo::Length_t DetLength(geo::TPCID const &tpcid) const
Returns the length of the active volume of the specified TPC.
geo::GeometryCore const * fGeometryService
bool filt::LArG4FakeTriggerFilter::filter |
( |
art::Event & |
e | ) |
|
|
overridevirtual |
Definition at line 57 of file LArG4FakeTriggerFilter_module.cc.
59 art::Handle<std::vector<simb::MCParticle> > particles;
64 for (
unsigned int part_i = 0; part_i < particles->size(); part_i++){
66 const art::Ptr<simb::MCParticle> particle(particles, part_i);
69 double time = particle->T() * 1
e-3;
bool IsInterestingParticle(const art::Ptr< simb::MCParticle > particle)
std::string fLArG4ModuleName
double EnergyInTPC(const art::Ptr< simb::MCParticle > particle)
bool filt::LArG4FakeTriggerFilter::IsInterestingParticle |
( |
const art::Ptr< simb::MCParticle > |
particle | ) |
|
|
private |
Definition at line 91 of file LArG4FakeTriggerFilter_module.cc.
94 if(particle->StatusCode() != 1)
return false;
97 int pdg = particle->PdgCode();
98 if(!(pdg==11 || pdg==13 || pdg==211 || pdg==321 || pdg==2212))
return false;
void filt::LArG4FakeTriggerFilter::reconfigure |
( |
fhicl::ParameterSet const & |
pset | ) |
|
double filt::LArG4FakeTriggerFilter::fBeamTimeMax |
|
private |
double filt::LArG4FakeTriggerFilter::fBeamTimeMin |
|
private |
double filt::LArG4FakeTriggerFilter::fEnergyDeposit |
|
private |
std::string filt::LArG4FakeTriggerFilter::fLArG4ModuleName |
|
private |
The documentation for this class was generated from the following file: