Filter events based on their run/event numbers. More...
Classes | |
class | CopyCellHits |
A module to copy hits from selected clusers into a vector of cell hits. More... | |
class | EventFilterNoSlice |
class | FakeSpillData |
class | HashFunctions |
class | HasStandardRecord |
class | HoughCalc |
class | MergeSubruns |
class | NonEmptyCluster |
A module to copy hits from selected clusers into a vector of cell hits. More... | |
class | NTree |
class | RemoveBeamSpills |
Reject triggers that are too close to beam spills. More... | |
class | RemoveBeamSpillsPrecise |
class | RemoveTBSpills |
Reject triggers that are too close to beam spills. More... | |
class | RewriteSpillData |
A module to store a geometry in a file. More... | |
class | RunEventFilter |
class | StoreGDML |
A module to store a geometry in a file. More... | |
class | TimeFilter |
class | TruthExpand |
class | WriteHornCurrentCosmic |
A module to store a geometry in a file. More... | |
Functions | |
def | tot_weight (compos) |
def | tot_fractions (fractions) |
def | elem_frac (compos, elem) |
def | elem_frac_total (elem, compositions, fractions) |
def | zovera (elem) |
def | zoveramaterial (compos) |
def | make_composition (name, fractions, compositions) |
def | print_composition (composition) |
template<class T > | |
std::unique_ptr< std::vector< T > > | GetHits (const std::vector< rb::Cluster > &clusts) |
std::string | EnvExpansion (const std::string &inString) |
Function to expand environment variables. More... | |
static bool | sort_pair_by_first (const std::pair< double, double > &a, const std::pair< double, double > &b) |
static double | find_median (const std::vector< std::pair< double, double > > &a) |
static bool | IsInBeamWindow (const int run, const double time) |
void | SaveObj (const TObject *obj, const std::string &filenameStub, const std::string &dirName="", const std::vector< std::string > exts={".png",".eps",".root"}, bool silent=false) |
template<typename T > | |
T | GetValAs (const stan::math::var &val) |
explicit specialization for double return value More... | |
template<> | |
double | GetValAs (const stan::math::var &val) |
explicit specialization for double return value More... | |
template<> | |
stan::math::var | GetValAs (const stan::math::var &val) |
explicit specialization for stan::math::var return value More... | |
template<typename T > | |
std::enable_if< std::is_convertible< T, double >::value, T >::type | GetValAs (double val) |
void | SetVal (double &target, const stan::math::var &source) |
Replacement for operator=() making it clear that you're 'casting' across double-stan::math::var boundary. More... | |
void | SetVal (stan::math::var &target, const double &source) |
void | SetVal (stan::math::var &target, const stan::math::var &source) |
void | SetVal (double &target, const double &source) |
double | frac (double x) |
Fractional part. More... | |
Create and query associations | |
see https://cdcvs.fnal.gov/redmine/projects/art/wiki/Inter-Product_References for information about using art::Assns | |
template<class T , class U > | |
static bool | CreateAssn (art::EDProducer const &prod, art::Event &evt, std::vector< T > &a, art::Ptr< U > b, art::Assns< T, U > &assn, size_t indx=UINT_MAX, std::string const &instance=std::string()) |
Create a 1 to 1 association between a new product and one already in the event. More... | |
template<class T , class U > | |
static bool | CreateAssn (art::EDFilter const &filt, art::Event &evt, std::vector< T > &a, art::Ptr< U > b, art::Assns< T, U > &assn, size_t indx=UINT_MAX, std::string const &instance=std::string()) |
template<class T , class U > | |
static bool | CreateAssn (art::EDProducer const &prod, art::Event &evt, std::vector< T > &a, art::Ptr< U > b, art::Assns< T, U > &assn, size_t begin_indx, size_t end_indx, std::string const &instance=std::string()) |
Create a 1 to 1 association between each of a series of new products and one already in the event. More... | |
template<class T , class U > | |
static bool | CreateAssn (art::EDProducer const &prod, art::Event &evt, art::Ptr< T > &a, art::Ptr< U > b, art::Assns< T, U > &assn) |
Create a 1 to 1 association between two products already in the event. More... | |
template<class T , class U > | |
static bool | CreateAssn (art::EDProducer const &prod, art::Event &evt, std::vector< T > &a, art::PtrVector< U > b, art::Assns< T, U > &assn, size_t indx=UINT_MAX, std::string const &instance=std::string()) |
Create a 1 to many association between a new product and a PtrVector already in the event. More... | |
template<class T , class U > | |
static bool | CreateAssn (art::EDProducer const &prod, art::Event &evt, art::Ptr< T > &a, std::vector< art::Ptr< U > > b, art::Assns< T, U > &assn) |
Create a 1 to many association between products already in the event. More... | |
template<class T , class U > | |
static bool | CreateAssn (art::EDProducer const &prod, art::Event &evt, std::vector< T > &a, std::vector< art::Ptr< U > > b, art::Assns< T, U > &assn, size_t indx=UINT_MAX, std::string const &instance=std::string()) |
Create a 1 to many association between a new product and a vector of Ptrs already in the event. More... | |
template<class T , class U > | |
static bool | CreateAssn (art::EDProducer const &prod, art::Event &evt, std::vector< T > &a, std::vector< U > &b, art::Assns< T, U > &assn, size_t startU, size_t endU, size_t indx=UINT_MAX, std::string const &instancea=std::string(), std::string const &instanceb=std::string()) |
Create a 1 to many association between new products. More... | |
template<class T , class U > | |
static bool | CreateAssn (art::EDFilter const &filt, art::Event &evt, std::vector< T > &a, std::vector< U > &b, art::Assns< T, U > &assn, size_t startU, size_t endU, size_t indx=UINT_MAX, std::string const &instancea=std::string(), std::string const &instanceb=std::string()) |
template<class T , class U > | |
static std::vector< const U * > | FindUNotAssociatedToT (art::Handle< U > b, art::Event const &evt, std::string const &label) |
Return all objects of type U that are not associated to objects of type T. More... | |
template<class T , class U > | |
static std::vector< art::Ptr< U > > | FindUNotAssociatedToTP (art::Handle< U > b, art::Event const &evt, std::string const &label) |
Return all objects of type U that are not associated to objects of type T. More... | |
template<class T , class U > | |
static bool | CreateAssn (art::EDProducer const &prod, art::Event &evt, std::vector< T > &a, art::Ptr< U > b, art::Assns< T, U > &assn, size_t indx=UINT_MAX, std::string const &instance=std::string()) |
Create a 1 to 1 association between a new product and one already in the event. More... | |
template<class T , class U > | |
static bool | CreateAssn (art::EDProducer const &prod, art::Event &evt, std::vector< T > &a, art::Ptr< U > b, art::Assns< T, U > &assn, size_t begin_indx, size_t end_indx, std::string const &instance=std::string()) |
Create a 1 to 1 association between each of a series of new products and one already in the event. More... | |
template<class T , class U > | |
static bool | CreateAssn (art::EDProducer const &prod, art::Event &evt, art::Ptr< T > &a, art::Ptr< U > b, art::Assns< T, U > &assn) |
Create a 1 to 1 association between two products already in the event. More... | |
template<class T , class U > | |
static bool | CreateAssn (art::EDProducer const &prod, art::Event &evt, std::vector< T > &a, art::PtrVector< U > b, art::Assns< T, U > &assn, size_t indx=UINT_MAX, std::string const &instance=std::string()) |
Create a 1 to many association between a new product and a PtrVector already in the event. More... | |
template<class T , class U > | |
static bool | CreateAssn (art::EDProducer const &prod, art::Event &evt, art::Ptr< T > &a, std::vector< art::Ptr< U > > b, art::Assns< T, U > &assn) |
Create a 1 to many association between products already in the event. More... | |
template<class T , class U > | |
static bool | CreateAssn (art::EDProducer const &prod, art::Event &evt, std::vector< T > &a, std::vector< art::Ptr< U > > b, art::Assns< T, U > &assn, size_t indx=UINT_MAX, std::string const &instance=std::string()) |
Create a 1 to many association between a new product and a vector of Ptrs already in the event. More... | |
template<class T , class U > | |
static bool | CreateAssn (art::EDProducer const &prod, art::Event &evt, std::vector< T > &a, std::vector< U > &b, art::Assns< T, U > &assn, size_t startU, size_t endU, size_t indx=UINT_MAX, std::string const &instancea=std::string(), std::string const &instanceb=std::string()) |
Create a 1 to many association between new products. More... | |
template<class T , class U > | |
static bool | CreateAssn (art::EDProducer const &prod, art::Event &evt, art::Assns< T, U > &assn, std::vector< T > &a, std::vector< U > &b, size_t indxb=UINT_MAX, size_t indxa=UINT_MAX, std::string const &instancea=std::string(), std::string const &instanceb=std::string()) |
Create a 1 to 1 between new products. More... | |
template<class T , class U > | |
static std::vector< const U * > | FindUNotAssociatedToT (art::Handle< U > b, art::Event const &evt, std::string const &label) |
Return all objects of type U that are not associated to objects of type T. More... | |
template<class T , class U > | |
static std::vector< art::Ptr< U > > | FindUNotAssociatedToTP (art::Handle< U > b, art::Event const &evt, std::string const &label) |
Return all objects of type U that are not associated to objects of type T. More... | |
template<class T , class U > | |
static bool | CreateAssn (art::EDFilter const &prod, art::Event &evt, std::vector< T > &a, art::Ptr< U > b, art::Assns< T, U > &assn, size_t indx=UINT_MAX, std::string const &instance=std::string()) |
Create a 1 to 1 association between a new product and one already in the event. More... | |
template<class T , class U > | |
static bool | CreateAssn (art::EDFilter const &prod, art::Event &evt, std::vector< T > &a, art::Ptr< U > b, art::Assns< T, U > &assn, size_t begin_indx, size_t end_indx, std::string const &instance=std::string()) |
Create a 1 to 1 association between each of a series of new products and one already in the event. More... | |
template<class T , class U > | |
static bool | CreateAssn (art::EDFilter const &prod, art::Event &evt, art::Ptr< T > &a, art::Ptr< U > b, art::Assns< T, U > &assn) |
Create a 1 to 1 association between two products already in the event. More... | |
template<class T , class U > | |
static bool | CreateAssn (art::EDFilter const &prod, art::Event &evt, std::vector< T > &a, art::PtrVector< U > b, art::Assns< T, U > &assn, size_t indx=UINT_MAX, std::string const &instance=std::string()) |
Create a 1 to many association between a new product and a PtrVector already in the event. More... | |
template<class T , class U > | |
static bool | CreateAssn (art::EDFilter const &prod, art::Event &evt, art::Ptr< T > &a, std::vector< art::Ptr< U > > b, art::Assns< T, U > &assn) |
Create a 1 to many association between products already in the event. More... | |
template<class T , class U > | |
static bool | CreateAssn (art::EDFilter const &prod, art::Event &evt, std::vector< T > &a, std::vector< art::Ptr< U > > b, art::Assns< T, U > &assn, size_t indx=UINT_MAX, std::string const &instance=std::string()) |
Create a 1 to many association between a new product and a vector of Ptrs already in the event. More... | |
template<class T , class U > | |
static bool | CreateAssn (art::EDFilter const &prod, art::Event &evt, std::vector< T > &a, std::vector< U > &b, art::Assns< T, U > &assn, size_t startU, size_t endU, size_t indx=UINT_MAX, std::string const &instancea=std::string(), std::string const &instanceb=std::string()) |
Create a 1 to many association between new products. More... | |
template<class T , class U > | |
static bool | CreateAssn (art::EDFilter const &prod, art::Event &evt, art::Assns< T, U > &assn, std::vector< T > &a, std::vector< U > &b, size_t indxb=UINT_MAX, size_t indxa=UINT_MAX, std::string const &instancea=std::string(), std::string const &instanceb=std::string()) |
Create a 1 to 1 between new products. More... | |
Simple mathematical functions | |
void | LinFitUnweighted (const std::vector< double > &x, const std::vector< double > &y, double &m, double &c) |
Simplified version of LinFit. More... | |
double | LinFit (const std::vector< double > &x, const std::vector< double > &y, const std::vector< double > &w, double &m, double &c) |
Find the best-fit line to a collection of points in 2-D by minimizing the squared vertical distance from the points to the line. More... | |
template<class T > | |
T | sqr (T x) |
More efficient square function than pow(x,2) More... | |
template<class T > | |
T | cube (T x) |
More efficient cube function than pow(x,3) More... | |
double | pythag (double x, double y) |
2D Euclidean distance More... | |
double | pythag (double x, double y, double z) |
3D Euclidean distance More... | |
void | LinFitTS (const std::vector< double > &x, const std::vector< double > &y, const std::vector< double > &w, double &m, double &b, int wmode) |
Best fit line to points using Theil-Sens median method. More... | |
template<class T > | |
T | ipow (T x, unsigned int n) |
More efficient exponentiation function than pow(x,n) for small n. More... | |
Utilities acting on RawDigits | |
typedef std::pair< unsigned int, unsigned int > | RawSlice |
void | TimeSort (std::vector< art::Ptr< rawdata::RawDigit > > &d) |
Arrange the list of raw hits in time order (early to late) More... | |
void | CountXY (const std::vector< art::Ptr< rawdata::RawDigit > > &d, unsigned int i1, unsigned int i2, unsigned int *nx, unsigned int *ny) |
Count the number of digits in each detector view. More... | |
void | EventBox (const std::vector< art::Ptr< rawdata::RawDigit > > &d, unsigned int i1, unsigned int i2, unsigned int *plane1x, unsigned int *plane2x, unsigned int *cell1x, unsigned int *cell2x, unsigned int *plane1y, unsigned int *plane2y, unsigned int *cell1y, unsigned int *cell2y) |
Find boxes in plane/cell units that contain all the hits. More... | |
void | TimeSlice (const std::vector< art::Ptr< rawdata::RawDigit > > &d, unsigned int dt_tdc, unsigned int nhit, unsigned int nhitx, unsigned int nhity, std::vector< RawSlice > &slice) |
Find windows in time that have significant activity in the detector. More... | |
unsigned int | FilterFEBFlash (std::vector< art::Ptr< rawdata::RawDigit > > &rd, int adc_sat=3400, int dt_tdc=1280) |
Filter hits that are "FEB flash" candidates; that is, they occur within a specified time of an FEB hit in saturation. More... | |
Filter events based on their run/event numbers.
Create a dummy spilldata product in cosmic files to set the isRHC field for downstream reco.
Store a geometry in a file.
Rewrite the SpillData object in an MC file to set the isRHC field.
Reject triggers that are too close to beam spills.
This is a simple tree class.
A module to filter events which have a collection of empty clusters.
Hough Calculation service.
utility services
Concatenate subrun files from same run.
Generate unique hashes for reco products.
Fake the SpillData object in an MC file to set the isRHC field.
A module to copy hits from selected clusers into a vector of cell hits.
Remove all events that occur too close to 4.2s Test Beam spill.
Filter events based on their run/subrun and event (trigger) time.
typedef std::pair<unsigned int, unsigned int> util::RawSlice |
void util::CountXY | ( | const std::vector< art::Ptr< rawdata::RawDigit > > & | d, |
unsigned int | i1, | ||
unsigned int | i2, | ||
unsigned int * | nx, | ||
unsigned int * | ny | ||
) |
Count the number of digits in each detector view.
d | : The complete list of raw digits to be considered |
i1 | : Index of the first digit to be considered |
i2 | : Index of the last digit to be considered (inclusive) |
nx | : On output, the number of hits in the x view |
ny | : On output, the number of hits in the y view |
Definition at line 38 of file RawUtil.cxx.
References visualisationForPaperMasterPlot::cmap, d, geom(), cmap::dataprov::CMap::GetPlane(), MECModelEnuComparisons::i, geo::kX, geo::kY, geo::GeometryBase::Plane(), registry_explorer::v, and geo::PlaneGeo::View().
Referenced by comi::Leana::analyze(), comi::Cana::produce(), and TimeSlice().
|
static |
Create a 1 to 1 association between a new product and one already in the event.
a | The collection about to be added to the event |
b | The product already in the event |
indx | Which element of a to associate. By default the last one. |
instance | instance label for product, defaulted to be an empty string |
|
static |
Create a 1 to 1 association between a new product and one already in the event.
a | The collection about to be added to the event |
b | The product already in the event |
indx | Which element of a to associate. By default the last one. |
instance | instance label for product, defaulted to be an empty string |
Referenced by skim::NueSkimmer::CopyMichelSlice(), skim::NueSkimmer::CopyMichelTrack(), skim::SkimmingUtils::CopyProductAndSliceAssn(), skim::NueSkimmer::CopyProngCVN(), skim::SkimmingUtils::CopyProngs(), skim::NueSkimmer::CopyShowerLID(), skim::NumuSkimmer::CopyShowerLID(), skim::NueSkimmer::CopyShowerPngAssn(), skim::SkimmingUtils::CopyShowers(), skim::NumuCCpiSkimmer::CopyTrackAssn(), skim::NumuSkimmer::CopyTrackAssn(), skim::SkimmingUtils::CopyTracks(), skim::SkimmingUtils::CopyVertex(), LSTME::FillLSTME::fillEnergies(), SliceLID::FillSliceLID::fillSliceLIDPreds(), novaddt::Clusterer::filter(), calib::RockMuonStopperSelection::filter(), calib::StopperSelection::filter(), novaddt::TriCellTrigger::filter(), novaddt::DDTTrackMerge::filter(), novaddt::UpMuTestTrigger::filter(), novaddt::Merge2DTracks::filter(), trident::DimuonSliceAna::filter(), trk::TrkAssn::produce(), qeef::QeFinder::produce(), cheat::ClusterCheater::produce(), hough::HoughT::produce(), tf::TimingFit::produce(), cheat::ProngCheater::produce(), cheat::ShowerCheater::produce(), cheat::TrueEnergy::produce(), recodemo::RecoDemo::produce(), hv::HoughVertex::produce(), cheat::TrackCheater::produce(), trk::KalmanTrack::produce(), nuesand::FillNueSandbox::produce(), lem::MergeMatches::produce(), lem::UnTranspose::produce(), beamlinereco::TimeOfFlightReco::produce(), numue::TrackOverlapECalc::produce(), wsnumu::WSNumu::produce(), MergeCollections::MergeCollections::produce(), MergeG4Collections::MergeG4Collections::produce(), presel::RockPresel::produce(), regcvntf::RegCVNTF::produce(), lem::LEMSummarizer::produce(), trk::KalmanTrackMerge::produce(), nussand::FillNusSandbox::produce(), presel::CosmicVeto::produce(), novaddt::TrackFit::produce(), slid::Recluster::produce(), trackinfo::TrackInfo::produce(), numusand::FillSandbox::produce(), presel::NuePresel::produce(), hough::MultiHoughT::produce(), nuonecvntf::NuonECVNTF::produce(), lem::Preselection::produce(), cvn::CVNCosmicMapper::produce(), slid::SliceLIDBuilder::produce(), calib::FiberCalibration::produce(), cosrej::CosRej::produce(), beamlinereco::CkovCounterReco::produce(), g4n::TruthSlim::produce(), MergeGenCollections::MergeGenCollections::produce(), trk::CosmicTrack::produce(), cvneventtf::CVNEventTF::produce(), lem::MakeMatches::produce(), cvnneutronprongtf::CVNNeutronProngTF::produce(), cvnprongtf::CVNProngTF::produce(), numue::NumuEnergy::produce(), muonid::MuonIDProd::produce(), dt::ViewMerger::produce(), earms::ElasticArmsHS::produce(), calib::TimingCalibration::produce(), wcvtx::WCVertex::produce(), beamlinereco::LEHitReco::produce(), dt::DiscreteTracker::produce(), beamlinereco::WCTrackReco::produce(), ndreco::NDReco::produce(), beamlinereco::CFDHitReco::produce(), evgen::GENIERockGen::produce(), calib::PCHitsList::produce(), lem::FindLEMMatches::produce(), vdt::VertexDT::produce(), cvn::CVNMapper::produce(), ncpi0::MakeNCPi0BkgRej::produce(), rwgt::MakeGENIEReweightTable::produce(), lem::MakePID::produce(), murem::MRE::produce(), slid::LIDBuilder::produce(), lem::LEM::produce(), jmshower::NueSel::produce(), evgen::GENIEGen::produce(), rvp::RecVarPID::produce(), crvtx::CosmicRayVertex::produce(), cvntf::CVNProngEvaluatorTF::produce(), dif::DiFShowerFinder::produce(), xnue::XnuePID::produce(), cvn::RegCVNMapper::produce(), slid::SPIDBuilder::produce(), g4n::G4Gen::produce(), jmshower::NueSelLID::produce(), fxwgt::FluxWeightCalculator::produce(), ncid::MakeNCCosRej::produce(), bpfit::BPFEnergyEstimator::produce(), bpfit::BPFPIdMaker::produce(), remid::RecoMuon::produce(), xsrec::MakeXSecCCPi0Inc::produce(), bpfit::BPFEnergyEstimatorOnly::produce(), g4rwgt::MakeG4WeightTable::produce(), lem::LEMClient::produce(), cvn::CVNAddTrainingData::produce(), cosrej::MakeNueCosRej::produce(), upmuana::UpMuProb::produce(), ncid::NCNNKeras::produce(), murem::MuonRemove::produce(), murem::FindMREParent::produce(), murem::FindParent::produce(), jmshower::RecoJMShower::produce(), fuzz::FuzzyKVertex::produce(), nerd::NERDProng::produce(), gibuu::GiBUURegen::produce(), caf::CAFMaker::produce(), me::MEFinder::produce(), bpfit::BreakPoint::produce(), jmshower::RecoJMShower::RecoShowers(), and skim::SkimmingUtils::SliceMCTruthAssociation().
|
static |
|
static |
Create a 1 to 1 association between each of a series of new products and one already in the event.
a | The collection about to be added to the event |
b | The product already in the event |
begin_indx | Which element of a to associate first. |
end_indx | One more than the index of the last element to associate |
instance | instance label for product, defaulted to be an empty string |
|
static |
Create a 1 to 1 association between each of a series of new products and one already in the event.
a | The collection about to be added to the event |
b | The product already in the event |
begin_indx | Which element of a to associate first. |
end_indx | One more than the index of the last element to associate |
instance | instance label for product, defaulted to be an empty string |
|
static |
Create a 1 to 1 association between two products already in the event.
a | A product already in the event |
b | Another product already in the event |
|
static |
Create a 1 to 1 association between two products already in the event.
a | A product already in the event |
b | Another product already in the event |
|
static |
Create a 1 to many association between a new product and a PtrVector already in the event.
a | The collection about to be added to the event |
b | The products already in the event |
indx | Which element of a to associate. By default the last one. |
instance | instance label for product, defaulted to be an empty string |
|
static |
Create a 1 to many association between a new product and a PtrVector already in the event.
a | The collection about to be added to the event |
b | The products already in the event |
indx | Which element of a to associate. By default the last one. |
instance | instance label for product, defaulted to be an empty string |
|
static |
Create a 1 to many association between products already in the event.
a | A product already in the event |
b | A vector of products already in the event (the many) |
|
static |
Create a 1 to many association between products already in the event.
a | A product already in the event |
b | A vector of products already in the event (the many) |
|
static |
Create a 1 to many association between a new product and a vector of Ptrs already in the event.
a | The collection about to be added to the event |
b | The products already in the event |
indx | Which element of a to associate. By default the last one. |
instance | instance label for product, defaulted to be an empty string |
|
static |
Create a 1 to many association between a new product and a vector of Ptrs already in the event.
a | The collection about to be added to the event |
b | The products already in the event |
indx | Which element of a to associate. By default the last one. |
instance | instance label for product, defaulted to be an empty string |
|
static |
Create a 1 to many association between new products.
a | A collection about to be added to the event |
b | Another collection about to be added to the event |
startU | The first element of b to associate |
endU | The last element of b to associate +1 (like STL begin() and end()) |
indx | Which element of a to associate. By default the last one. |
instancea | instance label for product a, defaulted to be an empty string |
instanceb | instance label for product b, defaulted to be an empty string |
|
static |
Create a 1 to many association between new products.
a | A collection about to be added to the event |
b | Another collection about to be added to the event |
startU | The first element of b to associate |
endU | The last element of b to associate +1 (like STL begin() and end()) |
indx | Which element of a to associate. By default the last one. |
instancea | instance label for product a, defaulted to be an empty string |
instanceb | instance label for product b, defaulted to be an empty string |
|
static |
Create a 1 to 1 between new products.
a | A collection about to be added to the event |
b | Another collection about to be added to the event |
indxb | Which element of b to associate. By default the last one. |
indxa | Which element of a to associate. By default the last one. |
instancea | instance label for product a, defaulted to be an empty string |
instanceb | instance label for product b, defaulted to be an empty string |
|
static |
|
static |
Create a 1 to 1 association between a new product and one already in the event.
a | The collection about to be added to the event |
b | The product already in the event |
indx | Which element of a to associate. By default the last one. |
instance | instance label for product, defaulted to be an empty string |
|
static |
Create a 1 to 1 association between each of a series of new products and one already in the event.
a | The collection about to be added to the event |
b | The product already in the event |
begin_indx | Which element of a to associate first. |
end_indx | One more than the index of the last element to associate |
instance | instance label for product, defaulted to be an empty string |
|
static |
Create a 1 to 1 association between two products already in the event.
a | A product already in the event |
b | Another product already in the event |
|
static |
Create a 1 to many association between a new product and a PtrVector already in the event.
a | The collection about to be added to the event |
b | The products already in the event |
indx | Which element of a to associate. By default the last one. |
instance | instance label for product, defaulted to be an empty string |
|
static |
Create a 1 to many association between products already in the event.
a | A product already in the event |
b | A vector of products already in the event (the many) |
|
static |
Create a 1 to many association between a new product and a vector of Ptrs already in the event.
a | The collection about to be added to the event |
b | The products already in the event |
indx | Which element of a to associate. By default the last one. |
instance | instance label for product, defaulted to be an empty string |
|
static |
Create a 1 to many association between new products.
a | A collection about to be added to the event |
b | Another collection about to be added to the event |
startU | The first element of b to associate |
endU | The last element of b to associate +1 (like STL begin() and end()) |
indx | Which element of a to associate. By default the last one. |
instancea | instance label for product a, defaulted to be an empty string |
instanceb | instance label for product b, defaulted to be an empty string |
|
static |
Create a 1 to 1 between new products.
a | A collection about to be added to the event |
b | Another collection about to be added to the event |
indxb | Which element of b to associate. By default the last one. |
indxa | Which element of a to associate. By default the last one. |
instancea | instance label for product a, defaulted to be an empty string |
instanceb | instance label for product b, defaulted to be an empty string |
More efficient cube function than pow(x,3)
Definition at line 26 of file MathUtil.h.
References submit_syst::x.
Referenced by hv::HoughVertexAlg::FillMaps(), ana::PredictionInterp::FitRatios(), calib::AttenFit::lowessFit(), calib::AttenuationFit::lowessFit(), and ana::PredictionInterp::ShiftBins().
def util.elem_frac | ( | compos, | |
elem | |||
) |
def util.elem_frac_total | ( | elem, | |
compositions, | |||
fractions | |||
) |
Definition at line 26 of file util.py.
References elem_frac(), and tot_fractions().
Referenced by make_composition(), and print_composition().
std::string util::EnvExpansion | ( | const std::string & | inString | ) |
Function to expand environment variables.
Definition at line 8 of file EnvExpand.cxx.
References compare_h5_caf::idx, confusionMatrixTree::out, fabricate::status, string, and tmp.
Referenced by wsnumu::WSNumu::beginRun(), ncpi0::MakeNCPi0BkgRej::beginRun(), ncid::MakeNCCosRej::beginRun(), bpfit::BPFEnergyEstimator::beginRun(), bpfit::BPFEnergyEstimatorOnly::beginRun(), bpfit::BPFPIdMaker::beginRun(), cosrej::MakeNueCosRej::beginRun(), ncid::NCNNKeras::beginRun(), ncid::NCNNKerasVal::beginRun(), cvntf::CVNCosmicTF::CVNCosmicTF(), cvneventtf::CVNEventTF::CVNEventTF(), cvnneutronprongtf::CVNNeutronProngTF::CVNNeutronProngTF(), cvntf::CVNProngEvaluatorTF::CVNProngEvaluatorTF(), cvnprongtf::CVNProngTF::CVNProngTF(), qeef::QeFinder::Init(), cosrej::CosRej::Init(), muonid::MuonIDProd::Init(), remid::RecoMuon::Init(), slid::DedxDistribution::Initialize(), ana::GetBDTCosRej_BPF_FHCPer1::InitTMVA(), ana::GetBDTCosRej_BPF_FHCPer2::InitTMVA(), ana::GetBDTCosRej_BPF_FHCHigh::InitTMVA(), ana::GetBDTCosRej_BPF_RHCHigh::InitTMVA(), ana::GetBDTCosRej_Kal_FHCPer1::InitTMVA(), ana::GetBDTCosRej_Kal_FHCPer2::InitTMVA(), ana::GetBDTCosRej_Kal_FHCHigh::InitTMVA(), ana::GetBDTCosRej_Kal_RHCHigh::InitTMVA(), slid::LIDAlg::LIDAlg(), nerd::NERDEval::load_anchors(), slid::ParticleIDAlg::LoadDedxHistogramFiles(), jmshower::RecoJMShower::LoadDedxHistograms(), jmshower::RecoJMShower::LoadTreeWeights(), lem::MakePID::MakePID(), nerd::NERDEval::NERDEval(), nuonecvntf::NuonECVNTF::NuonECVNTF(), lem::LEMLibrary::reconfigure(), lem::FindMatchesTranspose::reconfigure(), lem::FindLEMMatches::reconfigure(), lem::LEM::reconfigure(), slid::LIDBuilder::reconfigure(), slid::SPIDBuilder::reconfigure(), rvp::RecVarPID::RecVarPID(), regcvntf::RegCVNTF::RegCVNTF(), slid::SPIDAlg::SPIDAlg(), and xnue::XnuePID::XnuePID().
void util::EventBox | ( | const std::vector< art::Ptr< rawdata::RawDigit > > & | d, |
unsigned int | i1, | ||
unsigned int | i2, | ||
unsigned int * | plane1x, | ||
unsigned int * | plane2x, | ||
unsigned int * | cell1x, | ||
unsigned int * | cell2x, | ||
unsigned int * | plane1y, | ||
unsigned int * | plane2y, | ||
unsigned int * | cell1y, | ||
unsigned int * | cell2y | ||
) |
Find boxes in plane/cell units that contain all the hits.
d | : The complete list of raw digits to be considered |
i1 | : Index of the first hit to be considered |
i2 | : Index of the last hit to be considered (inclusive) |
plane1x | : On output, the lowest plane number in the x view |
plane2x | : On output, the highest plane number in the x view |
cell1x | : On output, the lowest cell number in the x view |
cellx | : On output, the highest cell number in the x view |
plane1y | : On output, the lowest plane number in the y view |
plane2y | : On output, the highest plane number in the y view |
cell1y | : On output, the lowest cell number in the y view |
celly | : On output, the highest cell number in the y view |
Definition at line 60 of file RawUtil.cxx.
References plot_validation_datamc::c, visualisationForPaperMasterPlot::cmap, d, geom(), cmap::dataprov::CMap::GetCell(), cmap::dataprov::CMap::GetPlane(), MECModelEnuComparisons::i, geo::kX, geo::kY, geo::GeometryBase::Plane(), registry_explorer::v, and geo::PlaneGeo::View().
unsigned int util::FilterFEBFlash | ( | std::vector< art::Ptr< rawdata::RawDigit > > & | rd, |
int | adc_sat = 3400 , |
||
int | dt_tdc = 1280 |
||
) |
Filter hits that are "FEB flash" candidates; that is, they occur within a specified time of an FEB hit in saturation.
rd | - Input list of raw digits. On output it will be time sorted and have had FEB flash hits removed. |
adc_sat | - ADC value to flag a raw hit as being in saturation, recommended value is 3400 counts |
dt_tdc | - time difference between time of saturation and time of candidate "flash" hit in units of TDC counts. Recommended value is 1280 (20 usec) Note: 1920 (30 usec) is also a useful optional value. |
Note that the vector rd will be returned time sorted and equal or shorter than its original length
Definition at line 194 of file RawUtil.cxx.
References update_sam_good_runs_metadata::good, MECModelEnuComparisons::i, calib::j, and TimeSort().
|
static |
Definition at line 83 of file MathUtil.cxx.
References a, MECModelEnuComparisons::i, moon_position_table_new3::second, x1, submit_syst::x2, y1, and submit_syst::y2.
Referenced by LinFitTS().
|
static |
Return all objects of type U that are not associated to objects of type T.
Label is the module label that would have produced the associations and likely the objects of type T this method assumes there is a one to many relationship between T and U for example if you want to get all rb::CellHits that are not associated to rb::Clusters std::vector<const rb::CellHit*> hits = FindUNotAssociatedToU<rb::Cluster>(art::Handle<rb::CellHit>, ...);
|
static |
Return all objects of type U that are not associated to objects of type T.
Label is the module label that would have produced the associations and likely the objects of type T this method assumes there is a one to many relationship between T and U for example if you want to get all rb::CellHits that are not associated to rb::Clusters std::vector<const rb::CellHit*> hits = FindUNotAssociatedToU<rb::Cluster>(art::Handle<rb::CellHit>, ...);
|
static |
Return all objects of type U that are not associated to objects of type T.
Label is the module label that would have produced the associations and likely the objects of type T this method assumes there is a one to many relationship between T and U for example if you want to get all rb::CellHits that are not associated to rb::Clusters std::vector<art::Ptr<rb::CellHit> > hits = FindUNotAssociatedToTP<rb::Cluster>(art::Handle<rb::CellHit>, ...);
|
static |
Return all objects of type U that are not associated to objects of type T.
Label is the module label that would have produced the associations and likely the objects of type T this method assumes there is a one to many relationship between T and U for example if you want to get all rb::CellHits that are not associated to rb::Clusters std::vector<art::Ptr<rb::CellHit> > hits = FindUNotAssociatedToTP<rb::Cluster>(art::Handle<rb::CellHit>, ...);
double util::frac | ( | double | x | ) |
Fractional part.
Definition at line 83 of file RemoveBeamSpillsPrecise_module.cc.
References makeTrainCVSamples::int.
Referenced by bin_composition_pie_chart(), chaninfo::CosmicEff::endJob(), util::RemoveBeamSpillsPrecise::filter(), tut::TutProducer::FitPhoton(), genie::INukeHadroData2018::Frac(), genie::INukeHadroData::Frac(), ana::FracUncert(), genie::geometry::ROOTGeomAnalyzer::GenerateVertex(), SystEntry::GetLimits(), GetLimits(), histCompare(), genie::HAIntranuke::Inelastic(), genie::HAIntranuke2018::Inelastic(), genie::geometry::PathSegment::IsTrimmedEmpty(), main(), make_cosmic_eff_table(), make_plots(), remid::ReMId::MeasurementFraction(), calib::AttenFit::MedianProfile(), calib::AttenuationFit::MedianProfile(), fuzz::FuzzyKMeanAlg::MergeClusters(), multiverse_efficiency_plot(), multiverse_macro(), ana::PredictionSystJoint2018::PredictionSystJoint2018(), and ana::PredictionSystJointDemo::PredictionSystJointDemo().
std::unique_ptr<std::vector<T> > util::GetHits | ( | const std::vector< rb::Cluster > & | clusts | ) |
Definition at line 54 of file CopyCellHits_module.cc.
|
inline |
explicit specialization for double return value
Either no-op or convert stan::math::var to double. Exists so GetVal<T>(var) can be used with one signature inside a function templated over both stan::math::var & double. (see, e.g., CAFAna/Fit/StanFitter.cxx.)
explicit specialization for double return value
Definition at line 25 of file StanUtils.h.
References febshutoff_auto::val, and stan::math::var::val().
|
inline |
explicit specialization for double return value
Either no-op or convert stan::math::var to double. Exists so GetVal<T>(var) can be used with one signature inside a function templated over both stan::math::var & double. (see, e.g., CAFAna/Fit/StanFitter.cxx.)
Definition at line 25 of file StanUtils.h.
References stan::math::var::val().
|
inline |
explicit specialization for stan::math::var return value
explicit specialization for double return value
Definition at line 29 of file StanUtils.h.
References febshutoff_auto::val.
|
inline |
Companion to GetValAs<>(stan::math::var) to provide ability to use GetValAs<double>(double) without implicitly converting to a stan::math::var.
Definition at line 36 of file StanUtils.h.
References febshutoff_auto::val.
More efficient exponentiation function than pow(x,n) for small n.
Definition at line 29 of file MathUtil.h.
References b, plot_validation_datamc::c, MECModelEnuComparisons::i, LinFit(), LinFitTS(), LinFitUnweighted(), m, getGoodRuns4SAM::n, pythag(), runNovaSAM::ret, sqr(), std::sqrt(), T, w, submit_syst::x, submit_syst::y, and test::z.
Referenced by ana::AtmConstraint::BiCubicInterp(), rsim::LegacyPulseShaper::CreateTrace(), and calib::ThresholdCorrMap::~ThresholdCorrMap().
|
inlinestatic |
Definition at line 100 of file NuMITimeParams.h.
Referenced by Exposure(), presel::CosmicVeto::produce(), and presel::CosmicCVNVeto::produce().
double util::LinFit | ( | const std::vector< double > & | x, |
const std::vector< double > & | y, | ||
const std::vector< double > & | w, | ||
double & | m, | ||
double & | c | ||
) |
Find the best-fit line to a collection of points in 2-D by minimizing the squared vertical distance from the points to the line.
x | - input vector of x coordinates |
y | - input vector of y coordinates |
w | - input vector of weights for the points |
m | - output gradient of the fit line |
c | - output y-intercept of the fit line |
In the common case of unweighted data with Gaussian errors, you should set the points weights to 1/sigma^2 for each point.
x | - input vector of x coordinates |
y | - input vector of y coordinates |
w | - input vector of weights for the points |
m | - output gradient of the fit line |
c | - output y-intercept of the fit line |
Definition at line 36 of file MathUtil.cxx.
References ana::assert(), chi2(), d, and MECModelEnuComparisons::i.
Referenced by upmuana::UpMuAnalysis::analyze(), lem::MakePID::AvgAndFit(), caldp::TCTrack::CalculateFiberVelocity(), caldp::TCTrack::CalculateMuonVelocity(), ipow(), geo::LinFit(), upmuana::LlrUpmu::LLR(), upmuana::UpMuAnalysis::LLR(), upmuana::UpMuRecoAna::LLR(), calib::AttenFit::lowessFit(), calib::AttenuationFit::lowessFit(), and pythag().
void util::LinFitTS | ( | const std::vector< double > & | x, |
const std::vector< double > & | y, | ||
const std::vector< double > & | w, | ||
double & | m, | ||
double & | b, | ||
int | wmode | ||
) |
Best fit line to points using Theil-Sens median method.
An implementation of the Theil-Sens straight line estimator (http://en.wikipedia.org/wiki/Theil-Sen_estimator)
Theil-Sens sets the slope to be the median slope of data-point pairs and the intercept to the median value for data points computed using the median slope. Theil-Sens is more robust against the presence of noise.
The weighting method is controlled by "wmode":
x | - input vector of x coordinates |
y | - input vector of y coordinates |
w | - input vector of weights |
m | - on return, the slope value |
b | - on return, the intercept value |
wmode | - weight mode |
Definition at line 104 of file MathUtil.cxx.
References ana::assert(), dx, dy, find_median(), MECModelEnuComparisons::i, calib::j, getGoodRuns4SAM::n, sort_pair_by_first(), std::sqrt(), and w.
Referenced by bpfit::TrackBasis::FindAxis(), and ipow().
void util::LinFitUnweighted | ( | const std::vector< double > & | x, |
const std::vector< double > & | y, | ||
double & | m, | ||
double & | c | ||
) |
Simplified version of LinFit.
All weights are assumed 1. In the absence of ability to weight, the returned chi-square doesn't mean much and is omitted.
Definition at line 8 of file MathUtil.cxx.
References ana::assert(), d, and MECModelEnuComparisons::i.
Referenced by novaddt::ClusterAna::analyze(), lem::MakePID::AvgAndFit(), novaddt::NuESelect::filter(), ipow(), and pythag().
def util.make_composition | ( | name, | |
fractions, | |||
compositions | |||
) |
Definition at line 46 of file util.py.
References elem_frac_total().
Referenced by air.air_composition(), barite.barite_composition(), fdbedrock.fdbedrock_composition(), fdbermrock.fdbermrock_composition(), glue.glue_composition(), pvc.pvc_composition(), snow.snow_composition(), and soil.soil_composition().
def util.print_composition | ( | composition | ) |
Definition at line 55 of file util.py.
References elem_frac_total(), novadaq::HexUtils.format(), and print.
Referenced by printscintfd.scintfd_composition().
|
inline |
2D Euclidean distance
Definition at line 29 of file MathUtil.h.
References sqr(), and std::sqrt().
Referenced by ana::KrigeKernel::AddPoint(), comi::CosmicMetrics::analyze(), mcchk::CosmicAna::analyze(), align::Alignment::analyze(), mcchk::LeptonAna::analyze(), earms::ElasticArmsValidate::analyze(), comi::NearlineAna::analyze(), mono::Monopole::analyze(), fuzz::FuzzyKValidate::analyze(), geo::AverageCellPathLength(), numue::NumuEAna::beginRun(), hough::Hough2P::BuildMap(), hough::MultiHough2P::BuildMap(), slid::ParticleIDAlg::CalcTrkHitPath(), geo::GeometryBase::CountCellsOnLine(), geo::GeometryBase::DEdge(), lem::DistanceMap::DistFunc(), me::TrkME::DistToTrk(), comi::Leana::DumpMuon(), lem::EventSummary::EventSummary(), sn::SupernovaAna::FillPlaneSeperations(), filter::Filter::FillTrackVariables(), comi::Leana::FindClosestMuon(), dt::DiscreteTracker::FindVertex(), dt::ViewMerger::FindVertex(), xsrec::MakeXSecCCPi0Inc::GetBPI(), evd::RecoBaseDrawer::GetClusterOutlinesConvexHull(), tdslicer::TDSlicer::GetDist(), nerd::NERDProng::HitToHitDistance(), me::MEFinder::HitToHitDistance(), geo::InitializePathTable(), ipow(), calib::PCHitsList::IsGoodTrack(), osc::EarthModel::LineProfile(), fuzz::FuzzyKMeanAlg::MakeAngles(), geo::GeometryBase::MassBetweenPoints(), fuzz::ViewMatchAlg::Matching(), nerd::ViewMatchAlg::Matching(), geo::GeometryBase::MaterialsBetweenPoints(), numue::NumuEAlg::NumuEAlg(), ana::KrigeKernel::operator()(), mcchk::ShowerAnaCheck::PointLineDistance(), nussand::FillNusSandbox::produce(), jmshower::JMTrackMerge::produce(), comi::Cana::produce(), photrans::PhotonTransport::produce(), jmshower::JMClusterMerge::produce(), hough::MultiHough2P::RefinePeak(), hough::Hough2P::RhoTheta(), hough::MultiHough2P::RhoTheta(), hough::MultiHoughT::Scrub(), earms::ElasticArmsHS::Scrub(), vdt::VertexDT::Scrub(), fuzz::FuzzyKVertex::Scrub(), trk::RLFit::SeedWeights(), photrans::ImprovedTransport::StepAlongHit(), dt::ViewMerger::TotalChargePerView(), htk::Track3D::Track3D(), mono::Track3D::Track3D(), and me::MEFinder::TrkMEDist().
|
inline |
3D Euclidean distance
Definition at line 35 of file MathUtil.h.
References plot_validation_datamc::c, LinFit(), LinFitUnweighted(), m, sqr(), std::sqrt(), w, submit_syst::x, and submit_syst::y.
|
inline |
Definition at line 21 of file ROOTHelpers.h.
References dirName, galleryMaker::ext, runNovaSAM::gErrorIgnoreLevel, and string.
Referenced by drawSystsShiftingNDdata(), and EHadVisMECpairs().
|
inline |
Replacement for operator=() making it clear that you're 'casting' across double-stan::math::var boundary.
Definition at line 40 of file StanUtils.h.
References stan::math::var::val().
|
inline |
Definition at line 41 of file StanUtils.h.
|
inline |
Definition at line 42 of file StanUtils.h.
|
inline |
Definition at line 45 of file StanUtils.h.
|
static |
More efficient square function than pow(x,2)
Definition at line 23 of file MathUtil.h.
References submit_syst::x.
Referenced by ana::KrigeKernel::AddPoint(), novaddt::ClusterAna::analyze(), align::Alignment::analyze(), ana::AutoPlaceLegend(), ana::CalcChi2(), cc(), ana::Dmsq32Constraint::ChiSq(), ana::ReactorExperiment::ChiSq(), ana::GaussianConstraint::ChiSq(), ana::SolarConstraints::ChiSq(), ana::AtmConstraint::ChiSq(), ana::Ssth23Constraint::ChiSq(), ana::ComparisonTableNbins(), ana::TwoSampleDecomp::Decomp(), calib::BetheBlochAnalytic::dEdx(), lem::DistanceMap::DistanceMap(), ana::Hist::Divide(), geo::DsqrToLine(), ana::ErrorBarChart(), tf::HoughScore::Eval(), FCCorrectSlice(), tdslicer::TDSlicer::FillDists(), hv::HoughVertexAlg::FillMaps(), novaddt::NuESelect::filter(), calib::AttenFit::FitQuality(), calib::AttenuationFit::FitQuality(), ana::PredictionInterp::FitRatios(), trk::CosmicTrackAlg::FitView(), trk::WindowTrackingAlg::FitWindow(), lem::dec::Cut::FOM(), ana::Hist::FromDirectory(), ana::FitSinSq2Theta13::GetValue(), ana::FitSinSqTheta23::GetValue(), FitSinSqTheta23UO::GetValue(), ana::FitSinSqTheta23UpperOctant::GetValue(), FitSinSqTheta23LO::GetValue(), ana::FitSinSqTheta23LowerOctant::GetValue(), ana::FitSinSq2Theta23CPT::GetValue(), ana::FitSinSqTheta13Sterile::GetValue(), ana::FitSinSq2Theta23::GetValue(), ana::FitSinSq2Theta13Sterile::GetValue(), ana::FitSinSqTheta23CPT::GetValue(), ana::FitSinSqTheta23Sterile::GetValue(), ana::FitSinSq2Theta13CPT::GetValue(), ana::FitSinSqTheta14Sterile::GetValue(), ana::FitSinSq2Theta12CPT::GetValue(), FitSinSqTheta23MaxMix::GetValue(), ana::FitTanSqTheta12::GetValue(), ana::FitSinSqTheta24Sterile::GetValue(), ana::FitSinSq2Theta12::GetValue(), ana::FitSinSqTheta34Sterile::GetValue(), FitSinSqTheta23LowerOctant::GetValue(), FitSinSqTheta23UpperOctant::GetValue(), ana::MINERvA_MEC_Wgt_Var::GetWeight(), ana::Spectrum::Integral(), ipow(), osc::EarthModel::LineProfile(), geo::LinFitMinDperp(), test::LogGauss(), ana::T2KToyExperiment::LogL(), test::GaussQuadExperiment::LogLikelihood(), MakeStackNME(), hough::Hough2P::Map(), hough::MultiHough2P::Map(), monoprob(), calib::BetheBlochAnalytic::MPV(), ana::Hist::Multiply(), ana::NeutronMass(), ana::IConstrainedFitVar::Penalty(), plot_3flavor_withsysts(), ana::PointDistanceToBox(), mcchk::ShowerAnaCheck::PointLineDistance(), ana::PrintOscilationParameters(), jmshower::JMTrackMerge::produce(), numusand::FillSandbox::produce(), lem::MakePID::produce(), cosrej::MakeNueCosRej::produce(), pythag(), ana::RefineSeeds(), ana::MCMCSamples::RunDiagnostics(), ana::SummedSyst::Shift(), ana::PredictionInterp::ShiftBins(), ana::SimpleFOM(), ncs::NCAna::SimpleOscProb(), lem::Library::SimpleSurvivalProb(), lem::SimpleSurvivalProb(), test_ana(), test_stanfit_statsonly(), test_stanfit_withsysts(), lem::dec::Forest::Train(), lem::dec::Forest::TrainSingleTransformed(), calib::AttenFit::TruncatedMeanProfile(), calib::AttenuationFit::TruncatedMeanProfile(), and demo::DemoSyst1::TruthShift().
void util::TimeSlice | ( | const std::vector< art::Ptr< rawdata::RawDigit > > & | d, |
unsigned int | tdcwindow, | ||
unsigned int | nhit, | ||
unsigned int | nhitx, | ||
unsigned int | nhity, | ||
std::vector< RawSlice > & | slice | ||
) |
Find windows in time that have significant activity in the detector.
d | - The full raw digit list to consider |
dt_tdc | - Sliding window size in NOvA clock ticks (64 MHz) |
nhit | - Total number of hits to look for in window |
nhitx | - Number of hits required in x view |
nhity | - Number of hits required in y view |
slice | - On output, the start and end indicies of the time windows |
Note: d must be time sorted on input. See "TimeSort" above.
Find time windows with significant hit activity
Definition at line 111 of file RawUtil.cxx.
References CountXY(), d, MECModelEnuComparisons::i, calib::j, demo1::nhit, and moon_position_table_new3::second.
Referenced by comi::Leana::analyze(), comi::FEBFlash::FEBTimeSlice(), and comi::Cana::produce().
void util::TimeSort | ( | std::vector< art::Ptr< rawdata::RawDigit > > & | d | ) |
Arrange the list of raw hits in time order (early to late)
d | : The list of digits to be sorted. Sorted on output. |
Sort the list of digits to be in increasing time order, earliest to lattest
Definition at line 31 of file RawUtil.cxx.
References d, and digi_sort().
Referenced by comi::Leana::analyze(), comi::FEBFlash::FEBTimeSlice(), comi::FEBFlash::FilterFEBFlash(), FilterFEBFlash(), and comi::Cana::produce().
def util.tot_fractions | ( | fractions | ) |
def util.tot_weight | ( | compos | ) |
def util.zovera | ( | elem | ) |
list util.elemlist |
const int util::kBeamWindowBadPeriodMicroSec |
Two windows to consider here.
Definition at line 89 of file NuMITimeParams.h.
const int util::kBeamWindowMaxMicroSec = 229 |
Definition at line 50 of file NuMITimeParams.h.
Referenced by generate_fd_fake_events().
const int util::kBeamWindowMicroSec = kBeamWindowMaxMicroSec - kBeamWindowMinMicroSec |
How long is the beam window?
Definition at line 81 of file NuMITimeParams.h.
const int util::kBeamWindowMinMicroSec = 217 |
Definition at line 49 of file NuMITimeParams.h.
Referenced by generate_fd_fake_events().
const int util::kBeamWindowPaddingMicroSec = 9 |
Definition at line 47 of file NuMITimeParams.h.
const int util::kBeamWindowShiftedMaxMicroSec = kBeamWindowMaxMicroSec + kPeakShiftMicroSec |
Definition at line 67 of file NuMITimeParams.h.
const int util::kBeamWindowShiftedMinMicroSec = kBeamWindowMinMicroSec + kPeakShiftMicroSec |
Definition at line 66 of file NuMITimeParams.h.
const int util::kLastBadTimingRun = 17945 |
Definition at line 77 of file NuMITimeParams.h.
Referenced by Exposure().
const int util::kMaxTimingSidebandAfterMicroSec = 475 |
Definition at line 60 of file NuMITimeParams.h.
Referenced by generate_fd_fake_events().
const int util::kMaxTimingSidebandBeforeMicroSec = kBeamWindowMinMicroSec - kBeamWindowPaddingMicroSec |
Definition at line 55 of file NuMITimeParams.h.
const int util::kMaxTimingSidebandBeforeShiftedWindowMicroSec = kBeamWindowShiftedMinMicroSec - kBeamWindowPaddingMicroSec |
Definition at line 71 of file NuMITimeParams.h.
const int util::kMinTimingSidebandAfterMicroSec = kBeamWindowMaxMicroSec + kBeamWindowPaddingMicroSec |
Definition at line 59 of file NuMITimeParams.h.
Referenced by generate_fd_fake_events().
const int util::kMinTimingSidebandAfterShiftedWindowMicroSec = kBeamWindowShiftedMaxMicroSec + kBeamWindowPaddingMicroSec |
Definition at line 72 of file NuMITimeParams.h.
const int util::kMinTimingSidebandBeforeMicroSec = 25 |
Definition at line 54 of file NuMITimeParams.h.
const int util::kPeakShiftMicroSec = +64 |
Definition at line 63 of file NuMITimeParams.h.
const int util::kTimingSidebandBadPeriodMicroSec |
Two beam windows to cut out here.
Definition at line 94 of file NuMITimeParams.h.
const int util::kTimingSidebandMicroSec |
How long is the part of the spill far from the start and end, and also not in the beam window?
Definition at line 84 of file NuMITimeParams.h.