Classes | Namespaces | Functions
Multiplet_module.cc File Reference
#include "art/Framework/Core/EDFilter.h"
#include "art/Framework/Core/ModuleMacros.h"
#include "art/Framework/Principal/Event.h"
#include "art/Framework/Principal/Handle.h"
#include "DDTBaseDataProducts/BaseProducts.h"
#include "DDTBaseDataProducts/HitList.h"
#include "DDTBaseDataProducts/DAQHit.h"
#include "DDTBaseDataProducts/HitSet.h"
#include "DDTUtilities/DetectorUtils.h"
#include <memory>
#include <list>
#include <algorithm>

Go to the source code of this file.

Classes

class  novaddt::Multiplet
 

Namespaces

 novaddt
 

Functions

template<class T >
unsigned distance (const T &t1, const T &t2)
 
template<class T >
unsigned delta (const novaddt::DAQHit &h1, const novaddt::DAQHit &h2)
 
double deltaTDC (const novaddt::TDC &h1, const novaddt::TDC &h2)
 
std::ostream & operator<< (std::ostream &s, novaddt::DAQHit &hit)
 

Function Documentation

template<class T >
unsigned delta ( const novaddt::DAQHit h1,
const novaddt::DAQHit h2 
)

Definition at line 38 of file Multiplet_module.cc.

References distance(), and febshutoff_auto::val.

38  {
39  return distance(static_cast<T>(h1).val, static_cast<T>(h2).val);
40 }
unsigned distance(const T &t1, const T &t2)
double deltaTDC ( const novaddt::TDC h1,
const novaddt::TDC h2 
)

Definition at line 42 of file Multiplet_module.cc.

References DT(), novaddt::TDC::fraction(), h1, and novaddt::TDC::val.

Referenced by novaddt::Multiplet::deltaTCorr(), novaddt::NNFastMMTrigger::filter(), comi::FEBFlash::FilterFEBFlash(), novaddt::Multiplet::findslices(), and novaddt::Multiplet::isHitCloseToHit().

42  {
43  double DT = (h2>h1)?(double(h2.val-h1.val)):(-double(h1.val-h2.val));
44  return DT+h2.fraction()-h1.fraction();
45 }
value_type val
Definition: BaseProducts.h:34
double DT(const novaddt::TDC &t1, const novaddt::TDC &t2)
double fraction() const
Definition: BaseProducts.h:37
TH1F * h1
template<class T >
unsigned distance ( const T t1,
const T t2 
)

Definition at line 33 of file Multiplet_module.cc.

References getGoodRuns4SAM::t1.

Referenced by mono::SlowMonopoleTrigger::algorithm(), mcchk::NeutrinoAna::analyze(), nnbar::RecoAnalysis::analyze(), mcchk::NeutrinoAna::beginJob(), trk::KalmanTrackMerge::CanJoinTracks(), trk::KalmanTrack::CheckTrack(), novaddt::RemoveNoise::CleanSlice(), color(), beamlinereco::WCHitFinderAlg::createNeighborhoodMatrix(), delta(), ana::MCMCSample::DiagnosticVal(), ana::MCMCSamples::DiagOffset(), g4n::RockCutterAction::Distance_Wall(), caf::FillCVNResultVars(), novaddt::MichelETrigger::filter(), supernova::HighEFinder::GetHitsAroundTime(), mcchk::DetSimAna::GetPDGBin(), evd::SliceNavigator::GetProductsImplFull(), art::PtrVector< T >::insert(), mono::Cluster::make(), make_nue_xsec_pred(), novaddt::DCMSlice::MakeSlice(), novaddt::TimeSlice::MakeSlice(), ana::MCMCSample::MCMCSample(), MoveDeltaToT2KUnits(), novaddt::NuMuTrigger::n3DCellsToEdge(), zcl::FastMonopoleTriggers::NumberOfCellsPerLength(), novaddt::FastMMTrigger::NumberOfCellsPerLength(), novaddt::NNFastMMTrigger::NumberOfCellsPerLength(), zcl::FmmTriggerEvd::NumberOfCellsPerLength(), zcl::FastMMStudy::NumberOfCellsPerLength(), plot_nue_xsec_pred(), art::MixOp< PROD, OPROD >::readFromFile(), novaddt::smt::Trigger::run_algorithm(), mono::Cluster::split_by_view(), novaddt::smt::Trigger::split_by_view(), mono::SlowMonopoleTrigger::split_by_view(), zcl::FastMonopoleTriggers::StdevCellsPerPlane(), novaddt::FastMMTrigger::StdevCellsPerPlane(), novaddt::NNFastMMTrigger::StdevCellsPerPlane(), zcl::FmmTriggerEvd::StdevCellsPerPlane(), zcl::FastMMStudy::StdevCellsPerPlane(), ana::MCMCSample::Val(), and ana::MCMCSamples::VarOffset().

33  {
34  return (t2>t1)?(t2-t1):(t1-t2);
35 }
double t2
std::ostream& operator<< ( std::ostream &  s,
novaddt::DAQHit hit 
)

Definition at line 206 of file Multiplet_module.cc.

References novaddt::DAQHit::ADC(), novaddt::DAQHit::Cell(), novaddt::DAQHit::Plane(), novaddt::DAQHit::TDC(), novaddt::TDC::val, novaddt::ADC::val, novaddt::Plane::val, novaddt::Cell::val, novaddt::View::val, and novaddt::DAQHit::View().

206  {
207  s<<"adc="<<hit.ADC().val
208  <<" p="<<hit.Plane().val
209  <<" c="<<hit.Cell().val<<"("<<hit.View().val<<")"
210  <<" t="<<hit.TDC().val;
211  return s;
212 }
value_type val
Definition: BaseProducts.h:34
novaddt::Plane const & Plane() const
Definition: DAQHit.h:70
novaddt::TDC const & TDC() const
Definition: DAQHit.h:74
value_type val
Definition: BaseProducts.h:109
const XML_Char * s
Definition: expat.h:262
novaddt::ADC const & ADC() const
Definition: DAQHit.h:73
novaddt::View const & View() const
Definition: DAQHit.h:72
value_type val
Definition: BaseProducts.h:84
value_type val
Definition: BaseProducts.h:137
novaddt::Cell const & Cell() const
Definition: DAQHit.h:71
value_type val
Definition: BaseProducts.h:65