CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
SiStripSpyDisplayModule.cc
Go to the documentation of this file.
1 /* \file SiStripSpyDisplayModule.cc
2  * \brief File containing code for the SiStripMonitorFEDProcessing plugin module.
3  */
4 // -*- C++ -*-
5 //
6 // Package: SiStripMonitorHardware
7 // Class: SiStripSpyDisplayModule
8 //
9 // Standard
10 #include <memory>
11 #include <vector>
12 #include <iostream>
13 #include <string>
14 #include <sstream>
15 
16 // Framework include files
24 
25 // Needed for the SST cabling
29 
30 // Needed for the pedestal values
33 
34 // Needed for the noise values
37 
38 // For translating between FED key and det ID
40 
47 
48 // Needed for the FED raw data processing
52 
53 //for cabling
55 
56 // For plotting
59 #include "TH1S.h"
60 #include "TH1D.h"
61 
62 //
63 // constants, enums and typedefs
64 //
77 
78 //
79 // class declaration
80 //
81 
82 
95  public:
98 
99  private:
100  virtual void beginRun(const edm::Run&, const edm::EventSetup&) override;
101  virtual void beginJob() override ;
102  virtual void analyze(const edm::Event&, const edm::EventSetup&) override;
103  virtual void endJob() override ;
104 
105  Bool_t MakeRawDigiHist_(const edm::Handle< edm::DetSetVector<SiStripRawDigi> > & digi_handle,
106  uint32_t specifier,
107  const TFileDirectory & dir,
109 
111  uint32_t specifier,
112  const TFileDirectory & dir,
113  FEDSpyHistogramType type);
114 
115  Bool_t MakeDigiHist_( const edm::Handle< edm::DetSetVector<SiStripDigi> > & digi_handle,
116  uint32_t detID,
117  const TFileDirectory & dir,
118  FEDSpyHistogramType type);
119 
120  // ----------member data ---------------------------
121  std::vector<uint32_t> detIDs_;
122  //now from utility class
123  // edm::ESHandle<SiStripDetCabling> cabling_; //!< The Strip Tracker cabling object.
125 
126  // Data input labels
127  //===================
140 
153  //
154  // Output information
155  //====================
157 
158 
159 }; // end of SiStripSpyDisplayModule class
160 
161 
162 //
163 // static data member definitions
164 //
165 
166 using namespace sistrip;
167 using namespace std;
168 
169 //
170 // constructors and destructor
171 //
173  detIDs_( iConfig.getParameter< std::vector<uint32_t> >( "detIDs")),
174  inputScopeModeRawDigiLabel_( iConfig.getParameter<edm::InputTag>( "InputScopeModeRawDigiLabel" ) ),
175  inputPayloadRawDigiLabel_( iConfig.getParameter<edm::InputTag>( "InputPayloadRawDigiLabel" ) ),
176  inputReorderedPayloadRawDigiLabel_( iConfig.getParameter<edm::InputTag>( "InputReorderedPayloadRawDigiLabel" ) ),
177  inputReorderedModuleRawDigiLabel_( iConfig.getParameter<edm::InputTag>( "InputReorderedModuleRawDigiLabel" ) ),
178  inputPedestalsLabel_( iConfig.getParameter<edm::InputTag>( "InputPedestalsLabel" ) ),
179  inputNoisesLabel_( iConfig.getParameter<edm::InputTag>( "InputNoisesLabel" ) ),
180  inputPostPedestalRawDigiLabel_( iConfig.getParameter<edm::InputTag>( "InputPostPedestalRawDigiLabel" ) ),
181  inputPostCMRawDigiLabel_( iConfig.getParameter<edm::InputTag>( "InputPostCMRawDigiLabel" ) ),
182  inputZeroSuppressedRawDigiLabel_( iConfig.getParameter<edm::InputTag>( "InputZeroSuppressedRawDigiLabel" ) ),
183  inputZeroSuppressedDigiLabel_( iConfig.getParameter<edm::InputTag>( "InputZeroSuppressedDigiLabel" ) ),
184  inputCompVirginRawDigiLabel_( iConfig.getParameter<edm::InputTag>( "InputCompVirginRawDigiLabel" ) ),
185  inputCompZeroSuppressedDigiLabel_( iConfig.getParameter<edm::InputTag>( "InputCompZeroSuppressedDigiLabel" ) ),
186  outputFolderName_( iConfig.getParameter<std::string>( "OutputFolderName" ) )
187 {
188  //now do what ever initialization is needed
189  inputScopeModeRawDigiToken_ = consumes<edm::DetSetVector<SiStripDigi> >(inputScopeModeRawDigiLabel_ );
190  inputPayloadRawDigiToken_ = consumes<edm::DetSetVector<SiStripDigi> >(inputPayloadRawDigiLabel_ );
191  inputReorderedPayloadRawDigiToken_ = consumes<edm::DetSetVector<SiStripDigi> >(inputReorderedPayloadRawDigiLabel_ );
192  inputReorderedModuleRawDigiToken_ = consumes<edm::DetSetVector<SiStripDigi> >(inputReorderedModuleRawDigiLabel_ );
193  inputPedestalsToken_ = consumes<edm::DetSetVector<SiStripDigi> >(inputPedestalsLabel_ );
194  inputNoisesToken_ = consumes<edm::DetSetVector<SiStripDigi> >(inputNoisesLabel_ );
195  inputPostPedestalRawDigiToken_ = consumes<edm::DetSetVector<SiStripDigi> >(inputPostPedestalRawDigiLabel_ );
196  inputPostCMRawDigiToken_ = consumes<edm::DetSetVector<SiStripDigi> >(inputPostCMRawDigiLabel_ );
197  inputZeroSuppressedRawDigiToken_ = consumes<edm::DetSetVector<SiStripDigi> >(inputZeroSuppressedRawDigiLabel_ );
198  inputZeroSuppressedDigiToken_ = consumes<edm::DetSetVector<SiStripDigi> >(inputZeroSuppressedDigiLabel_ );
199  inputCompVirginRawDigiToken_ = consumes<edm::DetSetVector<SiStripDigi> >(inputCompVirginRawDigiLabel_ );
200  inputCompZeroSuppressedDigiToken_ = consumes<edm::DetSetVector<SiStripDigi> >(inputCompZeroSuppressedDigiLabel_ );
201 
202 }
203 
204 
206 {
207  // do anything here that needs to be done at desctruction time
208  // (e.g. close files, deallocate resources etc.)
209 }
210 
211 //
212 // member functions
213 //
214 
215 void
217 {
218  // Retrieve FED cabling object
219  //iSetup.get<SiStripDetCablingRcd>().get( cabling_ );
220  //std::stringstream ss;
221  //cabling_->print(ss);
222  //std::cout << ss.str() << std::endl;
223 
224 } // end of beginRun method.
225 
226 // ------------ method called once each job just before starting event loop ------------
227 void
229 {
230  // register to the TFileService
232  // Check that the TFileService has been configured
233  if ( !fs.isAvailable() ) {
234  throw cms::Exception("Configuration") << "TFileService not available: did you configure it ?";
235  }
236 } // end of beginJob method.
237 
238 // ------------ method called once each job just after ending the event loop ------------
240 
241 // ------------ method called to for each event ------------
242 void
244 {
245  using namespace edm;
246  using namespace std;
247 
248  //retrieve cabling
249  const SiStripDetCabling* lCabling = utility_.getDetCabling( iSetup );
250 
251  // Set up the event-level histogram folder
252  //-----------------------------------------
253  // register to the TFileService
255 
256  // Make the EDAnalyzer instance name directory
257  TFileDirectory an_dir = fs->mkdir( outputFolderName_ );
258 
259  // Make the event directory filename
260  stringstream ev_dir_name;
261  ev_dir_name << "run" << iEvent.id().run() << "_event" << iEvent.id().event();
262  TFileDirectory evdir = an_dir.mkdir( ev_dir_name.str() );
263 
264  //if there are no detIds, get them from the comparison digis...
265  if (detIDs_.size()==0) {
266  //get the detIds of the modules in the zero-suppressed comparison
269  // iEvent.getByLabel( inputCompZeroSuppressedDigiLabel_, czs_digis );
270  iEvent.getByToken( inputCompZeroSuppressedDigiToken_, czs_digis );
271  std::vector< edm::DetSet<SiStripDigi> >::const_iterator digis_it = czs_digis->begin();
272  for (; digis_it!=czs_digis->end(); ++digis_it) {
273  detIDs_.push_back(digis_it->detId());
274  }
275  }
278  // iEvent.getByLabel( inputCompVirginRawDigiLabel_, cvr_digis );
279  iEvent.getByToken( inputCompVirginRawDigiToken_, cvr_digis );
280  std::vector< edm::DetSet<SiStripRawDigi> >::const_iterator digis_it = cvr_digis->begin();
281  for (; digis_it!=cvr_digis->end(); ++digis_it) {
282  detIDs_.push_back(digis_it->detId());
283  }
284  }
285 
286  }
287 
288  // Loop over detIDs as obtained from the SpyChannelMonitor config file.
289  for (std::vector<uint32_t>::iterator d = detIDs_.begin(); d!=detIDs_.end(); ++d) {
290  // TODO: Need some error checking here, probably...
291  const std::vector<const FedChannelConnection *> & conns = lCabling->getConnections( *d );
292  //cout << "________________________________________________" << endl;
293  //cout << "FED channels found in detId " << *d << " is " << conns.size() << endl;
294  if (!(conns.size())) {
295  // TODO: Properly DEBUG/warning this...
296  //cout << "Skipping detID " << uint32_t(*d) << endl;
297  continue;
298  }
299 
300  // Create a histogram directory for each specified and available detID
301  stringstream sss;
302  sss << "detID_" << *d;
303  TFileDirectory detID_dir = evdir.mkdir( sss.str() );
304 
305  // Loop over the channels found with the detID and add directories.
306  for (uint32_t ch = 0; ch<conns.size(); ch++) {
307 
308  // Name of channel histogram directory
309  stringstream ssss; ssss << sss.str() << "_APVpair_" << ch;
310  TFileDirectory chan_dir = detID_dir.mkdir(ssss.str());
311 
312  // Get the fed key from the detID and the channel
313  uint32_t fedkey = SiStripFedKey::fedIndex(conns[ch]->fedId(), conns[ch]->fedCh());
314 
315  // (Spy) Scope Mode (SM)
316  //=======================
317  // Get the fed key from the FED ID and the FED channel (from conns)
318  // This is because scope mode always stores in the collection by FED ID
320  // Use the SiStripFedKey object to return the FED key
321  //cout << "detID=" << *d << ", FED key looking for is " << fedkey << endl;
322  //cout << "Attempting to find scope mode raw digis" << endl;
323  //
325  // iEvent.getByLabel( inputScopeModeRawDigiLabel_, sm_rawdigis );
326  iEvent.getByToken( inputScopeModeRawDigiToken_, sm_rawdigis );
327  //
328  // Note that the fed key (also a uint32_t) is passed in this case.
329  // The method itself doesn't actually care, but it assumes whatever collection
330  // is stored in sm_rawdigis is indexed by FED key ;-)
331  // TODO: Make this, um, better.
332  if (!(MakeRawDigiHist_(sm_rawdigis, fedkey, chan_dir, SCOPE_MODE))) { ; }
333  }
334 
335  // Payload Unordered Raw (UR)
336  //============================
338  uint32_t fedindex = SiStripFedKey::fedIndex(conns[ch]->fedId(), conns[ch]->fedCh());
339  //cout << "Attempting to find payload mode raw digis" << endl;
341  // iEvent.getByLabel( inputPayloadRawDigiLabel_, ur_rawdigis );
342  iEvent.getByToken( inputPayloadRawDigiToken_, ur_rawdigis );
343  if (!(MakeRawDigiHist_(ur_rawdigis, fedindex, chan_dir, PAYLOAD_RAW))) { ; }
344  }
345  // Payload Reordered Raw
346  //=======================
348  uint32_t fedkey = SiStripFedKey::fedIndex(conns[ch]->fedId(), conns[ch]->fedCh());
350  // iEvent.getByLabel( inputReorderedPayloadRawDigiLabel_, rrp_rawdigis );
351  iEvent.getByToken( inputReorderedPayloadRawDigiToken_, rrp_rawdigis );
352  if (!(MakeRawDigiHist_(rrp_rawdigis, fedkey, chan_dir, REORDERED_PAYLOAD_RAW))) { ; }
353  }
354  } // end of loop over channels
355  //
356  // Module Reordered Raw (RR)
357  //====================
360  // iEvent.getByLabel( inputReorderedModuleRawDigiLabel_, rr_rawdigis );
361  iEvent.getByToken( inputReorderedModuleRawDigiToken_, rr_rawdigis );
362  //cout << "Making Reordered module histogram for detID " << *d << endl;
363  if (!(MakeRawDigiHist_(rr_rawdigis, *d, detID_dir, REORDERED_MODULE_RAW))) { ; }
364  } // end of ReorderedModuleRaw check
365 
366  //
367  // Pedestal values
368  //========================
369  if (!((inputPedestalsLabel_.label()=="") && (inputPedestalsLabel_.instance()==""))) {
371  // iEvent.getByLabel( inputPedestalsLabel_, pd_rawdigis );
372  iEvent.getByToken( inputPedestalsToken_, pd_rawdigis );
373  //cout << "Making pedestal values module histogram for detID " << *d << endl;
374  if (!(MakeRawDigiHist_(pd_rawdigis, *d, detID_dir, PEDESTAL_VALUES))) { ; }
375  }
376  //
377  // Noise values
378  //========================
379  if (!((inputNoisesLabel_.label()=="") && (inputNoisesLabel_.instance()==""))) {
381  // iEvent.getByLabel( inputNoisesLabel_, pd_rawdigis );
382  iEvent.getByToken( inputNoisesToken_, pd_rawdigis );
383  //cout << "Making noise values module histogram for detID " << *d << endl;
384  if (!(MakeProcessedRawDigiHist_(pd_rawdigis, *d, detID_dir, NOISE_VALUES))) { ; }
385  }
386  //
387  // Post-Pedestal Raw (PP)
388  //========================
391  // iEvent.getByLabel( inputPostPedestalRawDigiLabel_, pp_rawdigis );
392  iEvent.getByToken( inputPostPedestalRawDigiToken_, pp_rawdigis );
393  //cout << "Making post-pedestal module histogram for detID " << *d << endl;
394  if (!(MakeRawDigiHist_(pp_rawdigis, *d, detID_dir, POST_PEDESTAL))) { ; }
395  }
396  //
397  // Post-Common Mode Subtraction Raw (PC)
398  //=======================================
401  // iEvent.getByLabel( inputPostCMRawDigiLabel_, pc_rawdigis );
402  iEvent.getByToken( inputPostCMRawDigiToken_, pc_rawdigis );
403  //cout << "Making post-CM module histogram for detID " << *d << endl;
404  if (!(MakeRawDigiHist_(pc_rawdigis, *d, detID_dir, POST_COMMON_MODE))) { ; }
405  }
406 
407  //
408  // Zero-Suppressed Digis
409  //=======================
410  //bool founddigispy = false, founddigimain = false;
412  //cout << "Making ZeroSuppressed histogram!" << endl;
414  // iEvent.getByLabel( inputZeroSuppressedDigiLabel_, zs_digis );
415  iEvent.getByToken( inputZeroSuppressedDigiToken_, zs_digis );
416  //founddigispy =
417  MakeDigiHist_(zs_digis, *d, detID_dir, ZERO_SUPPRESSED);
418  }
419  //comparison to mainline data
421  //cout << "Making Mainline VirginRaw histogram!" << endl;
423  // iEvent.getByLabel( inputCompVirginRawDigiLabel_, cvr_digis );
424  iEvent.getByToken( inputCompVirginRawDigiToken_, cvr_digis );
425  //founddigimain =
426  MakeRawDigiHist_(cvr_digis, *d, detID_dir, VR_COMP);
427  }
429  //cout << "Making ZeroSuppressed histogram!" << endl;
431  // iEvent.getByLabel( inputCompZeroSuppressedDigiLabel_, czs_digis );
432  iEvent.getByToken( inputCompZeroSuppressedDigiToken_, czs_digis );
433  //founddigimain =
434  MakeDigiHist_(czs_digis, *d, detID_dir, ZERO_SUPPRESSED_COMP);
435  }
436  //if (founddigimain && founddigispy) cout << "Found digis for both in detid=" << *d << endl;
437 
438  } // end of loop over detIDs specified in the config.
439 
440 } // end of Analyze method.
441 
443  const edm::Handle< edm::DetSetVector< SiStripRawDigi > > & digi_handle,
444  uint32_t specifier,
445  const TFileDirectory & dir,
447  //const std::string & name)
448 {
449  // TODO: Remove the hard-coded numbers(!).
450  TH1S * hist;
451  if (type==SCOPE_MODE) hist = dir.make<TH1S>("ScopeMode", ";Sample number;ADC counts / strip", 298, 0, 298);
452  else if (type==PAYLOAD_RAW) hist = dir.make<TH1S>("PayloadRaw", ";Sample number;ADC counts / strip", 256, 0, 256);
453  else if (type==REORDERED_PAYLOAD_RAW) hist = dir.make<TH1S>("ReorderedPayloadRaw", ";Sample number;ADC counts / strip", 256, 0, 256);
454  else if (type==REORDERED_MODULE_RAW) hist = dir.make<TH1S>("ReorderedModuleRaw", ";Sample number;ADC counts / strip", 768, 0, 768);
455  else if (type==PEDESTAL_VALUES) hist = dir.make<TH1S>("PedestalValues", ";Strip number;Pedestal / strip", 768, 0, 768);
456  else if (type==POST_PEDESTAL) hist = dir.make<TH1S>("PostPedestal", ";Strip number;ADC counts / strip", 768, 0, 768);
457  else if (type==POST_COMMON_MODE) hist = dir.make<TH1S>("PostCommonMode", ";Strip number;ADC counts / strip", 768, 0, 768);
458  else if (type==ZERO_SUPPRESSED_PADDED) hist = dir.make<TH1S>("ZeroSuppressedRaw" , ";Strip number;ADC counts / strip", 768, 0, 768);
459  else if (type==VR_COMP) hist = dir.make<TH1S>("VirginRawCom" , ";Strip number;ADC counts / strip", 768, 0, 768);
460  else {hist = 0; return false;}
461 
462  // TODO: May need to make this error checking independent when refactoring...
463  //std::cout << "| * digis for " << type << " and detID " << specifier;
464  std::vector< edm::DetSet<SiStripRawDigi> >::const_iterator digis_it = digi_handle->find( specifier );
465  if (digis_it == digi_handle->end()) {
466  //std::cout << " not found :( ";
467  return false;
468  }
469  //std::cout << std::endl;
470 
471  // Loop over the digis for the detID and APV pair.
472  edm::DetSet<SiStripRawDigi>::const_iterator idigi = digis_it->data.begin();
473  uint32_t count = 0;
474  for ( ; idigi != digis_it->data.end(); ++idigi ) {
475  count++;
476  hist->SetBinContent(count,static_cast<int>((*idigi).adc()));
477  } // end of loop over the digis
478  return true; // Success! (Probably.)
479 }
480 
483  uint32_t specifier,
484  const TFileDirectory & dir,
486  //const std::string & name)
487 {
488  // TODO: Remove the hard-coded numbers(!).
489  TH1F * hist;
490  if (type==NOISE_VALUES) hist = dir.make<TH1F>("NoiseValues",";Strip number;Noise / strip",768, 0, 768);
491  else {
492  hist = 0;
493  return false;
494  }
495 
496  // TODO: May need to make this error checking independent when refactoring...
497  //std::cout << "| * digis for " << type << " and detID " << specifier;
498  std::vector< edm::DetSet<SiStripProcessedRawDigi> >::const_iterator digis_it = digi_handle->find( specifier );
499  if (digis_it == digi_handle->end()) {
500  //std::cout << " not found :( ";
501  return false;
502  }
503  //std::cout << std::endl;
504 
505  // Loop over the digis for the detID and APV pair.
506  edm::DetSet<SiStripProcessedRawDigi>::const_iterator idigi = digis_it->data.begin();
507  uint32_t count = 0;
508  for ( ; idigi != digis_it->data.end(); ++idigi ) {
509  count++;
510  hist->SetBinContent(count,static_cast<float>((*idigi).adc()));
511  } // end of loop over the digis
512  return true; // Success! (Probably.)
513 }
514 
516  const edm::Handle< edm::DetSetVector< SiStripDigi > > & digi_handle,
517  uint32_t detID,
518  //uint32_t channel,
519  const TFileDirectory & dir,
521  //const std::string & name)
522 {
523  // TODO: Remove the hard-coded numbers.
524  TH1S * hist;
525  if (type==ZERO_SUPPRESSED) hist = dir.make<TH1S>("ZeroSuppressedDigi", ";Strip number;ADC counts / strip", 768, 0, 768);
526  else if (type==ZERO_SUPPRESSED_COMP) hist = dir.make<TH1S>("ZeroSuppressedDigiComp", ";Strip number;ADC counts / strip", 768, 0, 768);
527  else {hist = 0; return false;}
528 
529  // TODO: May need to make this error checking independent when refactoring...
530  std::vector< edm::DetSet<SiStripDigi> >::const_iterator digis_it = digi_handle->find( detID );
531  if (digis_it == digi_handle->end()) {
532  return false;
533  }
534  else {
535  //cout << "--* ZS digis found for detID " << detID << endl;
536  }
537 
538  // Loop over the digis for the detID and APV pair.
539  edm::DetSet<SiStripDigi>::const_iterator idigi = digis_it->data.begin();
540  bool founddigi = false;
541  for ( ; idigi != digis_it->data.end(); ++idigi ) {
542  // Check strip number is within the channel limits
543  //if ( static_cast<uint16_t>( (*idigi).strip()/256. ) == channel ) {
544  // hist->SetBinContent( ((*idigi).strip())%256 + 1,(*idigi).adc());
545  //}
546  hist->SetBinContent( static_cast<int>(((*idigi).strip())) + 1, static_cast<int>((*idigi).adc()) );
547  if ( (*idigi).adc() > 0 ) founddigi = true;
548  //cout << "----* ZS digi found at " << static_cast<int>(((*idigi).strip()))
549  // << ", " << static_cast<int>((*idigi).adc()) << endl;
550  } // end of loop over the digis
551 
552  return founddigi;
553 }
554 
555 // Define this as a plug-in
RunNumber_t run() const
Definition: EventID.h:42
edm::InputTag inputZeroSuppressedRawDigiLabel_
Label for the zero-suppressed, zero-padded RawDigi module input tag.
type
Definition: HCALResponse.h:21
EventNumber_t event() const
Definition: EventID.h:44
edm::InputTag inputCompZeroSuppressedDigiLabel_
Zero-suppressed digis to compare (from mainline)
edm::InputTag inputPayloadRawDigiLabel_
Label for the virgin raw RawDigi collection input tag.
edm::EDGetTokenT< edm::DetSetVector< SiStripDigi > > inputCompVirginRawDigiToken_
VR RawDigis to compare (from mainline)
bool getByToken(EDGetToken token, Handle< PROD > &result) const
Definition: Event.h:434
#define DEFINE_FWK_MODULE(type)
Definition: MakerMacros.h:17
Bool_t MakeDigiHist_(const edm::Handle< edm::DetSetVector< SiStripDigi > > &digi_handle, uint32_t detID, const TFileDirectory &dir, FEDSpyHistogramType type)
const SiStripDetCabling * getDetCabling(const edm::EventSetup &)
Updates the det cabling object from the DB.
edm::InputTag inputReorderedPayloadRawDigiLabel_
Label for the re-ordered RawDigi module input tag.
static uint32_t fedIndex(const uint16_t &fed_id, const uint16_t &fed_ch)
edm::InputTag inputPostCMRawDigiLabel_
Label for the post-common mode subtraction RawDigi module input tag.
std::string outputFolderName_
Name for the folder in the TFileService file output.
edm::EDGetTokenT< edm::DetSetVector< SiStripDigi > > inputNoisesToken_
Token for the noises.
int iEvent
Definition: GenABIO.cc:243
virtual void analyze(const edm::Event &, const edm::EventSetup &) override
edm::EDGetTokenT< edm::DetSetVector< SiStripDigi > > inputPedestalsToken_
Token for the pedestals.
SiStripSpyDisplayModule(const edm::ParameterSet &)
edm::EDGetTokenT< edm::DetSetVector< SiStripDigi > > inputPostCMRawDigiToken_
Token for the post-common mode subtraction RawDigi module input tag.
edm::EDGetTokenT< edm::DetSetVector< SiStripDigi > > inputZeroSuppressedRawDigiToken_
Token for the zero-suppressed, zero-padded RawDigi module input tag.
edm::EDGetTokenT< edm::DetSetVector< SiStripDigi > > inputPayloadRawDigiToken_
Token for the virgin raw RawDigi collection input tag.
bool isAvailable() const
Definition: Service.h:46
edm::InputTag inputPostPedestalRawDigiLabel_
Label for the post-pedestal subtraction RawDigi module input tag.
edm::InputTag inputCompVirginRawDigiLabel_
VR RawDigis to compare (from mainline)
edm::EDGetTokenT< edm::DetSetVector< SiStripDigi > > inputCompZeroSuppressedDigiToken_
Zero-suppressed digis to compare (from mainline)
T * make(const Args &...args) const
make new ROOT object
edm::EDGetTokenT< edm::DetSetVector< SiStripDigi > > inputPostPedestalRawDigiToken_
Token for the post-pedestal subtraction RawDigi module input tag.
virtual void endJob() override
TFileDirectory mkdir(const std::string &dir, const std::string &descr="")
create a new subdirectory
edm::EDGetTokenT< edm::DetSetVector< SiStripDigi > > inputZeroSuppressedDigiToken_
Guess what? It&#39;s the input label for the zero-suppressed digi.
edm::InputTag inputScopeModeRawDigiLabel_
Label for the scope-mode RawDigi collection input tag.
edm::InputTag inputNoisesLabel_
Label for the noises.
edm::EDGetTokenT< edm::DetSetVector< SiStripDigi > > inputScopeModeRawDigiToken_
Token for the scope-mode RawDigi collection input tag.
virtual void beginRun(const edm::Run &, const edm::EventSetup &) override
std::string const & label() const
Definition: InputTag.h:42
edm::EventID id() const
Definition: EventBase.h:56
collection_type data
Definition: DetSet.h:78
EDAnalyzer for the online monitoring of the FED using STT spy channel data.
edm::InputTag inputZeroSuppressedDigiLabel_
Guess what? It&#39;s the input label for the zero-suppressed digi.
sistrip::SpyUtilities utility_
Bool_t MakeRawDigiHist_(const edm::Handle< edm::DetSetVector< SiStripRawDigi > > &digi_handle, uint32_t specifier, const TFileDirectory &dir, FEDSpyHistogramType type)
edm::InputTag inputPedestalsLabel_
Label for the pedestals.
edm::InputTag inputReorderedModuleRawDigiLabel_
Label for the re-ordered RawDigi module input tag.
dbl *** dir
Definition: mlp_gen.cc:35
collection_type::const_iterator const_iterator
Definition: DetSet.h:33
Bool_t MakeProcessedRawDigiHist_(const edm::Handle< edm::DetSetVector< SiStripProcessedRawDigi > > &digi_handle, uint32_t specifier, const TFileDirectory &dir, FEDSpyHistogramType type)
virtual void beginJob() override
edm::EDGetTokenT< edm::DetSetVector< SiStripDigi > > inputReorderedModuleRawDigiToken_
Token for the re-ordered RawDigi module input tag.
std::string const & instance() const
Definition: InputTag.h:43
Definition: Run.h:41
edm::EDGetTokenT< edm::DetSetVector< SiStripDigi > > inputReorderedPayloadRawDigiToken_
Token for the re-ordered RawDigi module input tag.
std::vector< uint32_t > detIDs_
Vector of detIDs that are of interest (config-specified).