CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
List of all members | Public Member Functions | Private Member Functions | Private Attributes
PedsFullNoiseHistosUsingDb Class Reference

#include <PedsFullNoiseHistosUsingDb.h>

Inheritance diagram for PedsFullNoiseHistosUsingDb:
CommissioningHistosUsingDb PedsFullNoiseHistograms CommissioningHistograms CommissioningHistograms

Public Member Functions

 PedsFullNoiseHistosUsingDb (const edm::ParameterSet &pset, DQMStore *, SiStripConfigDb *const )
 
virtual void uploadConfigurations ()
 
virtual ~PedsFullNoiseHistosUsingDb ()
 
- Public Member Functions inherited from CommissioningHistosUsingDb
 CommissioningHistosUsingDb (SiStripConfigDb *const, sistrip::RunType=sistrip::UNDEFINED_RUN_TYPE)
 
bool doUploadAnal () const
 
void doUploadAnal (bool)
 
bool doUploadConf () const
 
void doUploadConf (bool)
 
void uploadToConfigDb ()
 
virtual ~CommissioningHistosUsingDb ()
 
- Public Member Functions inherited from CommissioningHistograms
 CommissioningHistograms (const edm::ParameterSet &pset, DQMStore *const, const sistrip::RunType &)
 
 CommissioningHistograms ()
 
virtual void configure (const edm::ParameterSet &, const edm::EventSetup &)
 
void createCollations (const std::vector< std::string > &)
 
virtual void createSummaryHisto (const sistrip::Monitorable &, const sistrip::Presentation &, const std::string &top_level_dir, const sistrip::Granularity &)
 
void extractHistograms (const std::vector< std::string > &)
 
virtual void printSummary ()
 
void remove (std::string pattern="")
 
void save (std::string &filename, uint32_t run_number=0)
 
virtual ~CommissioningHistograms ()
 
- Public Member Functions inherited from PedsFullNoiseHistograms
void histoAnalysis (bool debug)
 
 PedsFullNoiseHistograms (const edm::ParameterSet &pset, DQMStore *)
 
void printAnalyses ()
 
virtual ~PedsFullNoiseHistograms ()
 

Private Member Functions

void create (SiStripConfigDb::AnalysisDescriptionsV &, Analysis)
 
void update (SiStripConfigDb::FedDescriptionsRange)
 

Private Attributes

bool addBadStrips_
 
bool disableBadStrips_
 
float highThreshold_
 
bool keepStripsDisabled_
 
float lowThreshold_
 

Additional Inherited Members

- Public Types inherited from CommissioningHistograms
typedef std::map< uint32_t,
CommissioningAnalysis * > 
Analyses
 
typedef Analyses::iterator Analysis
 
typedef SummaryPlotFactory
< CommissioningAnalysis * > 
Factory
 
typedef std::map< uint32_t,
uint32_t > 
FedToFecMap
 
typedef std::vector< Histo * > Histos
 
typedef std::map< uint32_t,
Histos
HistosMap
 
- Static Public Member Functions inherited from CommissioningHistograms
static void copyCustomInformation (DQMStore *const, const std::vector< std::string > &)
 
static void getContents (DQMStore *const, std::vector< std::string > &)
 
static uint32_t runNumber (DQMStore *const, const std::vector< std::string > &)
 
static sistrip::RunType runType (DQMStore *const, const std::vector< std::string > &)
 
- Protected Member Functions inherited from CommissioningHistosUsingDb
virtual void addDcuDetIds ()
 
void buildDetInfo ()
 
SiStripFedCabling *const cabling () const
 
virtual void createAnalyses (SiStripConfigDb::AnalysisDescriptionsV &)
 
SiStripConfigDb *const db () const
 
std::pair< std::string, DetInfodetInfo (const SiStripFecKey &)
 
bool deviceIsPresent (const SiStripFecKey &)
 
void uploadAnalyses ()
 
- Protected Member Functions inherited from CommissioningHistograms
DQMStore *const bei () const
 
void clearHistosMap ()
 
Analysesdata ()
 
Factory *const factory ()
 
TH1 * histogram (const sistrip::Monitorable &, const sistrip::Presentation &, const sistrip::View &, const std::string &directory, const uint32_t &xbins, const float &xlow=1.*sistrip::invalid_, const float &xhigh=1.*sistrip::invalid_)
 
const HistosMaphistos () const
 
const FedToFecMapmapping () const
 
void printHistosMap ()
 
const edm::ParameterSetpset () const
 
const sistrip::RunTypetask () const
 
- Protected Attributes inherited from CommissioningHistograms
std::auto_ptr< Factoryfactory_
 

Detailed Description

Definition at line 9 of file PedsFullNoiseHistosUsingDb.h.

Constructor & Destructor Documentation

PedsFullNoiseHistosUsingDb::PedsFullNoiseHistosUsingDb ( const edm::ParameterSet pset,
DQMStore bei,
SiStripConfigDb * const  db 
)

Definition at line 15 of file PedsFullNoiseHistosUsingDb.cc.

References addBadStrips_, disableBadStrips_, edm::ParameterSet::getParameter(), highThreshold_, keepStripsDisabled_, LogTrace, lowThreshold_, sistrip::mlDqmClient_, and CommissioningHistograms::pset().

18  : CommissioningHistograms( pset.getParameter<edm::ParameterSet>("PedsFullNoiseParameters"),
19  bei,
23  PedsFullNoiseHistograms( pset.getParameter<edm::ParameterSet>("PedsFullNoiseParameters"),
24  bei )
25 {
27  << "[PedsFullNoiseHistosUsingDb::" << __func__ << "]"
28  << " Constructing object...";
29  highThreshold_ = this->pset().getParameter<double>("HighThreshold");
30  lowThreshold_ = this->pset().getParameter<double>("LowThreshold");
32  << "[PedsFullNoiseHistosUsingDb::" << __func__ << "]"
33  << " Set FED zero suppression high/low threshold to "
34  << highThreshold_ << "/" << lowThreshold_;
35  disableBadStrips_ = this->pset().getParameter<bool>("DisableBadStrips");
36  keepStripsDisabled_ = this->pset().getParameter<bool>("KeepStripsDisabled");
37  addBadStrips_ = this->pset().getParameter<bool>("AddBadStrips");
39  << "[PedestalsHistosUsingDb::" << __func__ << "]"
40  << " Disabling strips: " << disableBadStrips_
41  << " ; keeping previously disabled strips: " << keepStripsDisabled_;
42 }
T getParameter(std::string const &) const
const edm::ParameterSet & pset() const
static const char mlDqmClient_[]
PedsFullNoiseHistograms(const edm::ParameterSet &pset, DQMStore *)
#define LogTrace(id)
PedsFullNoiseHistosUsingDb::~PedsFullNoiseHistosUsingDb ( )
virtual

Definition at line 46 of file PedsFullNoiseHistosUsingDb.cc.

References LogTrace, and sistrip::mlDqmClient_.

46  {
48  << "[PedsFullNoiseHistosUsingDb::" << __func__ << "]"
49  << " Destructing object...";
50 }
static const char mlDqmClient_[]
#define LogTrace(id)

Member Function Documentation

void PedsFullNoiseHistosUsingDb::create ( SiStripConfigDb::AnalysisDescriptionsV desc,
Analysis  analysis 
)
privatevirtual

Reimplemented from CommissioningHistosUsingDb.

Definition at line 278 of file PedsFullNoiseHistosUsingDb.cc.

References CommissioningHistosUsingDb::db(), SiStripConfigDb::dbParams(), PedsFullNoiseAnalysis::dead(), benchmark_cfg::errors, CommissioningAnalysis::fecKey(), CommissioningAnalysis::fedKey(), CommissioningAnalysis::getErrorCodes(), SiStripFecKey::i2cAddr(), PedsFullNoiseAnalysis::isValid(), PedsFullNoiseAnalysis::noiseMax(), PedsFullNoiseAnalysis::noiseMean(), PedsFullNoiseAnalysis::noiseMin(), PedsFullNoiseAnalysis::noiseSpread(), PedsFullNoiseAnalysis::noisy(), SiStripDbParams::partitions(), PedsFullNoiseAnalysis::pedsMax(), PedsFullNoiseAnalysis::pedsMean(), PedsFullNoiseAnalysis::pedsMin(), PedsFullNoiseAnalysis::pedsSpread(), PedsFullNoiseAnalysis::rawMax(), PedsFullNoiseAnalysis::rawMean(), PedsFullNoiseAnalysis::rawMin(), PedsFullNoiseAnalysis::rawSpread(), and tmp.

279  {
280 
281  PedsFullNoiseAnalysis* anal = dynamic_cast<PedsFullNoiseAnalysis*>( analysis->second );
282  if ( !anal ) { return; }
283 
284  SiStripFecKey fec_key( anal->fecKey() );
285  SiStripFedKey fed_key( anal->fedKey() );
286 
287  for ( uint16_t iapv = 0; iapv < 2; ++iapv ) {
288 
289  // Create description
290  PedestalsAnalysisDescription* tmp;
291  tmp = new PedestalsAnalysisDescription(
292  anal->dead()[iapv],
293  anal->noisy()[iapv],
294  anal->pedsMean()[iapv],
295  anal->pedsSpread()[iapv],
296  anal->noiseMean()[iapv],
297  anal->noiseSpread()[iapv],
298  anal->rawMean()[iapv],
299  anal->rawSpread()[iapv],
300  anal->pedsMax()[iapv],
301  anal->pedsMin()[iapv],
302  anal->noiseMax()[iapv],
303  anal->noiseMin()[iapv],
304  anal->rawMax()[iapv],
305  anal->rawMin()[iapv],
306  fec_key.fecCrate(),
307  fec_key.fecSlot(),
308  fec_key.fecRing(),
309  fec_key.ccuAddr(),
310  fec_key.ccuChan(),
311  SiStripFecKey::i2cAddr( fec_key.lldChan(), !iapv ),
312  db()->dbParams().partitions().begin()->second.partitionName(),
313  db()->dbParams().partitions().begin()->second.runNumber(),
314  anal->isValid(),
315  "",
316  fed_key.fedId(),
317  fed_key.feUnit(),
318  fed_key.feChan(),
319  fed_key.fedApv()
320  );
321 
322  // Add comments
323  typedef std::vector<std::string> Strings;
324  Strings errors = anal->getErrorCodes();
325  Strings::const_iterator istr = errors.begin();
326  Strings::const_iterator jstr = errors.end();
327  for ( ; istr != jstr; ++istr ) { tmp->addComments( *istr ); }
328 
329  // Store description
330  desc.push_back( tmp );
331 
332  }
333 
334 }
const VFloat & rawMean() const
const uint32_t & fedKey() const
A container class for generic run and event-related info, information required by the commissioning a...
Definition: SiStripFedKey.h:57
std::vector< std::string > Strings
Definition: MsgTools.h:18
const VFloat & noiseMax() const
const uint16_t & i2cAddr() const
Histogram-based analysis for pedestal run.
const VVInt & noisy() const
Utility class that identifies a position within the strip tracker control structure, down to the level of an APV25.
Definition: SiStripFecKey.h:46
const VFloat & noiseMin() const
const_iterator_range partitions() const
const VFloat & pedsSpread() const
const VFloat & pedsMax() const
const VFloat & pedsMean() const
const VFloat & pedsMin() const
const uint32_t & fecKey() const
const VFloat & rawMin() const
const VFloat & rawSpread() const
const VFloat & rawMax() const
const SiStripDbParams & dbParams() const
std::vector< std::vector< double > > tmp
Definition: MVATrainer.cc:100
SiStripConfigDb *const db() const
const VFloat & noiseSpread() const
const VString & getErrorCodes() const
const VVInt & dead() const
const VFloat & noiseMean() const
void PedsFullNoiseHistosUsingDb::update ( SiStripConfigDb::FedDescriptionsRange  feds)
private

Definition at line 88 of file PedsFullNoiseHistosUsingDb.cc.

References addBadStrips_, sistrip::APVS_PER_FEDCH, CommissioningHistosUsingDb::cabling(), FedChannelConnection::ccuAddr(), FedChannelConnection::ccuChan(), results_mgr::conn, SiStripFedCabling::connection(), gather_cfg::cout, CommissioningHistograms::data(), PedsFullNoiseAnalysis::dead(), CommissioningHistosUsingDb::deviceIsPresent(), disableBadStrips_, FedChannelConnection::fecCrate(), SiStripFedKey::feChan(), FedChannelConnection::fecRing(), FedChannelConnection::fecSlot(), FedChannelConnection::fedCh(), sistrip::FEDCH_PER_FED, SiStripFedKey::fedChannel(), SiStripFedKey::fedId(), FedChannelConnection::fedId(), CommissioningAnalysis::fedKey(), SiStripFedKey::feUnit(), spr::find(), highThreshold_, sistrip::invalid_, edm::isDebugEnabled(), keepStripsDisabled_, SiStripKey::key(), FedChannelConnection::lldChannel(), LogTrace, lowThreshold_, sistrip::mlDqmClient_, PedsFullNoiseAnalysis::noise(), PedsFullNoiseAnalysis::noisy(), PedsFullNoiseAnalysis::peds(), PedsFullNoiseAnalysis::pedsMin(), and groupFilesInBlocks::temp.

Referenced by progressbar.ProgressBar::__next__(), relval_steps.Matrix::__setitem__(), relval_steps.Steps::__setitem__(), Vispa.Gui.VispaWidget.VispaWidget::autosize(), Vispa.Views.LineDecayView.LineDecayContainer::createObject(), Vispa.Views.LineDecayView.LineDecayContainer::deselectAllObjects(), Vispa.Gui.VispaWidgetOwner.VispaWidgetOwner::deselectAllWidgets(), Vispa.Gui.VispaWidget.VispaWidget::enableAutosizing(), progressbar.ProgressBar::finish(), Vispa.Gui.MenuWidget.MenuWidget::leaveEvent(), Vispa.Gui.VispaWidgetOwner.VispaWidgetOwner::mouseMoveEvent(), Vispa.Gui.MenuWidget.MenuWidget::mouseMoveEvent(), Vispa.Views.LineDecayView.LineDecayContainer::mouseMoveEvent(), Vispa.Gui.VispaWidgetOwner.VispaWidgetOwner::mouseReleaseEvent(), Vispa.Views.LineDecayView.LineDecayContainer::objectMoved(), relval_steps.Steps::overwrite(), Vispa.Views.LineDecayView.LineDecayContainer::removeObject(), Vispa.Gui.ConnectableWidget.ConnectableWidget::removePorts(), Vispa.Gui.FindDialog.FindDialog::reset(), Vispa.Gui.PortConnection.PointToPointConnection::select(), Vispa.Gui.VispaWidget.VispaWidget::select(), Vispa.Views.LineDecayView.LineDecayContainer::select(), Vispa.Gui.VispaWidget.VispaWidget::setText(), Vispa.Gui.VispaWidget.VispaWidget::setTitle(), Vispa.Gui.ZoomableWidget.ZoomableWidget::setZoom(), Vispa.Views.LineDecayView.LineDecayContainer::setZoom(), Vispa.Gui.PortConnection.PointToPointConnection::updateConnection(), and uploadConfigurations().

88  {
89 
90  // Iterate through feds and update fed descriptions
91  uint16_t updated = 0;
92  SiStripConfigDb::FedDescriptionsV::const_iterator ifed;
93  for ( ifed = feds.begin(); ifed != feds.end(); ifed++ ) {
94 
95  for ( uint16_t ichan = 0; ichan < sistrip::FEDCH_PER_FED; ichan++ ) {
96 
97  // Build FED and FEC keys
98  const FedChannelConnection& conn = cabling()->connection( (*ifed)->getFedId(), ichan );
99  if ( conn.fecCrate()== sistrip::invalid_ ||
100  conn.fecSlot() == sistrip::invalid_ ||
101  conn.fecRing() == sistrip::invalid_ ||
102  conn.ccuAddr() == sistrip::invalid_ ||
103  conn.ccuChan() == sistrip::invalid_ ||
104  conn.lldChannel() == sistrip::invalid_ ) { continue; }
105 
106  SiStripFedKey fed_key( conn.fedId(),
107  SiStripFedKey::feUnit( conn.fedCh() ),
108  SiStripFedKey::feChan( conn.fedCh() ) );
109  SiStripFecKey fec_key( conn.fecCrate(),
110  conn.fecSlot(),
111  conn.fecRing(),
112  conn.ccuAddr(),
113  conn.ccuChan(),
114  conn.lldChannel() );
115 
116  // Locate appropriate analysis object
117  Analyses::const_iterator iter = data().find( fec_key.key() );
118  if ( iter != data().end() ) {
119 
120  PedsFullNoiseAnalysis* anal = dynamic_cast<PedsFullNoiseAnalysis*>( iter->second );
121  if ( !anal ) {
123  << "[PedsFullNoiseHistosUsingDb::" << __func__ << "]"
124  << " NULL pointer to analysis object!";
125  continue;
126  }
127 
128  // Determine the pedestal shift to apply
129  uint32_t pedshift = 127;
130  for ( uint16_t iapv = 0; iapv < sistrip::APVS_PER_FEDCH; iapv++ ) {
131  uint32_t pedmin = (uint32_t) anal->pedsMin()[iapv];
132  pedshift = pedmin < pedshift ? pedmin : pedshift;
133  }
134 
135  // Iterate through APVs and strips
136  for ( uint16_t iapv = 0; iapv < sistrip::APVS_PER_FEDCH; iapv++ ) {
137  for ( uint16_t istr = 0; istr < anal->peds()[iapv].size(); istr++ ) {
138 
139  // get the information on the strip as it was on the db
140  Fed9U::Fed9UAddress addr( ichan, iapv, istr );
141  Fed9U::Fed9UStripDescription temp = (*ifed)->getFedStrips().getStrip( addr );
142  if(temp.getDisable()) {
143  std::cout<<"Already Disabled: "<<conn.fecCrate()
144  <<" "<<conn.fecSlot()
145  <<" "<<conn.fecRing()
146  <<" "<<conn.ccuAddr()
147  <<" "<<conn.ccuChan()
148  <<" "<<conn.lldChannel()
149  <<" "<<iapv*128+istr<<std::endl;
150  }
151  // determine whether we need to disable the strip
152  bool disableStrip = false;
153  if ( addBadStrips_ ) {
154  disableStrip = temp.getDisable();
155  SiStripFedKey fed_key(anal->fedKey());
156  if(!disableStrip){
157  PedsFullNoiseAnalysis::VInt dead = anal->dead()[iapv];
158  if ( find( dead.begin(), dead.end(), istr ) != dead.end() ) {
159  disableStrip = true;
160  std::cout<<"Disabling Dead: "<<conn.fecCrate()
161  <<" "<<conn.fecSlot()
162  <<" "<<conn.fecRing()
163  <<" "<<conn.ccuAddr()
164  <<" "<<conn.ccuChan()
165  <<" "<<conn.lldChannel()
166  <<" "<<iapv*128+istr<<std::endl;
167  }
168  PedsFullNoiseAnalysis::VInt noisy = anal->noisy()[iapv];
169  if ( find( noisy.begin(), noisy.end(), istr ) != noisy.end() ) {
170  disableStrip = true;
171  std::cout<<"Disabling Noisy: "<<conn.fecCrate()
172  <<" "<<conn.fecSlot()
173  <<" "<<conn.fecRing()
174  <<" "<<conn.ccuAddr()
175  <<" "<<conn.ccuChan()
176  <<" "<<conn.lldChannel()
177  <<" "<<iapv*128+istr<<std::endl;
178  }
179  }
180  } else if ( keepStripsDisabled_ ) {
181  disableStrip = temp.getDisable();
182  } else if (disableBadStrips_) {
183  PedsFullNoiseAnalysis::VInt dead = anal->dead()[iapv];
184  if ( find( dead.begin(), dead.end(), istr ) != dead.end() ) {
185  disableStrip = true;
186  std::cout<<"Disabling Dead: "<<conn.fecCrate()
187  <<" "<<conn.fecSlot()
188  <<" "<<conn.fecRing()
189  <<" "<<conn.ccuAddr()
190  <<" "<<conn.ccuChan()
191  <<" "<<conn.lldChannel()
192  <<" "<<iapv*128+istr<<std::endl;
193  }
194  PedsFullNoiseAnalysis::VInt noisy = anal->noisy()[iapv];
195  if ( find( noisy.begin(), noisy.end(), istr ) != noisy.end() ) {
196  disableStrip = true;
197  std::cout<<"Disabling Noisy: "<<conn.fecCrate()
198  <<" "<<conn.fecSlot()
199  <<" "<<conn.fecRing()
200  <<" "<<conn.ccuAddr()
201  <<" "<<conn.ccuChan()
202  <<" "<<conn.lldChannel()
203  <<" "<<iapv*128+istr<<std::endl;
204  }
205  }
206 
207  Fed9U::Fed9UStripDescription data( static_cast<uint32_t>( anal->peds()[iapv][istr]-pedshift ),
210  anal->noise()[iapv][istr],
211  disableStrip );
212 
213  std::stringstream ss;
214  if ( data.getDisable() && edm::isDebugEnabled() ) {
215  ss << "[PedsFullNoiseHistosUsingDb::" << __func__ << "]"
216  << " Disabling strip in Fed9UStripDescription object..." << std::endl
217  << " for FED id/channel and APV/strip : "
218  << fed_key.fedId() << "/"
219  << fed_key.fedChannel() << " "
220  << iapv << "/"
221  << istr << std::endl
222  << " and crate/FEC/ring/CCU/module : "
223  << fec_key.fecCrate() << "/"
224  << fec_key.fecSlot() << "/"
225  << fec_key.fecRing() << "/"
226  << fec_key.ccuAddr() << "/"
227  << fec_key.ccuChan() << std::endl
228  << " from ped/noise/high/low/disable : "
229  << static_cast<uint16_t>( temp.getPedestal() ) << "/"
230  << static_cast<uint16_t>( temp.getHighThreshold() ) << "/"
231  << static_cast<uint16_t>( temp.getLowThreshold() ) << "/"
232  << static_cast<uint16_t>( temp.getNoise() ) << "/"
233  << static_cast<uint16_t>( temp.getDisable() ) << std::endl;
234  }
235  (*ifed)->getFedStrips().setStrip( addr, data );
236  if ( data.getDisable() && edm::isDebugEnabled() ) {
237  ss << " to ped/noise/high/low/disable : "
238  << static_cast<uint16_t>( data.getPedestal() ) << "/"
239  << static_cast<uint16_t>( data.getHighThreshold() ) << "/"
240  << static_cast<uint16_t>( data.getLowThreshold() ) << "/"
241  << static_cast<uint16_t>( data.getNoise() ) << "/"
242  << static_cast<uint16_t>( data.getDisable() ) << std::endl;
243  LogTrace(mlDqmClient_) << ss.str();
244  }
245 
246  } // end loop on strips
247  } // end loop on apvs
248  updated++;
249 
250  } else {
251  if ( deviceIsPresent(fec_key) ) {
253  << "[PedsFullNoiseHistosUsingDb::" << __func__ << "]"
254  << " Unable to find pedestals/noise for FedKey/Id/Ch: "
255  << hex << setw(8) << setfill('0') << fed_key.key() << dec << "/"
256  << (*ifed)->getFedId() << "/"
257  << ichan
258  << " and device with FEC/slot/ring/CCU/LLD "
259  << fec_key.fecCrate() << "/"
260  << fec_key.fecSlot() << "/"
261  << fec_key.fecRing() << "/"
262  << fec_key.ccuAddr() << "/"
263  << fec_key.ccuChan() << "/"
264  << fec_key.channel();
265  }
266  }
267  }
268  }
269 
271  << "[PedsFullNoiseHistosUsingDb::" << __func__ << "]"
272  << " Updated FED pedestals/noise for "
273  << updated << " channels";
274 }
const uint16_t & fecSlot() const
bool isDebugEnabled()
const uint16_t & fecCrate() const
const uint32_t & fedKey() const
A container class for generic run and event-related info, information required by the commissioning a...
Definition: SiStripFedKey.h:57
const uint16_t & fedCh() const
bool deviceIsPresent(const SiStripFecKey &)
static const char mlDqmClient_[]
const FedChannelConnection & connection(uint16_t fed_id, uint16_t fed_ch) const
const VVFloat & peds() const
uint16_t lldChannel() const
void find(edm::Handle< EcalRecHitCollection > &hits, DetId thisDet, std::vector< EcalRecHitCollection::const_iterator > &hit, bool debug=false)
Definition: FindCaloHit.cc:7
const uint16_t & fedId() const
Histogram-based analysis for pedestal run.
const VVInt & noisy() const
Utility class that identifies a position within the strip tracker control structure, down to the level of an APV25.
Definition: SiStripFecKey.h:46
const uint16_t & fecRing() const
Class containning control, module, detector and connection information, at the level of a FED channel...
const uint16_t & ccuChan() const
const VFloat & pedsMin() const
const uint16_t & ccuAddr() const
#define LogTrace(id)
std::vector< uint16_t > VInt
const VVFloat & noise() const
const uint16_t & feUnit() const
static const uint16_t invalid_
Definition: Constants.h:17
static const uint16_t FEDCH_PER_FED
const uint16_t & feChan() const
tuple cout
Definition: gather_cfg.py:121
SiStripFedCabling *const cabling() const
const VVInt & dead() const
static const uint16_t APVS_PER_FEDCH
tuple conn
Definition: results_mgr.py:53
void PedsFullNoiseHistosUsingDb::uploadConfigurations ( )
virtual

Reimplemented from CommissioningHistosUsingDb.

Definition at line 54 of file PedsFullNoiseHistosUsingDb.cc.

References CommissioningHistosUsingDb::db(), CommissioningHistosUsingDb::doUploadConf(), SiStripConfigDb::getFedDescriptions(), LogTrace, sistrip::mlDqmClient_, update(), and SiStripConfigDb::uploadFedDescriptions().

54  {
56  << "[PedsFullNoiseHistosUsingDb::" << __func__ << "]";
57 
58  if ( !db() ) {
60  << "[PedsFullNoiseHistosUsingDb::" << __func__ << "]"
61  << " NULL pointer to SiStripConfigDb interface!"
62  << " Aborting upload...";
63  return;
64  }
65 
66  // Update FED descriptions with new peds/noise values
68  update( feds );
69  if ( doUploadConf() ) {
71  << "[PedsFullNoiseHistosUsingDb::" << __func__ << "]"
72  << " Uploading pedestals/noise to DB...";
75  << "[PedsFullNoiseHistosUsingDb::" << __func__ << "]"
76  << " Completed database upload of " << feds.size()
77  << " FED descriptions!";
78  } else {
80  << "[PedsFullNoiseHistosUsingDb::" << __func__ << "]"
81  << " TEST! No pedestals/noise values will be uploaded to DB...";
82  }
83 
84 }
void update(SiStripConfigDb::FedDescriptionsRange)
FedDescriptionsRange getFedDescriptions(std::string partition="")
FedDescriptions::range FedDescriptionsRange
static const char mlDqmClient_[]
#define LogTrace(id)
void uploadFedDescriptions(std::string partition="")
SiStripConfigDb *const db() const

Member Data Documentation

bool PedsFullNoiseHistosUsingDb::addBadStrips_
private

Definition at line 32 of file PedsFullNoiseHistosUsingDb.h.

Referenced by PedsFullNoiseHistosUsingDb(), and update().

bool PedsFullNoiseHistosUsingDb::disableBadStrips_
private

Definition at line 30 of file PedsFullNoiseHistosUsingDb.h.

Referenced by PedsFullNoiseHistosUsingDb(), and update().

float PedsFullNoiseHistosUsingDb::highThreshold_
private

Definition at line 28 of file PedsFullNoiseHistosUsingDb.h.

Referenced by PedsFullNoiseHistosUsingDb(), and update().

bool PedsFullNoiseHistosUsingDb::keepStripsDisabled_
private

Definition at line 31 of file PedsFullNoiseHistosUsingDb.h.

Referenced by PedsFullNoiseHistosUsingDb(), and update().

float PedsFullNoiseHistosUsingDb::lowThreshold_
private

Definition at line 29 of file PedsFullNoiseHistosUsingDb.h.

Referenced by PedsFullNoiseHistosUsingDb(), and update().