StripStat Class Reference

#include <StripSRListModule.h>

List of all members.

Classes

struct  fStripStats

Public Member Functions

 StripStat ()
virtual ~StripStat ()
void Print ()
void Add (const RawChannelId &, Bool_t)

Public Attributes

Bool_t fDoNoiseNear
Bool_t fDoNoiseStats
Double_t fNearNoiseADC

Private Attributes

std::map< RawChannelId,
fStripStats
fNearStripStats

Detailed Description

Definition at line 29 of file StripSRListModule.h.


Constructor & Destructor Documentation

StripStat::StripStat (  ) 

Definition at line 223 of file StripSRListModule.cxx.

00223                     : 
00224     fDoNoiseNear(true), fDoNoiseStats(false), fNearNoiseADC(40)
00225 {
00226 
00227 }

StripStat::~StripStat (  )  [virtual]

Definition at line 228 of file StripSRListModule.cxx.

00229 {
00230 
00231 }


Member Function Documentation

void StripStat::Add ( const RawChannelId rcid,
Bool_t  noise 
)

Definition at line 232 of file StripSRListModule.cxx.

References fNearStripStats.

Referenced by AlgStripSRList::PassNearNoise().

00233 {
00234 
00235         if (fNearStripStats.find(rcid) == fNearStripStats.end() )
00236         {
00237                 // is this paranoia?
00238                 fNearStripStats[rcid].all=0;
00239                 fNearStripStats[rcid].noise=0;
00240         }
00241 
00242         fNearStripStats[rcid].all++;
00243         if (noise) fNearStripStats[rcid].noise++;
00244 }

void StripStat::Print (  ) 

Definition at line 246 of file StripSRListModule.cxx.

References StripStat::fStripStats::all, fDoNoiseNear, fDoNoiseStats, fNearNoiseADC, fNearStripStats, RawChannelId::GetCrate(), RawChannelId::GetMaster(), RawChannelId::GetMenu(), RawChannelId::GetMinder(), Msg::kInfo, MSG, and StripStat::fStripStats::noise.

Referenced by SliceFromChopModule::EndJob(), and StripSRListModule::EndJob().

00247 {
00248 
00249         MSG("StripSR",Msg::kInfo) <<"\n NearDet Strip Noise Filtering="<<
00250                 fDoNoiseNear<< "\n"<<endl;
00251         if (!fDoNoiseStats) {
00252                 MSG("StripSR", Msg::kInfo) << "DoNoiseStats=false. No"<<
00253                 " NearDet noise statistics in StripSRListModule.\n"
00254                 <<"  NearNoiseADC="<<fNearNoiseADC <<endl;
00255                 return;
00256         }
00257 
00258         MSG("StripSR", Msg::kInfo) << 
00259         "----------------------------------------------------------------\n"
00260         << "     Strips Cut by StripSRListModule::CleanNoiseNear\n" 
00261         << "      single digits with ADC<"<<fNearNoiseADC<< " \n" 
00262         <<"     Stripends with more than 10%% cut out of at least 10 strips:\n" <<
00263         "----------------------------------------------------------------\n"
00264                 <<endl;
00265         MSG("StripSR", Msg::kInfo) << setw(10)<< "Crate" << 
00266                                 setw(10) <<"Master"<<
00267                                 setw(10) <<"MasterCh"<<
00268                                 setw(10) <<"Menu"<<
00269                                 setw(10) <<"Total"<<
00270                                 setw(10) <<"Cut"<<
00271                                 setw(10) <<"Fraction"<<endl;
00272 
00273         for (map<RawChannelId,fStripStats>::iterator itmap=
00274                         fNearStripStats.begin();
00275                         itmap != fNearStripStats.end();
00276                         itmap++)
00277         {
00278 
00279                 RawChannelId rcid=itmap->first;
00280                 fStripStats stats=itmap->second;
00281                 if ( 9 < stats.noise) {
00282                                 Float_t fraction=(Float_t) 
00283                                                 stats.noise/stats.all;
00284                                 if (fraction > 0.1)
00285                                 MSG("StripSR", Msg::kInfo) 
00286                                 << setw(10)<< (rcid.GetCrate())<< 
00287                                 setw(10) <<  (rcid.GetMaster())<<
00288                                 setw(10) <<  (rcid.GetMinder())<<
00289                                 setw(10) <<  (rcid.GetMenu())<<
00290                                 setw(10) <<  stats.all<<
00291                                 setw(10) <<stats.noise<<
00292                                 setw(10) << fraction
00293                                 <<endl;
00294                 }
00295 
00296         } // itmap
00297 
00298         MSG("StripSR", Msg::kInfo) << 
00299         "----------------------------------------------------------------\n"
00300         <<
00301         "----------------------------------------------------------------\n"
00302                 <<endl;
00303 
00304 
00305 }


Member Data Documentation

Definition at line 39 of file StripSRListModule.h.

Referenced by AlgStripSRList::FindWhiteBoardStats(), and Print().

Definition at line 40 of file StripSRListModule.h.

Referenced by AlgStripSRList::FindWhiteBoardStats(), and Print().

Definition at line 41 of file StripSRListModule.h.

Referenced by AlgStripSRList::FindWhiteBoardStats(), and Print().

Definition at line 49 of file StripSRListModule.h.

Referenced by Add(), and Print().


The documentation for this class was generated from the following files:

Generated on 14 Dec 2017 for loon by  doxygen 1.6.1