4 namespace MdMuonEstimatorAG {
7 fNBinWindowSize(nBinWindowSize),
8 fTraceSize(nTraceLength)
23 if (vModulePatternMatches.size()>0) {
32 for (std::vector<std::pair<unsigned int, unsigned int>>::const_iterator it = vModulePatternMatches.begin(); it != vModulePatternMatches.end(); ++it) {
33 const unsigned int tbin = it->second + 1;
34 hChannelsOn.AddBinContent(tbin,1);
45 for (
int i = 0; i <= hChannelsOn.GetNbinsX(); ++i) {
46 unsigned int ki = hChannelsOn.GetBinContent(i);
48 mu -= (double) nActiveCh * log(1. - (
double) ki/(double) nActiveCh);
49 nmu += log(1. - (
double) ki/(
double) nActiveCh) / log(1.-1./(
double) nActiveCh);
Module level reconstruction data. This class contains all data required by the muon reconstruction...
void SetSaturated(const bool sat)
double operator()(std::vector< std::pair< unsigned int, unsigned int >> &vModulePatternMatches, mevt::ModuleRecData &mRecData) const
Performs the counting.
void SetMeanMuons(const double m)
NBinStrategy(unsigned int nBinWindowSize, unsigned int fTraceSize)
Creates a functor.
void SetNumberOfEstimatedMuons(const double m)
Number of estimated muons in a module.
size_t GetSegmentation() const
unsigned int fNBinWindowSize