#include <EcalPreshowerDigisValidation.h>
|
typedef std::map< uint32_t, float, std::less< uint32_t > > | MapType |
|
EcalPreshowerDigisValidation::EcalPreshowerDigisValidation |
( |
const edm::ParameterSet & |
ps | ) |
|
Analyze.
Definition at line 41 of file EcalPreshowerDigisValidation.cc.
References ESSample::adc(), ESdigiCollectionToken_, MonitorElement::Fill(), edm::Event::getByToken(), mps_fire::i, ESDataFrame::id(), edm::HandleBase::isValid(), LogDebug, ESDataFrame::MAXSAMPLES, meESDigiADC_, meESDigiMultiplicity_, ecalTB2006H4_GenSimDigiReco_cfg::mySample, ESDetId::plane(), edm::Handle< T >::product(), edm::DataFrameContainer::reserve(), simplePhotonAnalyzer_cfi::sample, ESDetId::six(), ESDetId::siy(), ESDataFrame::size(), edm::DataFrameContainer::size(), ESDetId::strip(), verbose_, and ESDetId::zside().
50 if( !EcalDigiES.
isValid() )
return;
58 std::vector<double> esADCCounts ;
63 for (
unsigned int digis=0; digis<EcalDigiES->
size(); ++digis) {
66 int nrSamples=esdf.
size();
81 LogDebug(
"DigiInfo") <<
"Preshower Digi for ESDetId: z side " << esid.
zside() <<
" plane " << esid.
plane() << esid.
six() <<
',' << esid.
siy() <<
':' << esid.
strip();
82 for (
int i = 0;
i < 3 ;
i++ ) {
83 LogDebug(
"DigiInfo") <<
"sample " <<
i <<
" ADC = " << esADCCounts[
i];
87 for (
int i = 0 ;
i < 3 ;
i++ ) {
MonitorElement * meESDigiADC_[3]
bool getByToken(EDGetToken token, Handle< PROD > &result) const
const ESDetId & id() const
MonitorElement * meESDigiMultiplicity_
static const int MAXSAMPLES
void reserve(size_t isize)
edm::EDGetTokenT< ESDigiCollection > ESdigiCollectionToken_
T const * product() const
int adc() const
get the ADC sample (singed 16 bits)
Definition at line 25 of file EcalPreshowerDigisValidation.cc.
References DQMStore::IBooker::book1D(), trackerHits::histo, mps_fire::i, meESDigiADC_, meESDigiMultiplicity_, and DQMStore::IBooker::setCurrentFolder().
29 ibooker.setCurrentFolder(
"EcalDigisV/EcalDigiTask");
31 sprintf (histo,
"EcalDigiTask Preshower digis multiplicity" ) ;
34 for (
int i = 0; i < 3 ; i++ ) {
36 sprintf (histo,
"EcalDigiTask Preshower ADC pulse %02d", i+1) ;
37 meESDigiADC_[
i] = ibooker.book1D(histo, histo, 4096, -0.5, 4095.5) ;
MonitorElement * meESDigiADC_[3]
MonitorElement * meESDigiMultiplicity_
std::string EcalPreshowerDigisValidation::outputFile_ |
|
private |
bool EcalPreshowerDigisValidation::verbose_ |
|
private |