CMS 3D CMS Logo

EETestPulseTask Class Reference

#include <DQM/EcalEndcapMonitorTasks/interface/EETestPulseTask.h>

Inheritance diagram for EETestPulseTask:

edm::EDAnalyzer

List of all members.

Public Member Functions

 EETestPulseTask (const edm::ParameterSet &ps)
 Constructor.
virtual ~EETestPulseTask ()
 Destructor.

Protected Member Functions

void analyze (const edm::Event &e, const edm::EventSetup &c)
 Analyze.
void beginJob (const edm::EventSetup &c)
 BeginJob.
void beginRun (const edm::Run &r, const edm::EventSetup &c)
 BeginRun.
void cleanup (void)
 Cleanup.
void endJob (void)
 EndJob.
void endRun (const edm::Run &r, const edm::EventSetup &c)
 EndRun.
void reset (void)
 Reset.
void setup (void)
 Setup.

Private Attributes

float amplitudeThreshold_
DQMStoredqmStore_
edm::InputTag EcalPnDiodeDigiCollection_
edm::InputTag EcalRawDataCollection_
edm::InputTag EcalUncalibratedRecHitCollection_
edm::InputTag EEDigiCollection_
bool enableCleanup_
int ievt_
bool init_
MonitorElementmeAmplMapG01_ [18]
MonitorElementmeAmplMapG06_ [18]
MonitorElementmeAmplMapG12_ [18]
MonitorElementmePnAmplMapG01_ [18]
MonitorElementmePnAmplMapG16_ [18]
MonitorElementmePnPedMapG01_ [18]
MonitorElementmePnPedMapG16_ [18]
bool mergeRuns_
MonitorElementmeShapeMapG01_ [18]
MonitorElementmeShapeMapG06_ [18]
MonitorElementmeShapeMapG12_ [18]
std::string prefixME_


Detailed Description

Definition at line 20 of file EETestPulseTask.h.


Constructor & Destructor Documentation

EETestPulseTask::EETestPulseTask ( const edm::ParameterSet ps  ) 

Constructor.

Definition at line 36 of file EETestPulseTask.cc.

References dqmStore_, EcalPnDiodeDigiCollection_, EcalRawDataCollection_, EcalUncalibratedRecHitCollection_, EEDigiCollection_, enableCleanup_, edm::ParameterSet::getParameter(), edm::ParameterSet::getUntrackedParameter(), i, init_, meAmplMapG01_, meAmplMapG06_, meAmplMapG12_, mePnAmplMapG01_, mePnAmplMapG16_, mePnPedMapG01_, mePnPedMapG16_, mergeRuns_, meShapeMapG01_, meShapeMapG06_, meShapeMapG12_, and prefixME_.

00036                                                       {
00037 
00038   init_ = false;
00039 
00040   dqmStore_ = Service<DQMStore>().operator->();
00041 
00042   prefixME_ = ps.getUntrackedParameter<string>("prefixME", "");
00043 
00044   enableCleanup_ = ps.getUntrackedParameter<bool>("enableCleanup", false);
00045 
00046   mergeRuns_ = ps.getUntrackedParameter<bool>("mergeRuns", false);
00047 
00048   EcalRawDataCollection_ = ps.getParameter<edm::InputTag>("EcalRawDataCollection");
00049   EEDigiCollection_ = ps.getParameter<edm::InputTag>("EEDigiCollection");
00050   EcalPnDiodeDigiCollection_ = ps.getParameter<edm::InputTag>("EcalPnDiodeDigiCollection");
00051   EcalUncalibratedRecHitCollection_ = ps.getParameter<edm::InputTag>("EcalUncalibratedRecHitCollection");
00052 
00053   for (int i = 0; i < 18; i++) {
00054     meShapeMapG01_[i] = 0;
00055     meAmplMapG01_[i] = 0;
00056     meShapeMapG06_[i] = 0;
00057     meAmplMapG06_[i] = 0;
00058     meShapeMapG12_[i] = 0;
00059     meAmplMapG12_[i] = 0;
00060     mePnAmplMapG01_[i] = 0;
00061     mePnPedMapG01_[i] = 0;
00062     mePnAmplMapG16_[i] = 0;
00063     mePnPedMapG16_[i] = 0;
00064   }
00065 
00066 }

EETestPulseTask::~EETestPulseTask (  )  [virtual]

Destructor.

Definition at line 68 of file EETestPulseTask.cc.

00068                                  {
00069 
00070 }


Member Function Documentation

void EETestPulseTask::analyze ( const edm::Event e,
const edm::EventSetup c 
) [protected, virtual]

Analyze.

Implements edm::EDAnalyzer.

Definition at line 263 of file EETestPulseTask.cc.

References ecalMGPA::adc(), EcalMGPASample::adc(), EcalEndcap, EcalPnDiodeDigiCollection_, EcalRawDataCollection_, EcalUncalibratedRecHitCollection_, EEDigiCollection_, MonitorElement::Fill(), EcalMGPASample::gainId(), edm::Event::getByLabel(), i, Numbers::icEE(), ievt_, init_, Numbers::iSM(), LogDebug, meAmplMapG01_, meAmplMapG06_, meAmplMapG12_, mePnAmplMapG01_, mePnAmplMapG16_, mePnPedMapG01_, mePnPedMapG16_, meShapeMapG01_, meShapeMapG06_, meShapeMapG12_, funct::num(), EcalDataFrame::sample(), setup(), Numbers::subDet(), EcalDCCHeaderBlock::TESTPULSE_GAP, and EcalDCCHeaderBlock::TESTPULSE_MGPA.

00263                                                                 {
00264 
00265   bool enable = false;
00266   int runType[18] = { -1 };
00267   int mgpaGain[18] = { -1 };
00268 
00269   Handle<EcalRawDataCollection> dcchs;
00270 
00271   if ( e.getByLabel(EcalRawDataCollection_, dcchs) ) {
00272 
00273     for ( EcalRawDataCollection::const_iterator dcchItr = dcchs->begin(); dcchItr != dcchs->end(); ++dcchItr ) {
00274 
00275       if ( Numbers::subDet( *dcchItr ) != EcalEndcap ) continue;
00276 
00277       int ism = Numbers::iSM( *dcchItr, EcalEndcap );
00278 
00279       runType[ism-1] = dcchItr->getRunType();
00280       mgpaGain[ism-1] = dcchItr->getMgpaGain();
00281 
00282       if ( dcchItr->getRunType() == EcalDCCHeaderBlock::TESTPULSE_MGPA ||
00283            dcchItr->getRunType() == EcalDCCHeaderBlock::TESTPULSE_GAP ) enable = true;
00284 
00285     }
00286 
00287   } else {
00288 
00289     LogWarning("EETestPulseTask") << EcalRawDataCollection_ << " not available";
00290 
00291   }
00292 
00293   if ( ! enable ) return;
00294 
00295   if ( ! init_ ) this->setup();
00296 
00297   ievt_++;
00298 
00299   Handle<EEDigiCollection> digis;
00300 
00301   if ( e.getByLabel(EEDigiCollection_, digis) ) {
00302 
00303     int need = digis->size();
00304     LogDebug("EETestPulseTask") << "event " << ievt_ << " digi collection size " << need;
00305 
00306     for ( EEDigiCollection::const_iterator digiItr = digis->begin(); digiItr != digis->end(); ++digiItr ) {
00307 
00308       EEDetId id = digiItr->id();
00309 
00310       int ix = id.ix();
00311       int iy = id.iy();
00312 
00313       int ism = Numbers::iSM( id );
00314  
00315       if ( ! ( runType[ism-1] == EcalDCCHeaderBlock::TESTPULSE_MGPA ||
00316                runType[ism-1] == EcalDCCHeaderBlock::TESTPULSE_GAP ) ) continue;
00317 
00318       LogDebug("EETestPulseTask") << " det id = " << id;
00319       LogDebug("EETestPulseTask") << " sm, ix, iy " << ism << " " << ix << " " << iy;
00320 
00321       int ic = Numbers::icEE(ism, ix, iy);
00322 
00323       EEDataFrame dataframe = (*digiItr);
00324 
00325       for (int i = 0; i < 10; i++) {
00326 
00327         int adc = dataframe.sample(i).adc();
00328         float gain = 1.;
00329 
00330         MonitorElement* meShapeMap = 0;
00331 
00332         if ( dataframe.sample(i).gainId() == 1 ) gain = 1./12.;
00333         if ( dataframe.sample(i).gainId() == 2 ) gain = 1./ 6.;
00334         if ( dataframe.sample(i).gainId() == 3 ) gain = 1./ 1.;
00335 
00336         if ( mgpaGain[ism-1] == 3 ) meShapeMap = meShapeMapG01_[ism-1];
00337         if ( mgpaGain[ism-1] == 2 ) meShapeMap = meShapeMapG06_[ism-1];
00338         if ( mgpaGain[ism-1] == 1 ) meShapeMap = meShapeMapG12_[ism-1];
00339 
00340 //        float xval = float(adc) * gain;
00341         float xval = float(adc);
00342 
00343         if ( meShapeMap ) meShapeMap->Fill(ic - 0.5, i + 0.5, xval);
00344 
00345       }
00346 
00347     }
00348 
00349   } else {
00350 
00351     LogWarning("EETestPulseTask") << EEDigiCollection_ << " not available";
00352 
00353   }
00354 
00355   Handle<EcalUncalibratedRecHitCollection> hits;
00356 
00357   if ( e.getByLabel(EcalUncalibratedRecHitCollection_, hits) ) {
00358 
00359     int neh = hits->size();
00360     LogDebug("EETestPulseTask") << "event " << ievt_ << " hits collection size " << neh;
00361 
00362     for ( EcalUncalibratedRecHitCollection::const_iterator hitItr = hits->begin(); hitItr != hits->end(); ++hitItr ) {
00363 
00364       EEDetId id = hitItr->id();
00365 
00366       int ix = id.ix();
00367       int iy = id.iy();
00368 
00369       int ism = Numbers::iSM( id );
00370 
00371       if ( ism >= 1 && ism <= 9 ) ix = 101 - ix;
00372 
00373       float xix = ix - 0.5;
00374       float xiy = iy - 0.5;
00375 
00376       if ( ! ( runType[ism-1] == EcalDCCHeaderBlock::TESTPULSE_MGPA ||
00377                runType[ism-1] == EcalDCCHeaderBlock::TESTPULSE_GAP ) ) continue;
00378 
00379       LogDebug("EETestPulseTask") << " det id = " << id;
00380       LogDebug("EETestPulseTask") << " sm, ix, iy " << ism << " " << ix << " " << iy;
00381 
00382       MonitorElement* meAmplMap = 0;
00383 
00384       if ( mgpaGain[ism-1] == 3 ) meAmplMap = meAmplMapG01_[ism-1];
00385       if ( mgpaGain[ism-1] == 2 ) meAmplMap = meAmplMapG06_[ism-1];
00386       if ( mgpaGain[ism-1] == 1 ) meAmplMap = meAmplMapG12_[ism-1];
00387 
00388       float xval = hitItr->amplitude();
00389       if ( xval <= 0. ) xval = 0.0;
00390 
00391 //      if ( mgpaGain[ism-1] == 3 ) xval = xval * 1./12.;
00392 //      if ( mgpaGain[ism-1] == 2 ) xval = xval * 1./ 2.;
00393 //      if ( mgpaGain[ism-1] == 1 ) xval = xval * 1./ 1.;
00394 
00395       LogDebug("EETestPulseTask") << " hit amplitude " << xval;
00396 
00397       if ( meAmplMap ) meAmplMap->Fill(xix, xiy, xval);
00398 
00399       LogDebug("EETestPulseTask") << "Crystal " << ix << " " << iy << " Amplitude = " << xval;
00400 
00401     }
00402 
00403   } else {
00404 
00405     LogWarning("EETestPulseTask") << EcalUncalibratedRecHitCollection_ << " not available";
00406 
00407   }
00408 
00409   Handle<EcalPnDiodeDigiCollection> pns;
00410 
00411   if ( e.getByLabel(EcalPnDiodeDigiCollection_, pns) ) {
00412 
00413     int nep = pns->size();
00414     LogDebug("EETestPulseTask") << "event " << ievt_ << " pns collection size " << nep;
00415 
00416     for ( EcalPnDiodeDigiCollection::const_iterator pnItr = pns->begin(); pnItr != pns->end(); ++pnItr ) {
00417 
00418       if ( Numbers::subDet( pnItr->id() ) != EcalEndcap ) continue;
00419 
00420       int ism = Numbers::iSM( pnItr->id() );
00421 
00422       int num = pnItr->id().iPnId();
00423 
00424       if ( ! ( runType[ism-1] == EcalDCCHeaderBlock::TESTPULSE_MGPA ||
00425                runType[ism-1] == EcalDCCHeaderBlock::TESTPULSE_GAP ) ) continue;
00426 
00427       LogDebug("EETestPulseTask") << " det id = " << pnItr->id();
00428       LogDebug("EETestPulseTask") << " sm, num " << ism << " " << num;
00429 
00430       float xvalped = 0.;
00431 
00432       for (int i = 0; i < 4; i++) {
00433 
00434         int adc = pnItr->sample(i).adc();
00435 
00436         MonitorElement* mePNPed = 0;
00437 
00438         if ( pnItr->sample(i).gainId() == 0 ) mePNPed = mePnPedMapG01_[ism-1];
00439         if ( pnItr->sample(i).gainId() == 1 ) mePNPed = mePnPedMapG16_[ism-1];
00440 
00441         float xval = float(adc);
00442 
00443         if ( mePNPed ) mePNPed->Fill(num - 0.5, xval);
00444 
00445         xvalped = xvalped + xval;
00446 
00447       }
00448 
00449       xvalped = xvalped / 4;
00450 
00451       float xvalmax = 0.;
00452 
00453       MonitorElement* mePN = 0;
00454 
00455       for (int i = 0; i < 50; i++) {
00456 
00457         int adc = pnItr->sample(i).adc();
00458 
00459         float xval = float(adc);
00460 
00461         if ( xval >= xvalmax ) xvalmax = xval;
00462 
00463       }
00464 
00465       xvalmax = xvalmax - xvalped;
00466 
00467       if ( pnItr->sample(0).gainId() == 0 ) mePN = mePnAmplMapG01_[ism-1];
00468       if ( pnItr->sample(0).gainId() == 1 ) mePN = mePnAmplMapG16_[ism-1];
00469 
00470       if ( mePN ) mePN->Fill(num - 0.5, xvalmax);
00471 
00472     }
00473 
00474   } else {
00475 
00476     LogWarning("EETestPulseTask") << EcalPnDiodeDigiCollection_ << " not available";
00477 
00478   }
00479 
00480 }

void EETestPulseTask::beginJob ( const edm::EventSetup c  )  [protected, virtual]

BeginJob.

Reimplemented from edm::EDAnalyzer.

Definition at line 72 of file EETestPulseTask.cc.

References dqmStore_, ievt_, Numbers::initGeometry(), prefixME_, DQMStore::rmdir(), and DQMStore::setCurrentFolder().

00072                                                  {
00073 
00074   ievt_ = 0;
00075 
00076   if ( dqmStore_ ) {
00077     dqmStore_->setCurrentFolder(prefixME_ + "/EETestPulseTask");
00078     dqmStore_->rmdir(prefixME_ + "/EETestPulseTask");
00079   }
00080 
00081   Numbers::initGeometry(c, false);
00082 
00083 }

void EETestPulseTask::beginRun ( const edm::Run r,
const edm::EventSetup c 
) [protected, virtual]

BeginRun.

Reimplemented from edm::EDAnalyzer.

Definition at line 85 of file EETestPulseTask.cc.

References mergeRuns_, and reset().

00085                                                                 {
00086 
00087   if ( ! mergeRuns_ ) this->reset();
00088 
00089 }

void EETestPulseTask::cleanup ( void   )  [protected]

Cleanup.

Definition at line 200 of file EETestPulseTask.cc.

References dqmStore_, edm::getName(), i, init_, meAmplMapG01_, meAmplMapG06_, meAmplMapG12_, mePnAmplMapG01_, mePnAmplMapG16_, mePnPedMapG01_, mePnPedMapG16_, meShapeMapG01_, meShapeMapG06_, meShapeMapG12_, prefixME_, DQMStore::removeElement(), and DQMStore::setCurrentFolder().

Referenced by endJob().

00200                                  {
00201 
00202   if ( ! init_ ) return;
00203 
00204   if ( dqmStore_ ) {
00205     dqmStore_->setCurrentFolder(prefixME_ + "/EETestPulseTask");
00206 
00207     dqmStore_->setCurrentFolder(prefixME_ + "/EETestPulseTask/Gain01");
00208     for (int i = 0; i < 18; i++) {
00209       if ( meShapeMapG01_[i] ) dqmStore_->removeElement( meShapeMapG01_[i]->getName() );
00210       meShapeMapG01_[i] = 0;
00211       if ( meAmplMapG01_[i] ) dqmStore_->removeElement( meAmplMapG01_[i]->getName() );
00212       meAmplMapG01_[i] = 0;
00213     }
00214 
00215     dqmStore_->setCurrentFolder(prefixME_ + "/EETestPulseTask/Gain06");
00216     for (int i = 0; i < 18; i++) {
00217       if ( meShapeMapG06_[i] ) dqmStore_->removeElement( meShapeMapG06_[i]->getName() );
00218       meShapeMapG06_[i] = 0;
00219       if ( meAmplMapG06_[i] ) dqmStore_->removeElement( meAmplMapG06_[i]->getName() );
00220       meAmplMapG06_[i] = 0;
00221     }
00222 
00223     dqmStore_->setCurrentFolder(prefixME_ + "/EETestPulseTask/Gain12");
00224     for (int i = 0; i < 18; i++) {
00225       if ( meShapeMapG12_[i] ) dqmStore_->removeElement( meShapeMapG12_[i]->getName() );
00226       meShapeMapG12_[i] = 0;
00227       if ( meAmplMapG12_[i] ) dqmStore_->removeElement( meAmplMapG12_[i]->getName() );
00228       meAmplMapG12_[i] = 0;
00229     }
00230 
00231     dqmStore_->setCurrentFolder(prefixME_ + "/EETestPulseTask/PN");
00232 
00233     dqmStore_->setCurrentFolder(prefixME_ + "/EETestPulseTask/PN/Gain01");
00234     for (int i = 0; i < 18; i++) {
00235       if ( mePnAmplMapG01_[i] ) dqmStore_->removeElement( mePnAmplMapG01_[i]->getName() );
00236       mePnAmplMapG01_[i] = 0;
00237       if ( mePnPedMapG01_[i] ) dqmStore_->removeElement( mePnPedMapG01_[i]->getName() );
00238       mePnPedMapG01_[i] = 0;
00239     }
00240 
00241     dqmStore_->setCurrentFolder(prefixME_ + "/EETestPulseTask/PN/Gain16");
00242     for (int i = 0; i < 18; i++) {
00243       if ( mePnAmplMapG16_[i] ) dqmStore_->removeElement( mePnAmplMapG16_[i]->getName() );
00244       mePnAmplMapG16_[i] = 0;
00245       if ( mePnPedMapG16_[i] ) dqmStore_->removeElement( mePnPedMapG16_[i]->getName() );
00246       mePnPedMapG16_[i] = 0;
00247     }
00248 
00249   }
00250 
00251   init_ = false;
00252 
00253 }

void EETestPulseTask::endJob ( void   )  [protected, virtual]

EndJob.

Reimplemented from edm::EDAnalyzer.

Definition at line 255 of file EETestPulseTask.cc.

References cleanup(), enableCleanup_, and ievt_.

00255                                 {
00256 
00257   LogInfo("EETestPulseTask") << "analyzed " << ievt_ << " events";
00258 
00259   if ( enableCleanup_ ) this->cleanup();
00260 
00261 }

void EETestPulseTask::endRun ( const edm::Run r,
const edm::EventSetup c 
) [protected, virtual]

EndRun.

Reimplemented from edm::EDAnalyzer.

Definition at line 91 of file EETestPulseTask.cc.

00091                                                               {
00092 
00093 }

void EETestPulseTask::reset ( void   )  [protected]

Reset.

Definition at line 95 of file EETestPulseTask.cc.

References i, meAmplMapG01_, meAmplMapG06_, meAmplMapG12_, mePnAmplMapG01_, mePnAmplMapG16_, mePnPedMapG01_, mePnPedMapG16_, meShapeMapG01_, meShapeMapG06_, meShapeMapG12_, and MonitorElement::Reset().

Referenced by beginRun().

00095                                 {
00096 
00097   for (int i = 0; i < 18; i++) {
00098     if ( meShapeMapG01_[i] ) meShapeMapG01_[i]->Reset();
00099     if ( meAmplMapG01_[i] ) meAmplMapG01_[i]->Reset();
00100     if ( meShapeMapG06_[i] ) meShapeMapG06_[i]->Reset();
00101     if ( meAmplMapG06_[i] ) meAmplMapG06_[i]->Reset();
00102     if ( meShapeMapG12_[i] ) meShapeMapG12_[i]->Reset();
00103     if ( meAmplMapG12_[i] ) meAmplMapG12_[i]->Reset();
00104     if ( mePnAmplMapG01_[i] ) mePnAmplMapG01_[i]->Reset();
00105     if ( mePnPedMapG01_[i] ) mePnPedMapG01_[i]->Reset();
00106     if ( mePnAmplMapG16_[i] ) mePnAmplMapG16_[i]->Reset();
00107     if ( mePnPedMapG16_[i] ) mePnPedMapG16_[i]->Reset();
00108   }
00109 
00110 }

void EETestPulseTask::setup ( void   )  [protected]

Setup.

Definition at line 112 of file EETestPulseTask.cc.

References DQMStore::bookProfile(), DQMStore::bookProfile2D(), dqmStore_, histo, i, init_, Numbers::ix0EE(), Numbers::iy0EE(), meAmplMapG01_, meAmplMapG06_, meAmplMapG12_, mePnAmplMapG01_, mePnAmplMapG16_, mePnPedMapG01_, mePnPedMapG16_, meShapeMapG01_, meShapeMapG06_, meShapeMapG12_, prefixME_, Numbers::sEE(), MonitorElement::setAxisTitle(), DQMStore::setCurrentFolder(), and DQMStore::tag().

Referenced by analyze().

00112                                {
00113 
00114   init_ = true;
00115 
00116   char histo[200];
00117 
00118   if ( dqmStore_ ) {
00119     dqmStore_->setCurrentFolder(prefixME_ + "/EETestPulseTask");
00120 
00121     dqmStore_->setCurrentFolder(prefixME_ + "/EETestPulseTask/Gain01");
00122     for (int i = 0; i < 18; i++) {
00123       sprintf(histo, "EETPT shape %s G01", Numbers::sEE(i+1).c_str());
00124       meShapeMapG01_[i] = dqmStore_->bookProfile2D(histo, histo, 850, 0., 850., 10, 0., 10., 4096, 0., 4096., "s");
00125       meShapeMapG01_[i]->setAxisTitle("channel", 1);
00126       meShapeMapG01_[i]->setAxisTitle("sample", 2);
00127       meShapeMapG01_[i]->setAxisTitle("amplitude", 3);
00128       dqmStore_->tag(meShapeMapG01_[i], i+1);
00129       sprintf(histo, "EETPT amplitude %s G01", Numbers::sEE(i+1).c_str());
00130       meAmplMapG01_[i] = dqmStore_->bookProfile2D(histo, histo, 50, Numbers::ix0EE(i+1)+0., Numbers::ix0EE(i+1)+50., 50, Numbers::iy0EE(i+1)+0., Numbers::iy0EE(i+1)+50., 4096, 0., 4096.*12., "s");
00131       meAmplMapG01_[i]->setAxisTitle("jx", 1);
00132       meAmplMapG01_[i]->setAxisTitle("jy", 2);
00133       dqmStore_->tag(meAmplMapG01_[i], i+1);
00134     }
00135 
00136     dqmStore_->setCurrentFolder(prefixME_ + "/EETestPulseTask/Gain06");
00137     for (int i = 0; i < 18; i++) {
00138       sprintf(histo, "EETPT shape %s G06", Numbers::sEE(i+1).c_str());
00139       meShapeMapG06_[i] = dqmStore_->bookProfile2D(histo, histo, 850, 0., 850., 10, 0., 10., 4096, 0., 4096., "s");
00140       meShapeMapG06_[i]->setAxisTitle("channel", 1);
00141       meShapeMapG06_[i]->setAxisTitle("sample", 2);
00142       meShapeMapG06_[i]->setAxisTitle("amplitude", 3);
00143       dqmStore_->tag(meShapeMapG06_[i], i+1);
00144       sprintf(histo, "EETPT amplitude %s G06", Numbers::sEE(i+1).c_str());
00145       meAmplMapG06_[i] = dqmStore_->bookProfile2D(histo, histo, 50, Numbers::ix0EE(i+1)+0., Numbers::ix0EE(i+1)+50., 50, Numbers::iy0EE(i+1)+0., Numbers::iy0EE(i+1)+50., 4096, 0., 4096.*12., "s");
00146       meAmplMapG06_[i]->setAxisTitle("jx", 1);
00147       meAmplMapG06_[i]->setAxisTitle("jy", 2);
00148       dqmStore_->tag(meAmplMapG06_[i], i+1);
00149     }
00150 
00151     dqmStore_->setCurrentFolder(prefixME_ + "/EETestPulseTask/Gain12");
00152     for (int i = 0; i < 18; i++) {
00153       sprintf(histo, "EETPT shape %s G12", Numbers::sEE(i+1).c_str());
00154       meShapeMapG12_[i] = dqmStore_->bookProfile2D(histo, histo, 850, 0., 850., 10, 0., 10., 4096, 0., 4096., "s");
00155       meShapeMapG12_[i]->setAxisTitle("channel", 1);
00156       meShapeMapG12_[i]->setAxisTitle("sample", 2);
00157       meShapeMapG12_[i]->setAxisTitle("amplitude", 3);
00158       dqmStore_->tag(meShapeMapG12_[i], i+1);
00159       sprintf(histo, "EETPT amplitude %s G12", Numbers::sEE(i+1).c_str());
00160       meAmplMapG12_[i] = dqmStore_->bookProfile2D(histo, histo, 50, Numbers::ix0EE(i+1)+0., Numbers::ix0EE(i+1)+50., 50, Numbers::iy0EE(i+1)+0., Numbers::iy0EE(i+1)+50., 4096, 0., 4096.*12., "s");
00161       meAmplMapG12_[i]->setAxisTitle("jx", 1);
00162       meAmplMapG12_[i]->setAxisTitle("jy", 2);
00163       dqmStore_->tag(meAmplMapG12_[i], i+1);
00164    }
00165 
00166     dqmStore_->setCurrentFolder(prefixME_ + "/EETestPulseTask/PN");
00167 
00168     dqmStore_->setCurrentFolder(prefixME_ + "/EETestPulseTask/PN/Gain01");
00169     for (int i = 0; i < 18; i++) {
00170       sprintf(histo, "EEPDT PNs amplitude %s G01", Numbers::sEE(i+1).c_str());
00171       mePnAmplMapG01_[i] = dqmStore_->bookProfile(histo, histo, 10, 0., 10., 4096, 0., 4096., "s");
00172       mePnAmplMapG01_[i]->setAxisTitle("channel", 1);
00173       mePnAmplMapG01_[i]->setAxisTitle("amplitude", 2);
00174       dqmStore_->tag(mePnAmplMapG01_[i], i+1);
00175       sprintf(histo, "EEPDT PNs pedestal %s G01", Numbers::sEE(i+1).c_str());
00176       mePnPedMapG01_[i] =  dqmStore_->bookProfile(histo, histo, 10, 0., 10., 4096, 0., 4096., "s");
00177       mePnPedMapG01_[i]->setAxisTitle("channel", 1);
00178       mePnPedMapG01_[i]->setAxisTitle("pedestal", 2);
00179       dqmStore_->tag(mePnPedMapG01_[i], i+1);
00180     }
00181 
00182     dqmStore_->setCurrentFolder(prefixME_ + "/EETestPulseTask/PN/Gain16");
00183     for (int i = 0; i < 18; i++) {
00184       sprintf(histo, "EEPDT PNs amplitude %s G16", Numbers::sEE(i+1).c_str());
00185       mePnAmplMapG16_[i] = dqmStore_->bookProfile(histo, histo, 10, 0., 10., 4096, 0., 4096., "s");
00186       mePnAmplMapG16_[i]->setAxisTitle("channel", 1);
00187       mePnAmplMapG16_[i]->setAxisTitle("amplitude", 2);
00188       dqmStore_->tag(mePnAmplMapG16_[i], i+1);
00189       sprintf(histo, "EEPDT PNs pedestal %s G16", Numbers::sEE(i+1).c_str());
00190       mePnPedMapG16_[i] =  dqmStore_->bookProfile(histo, histo, 10, 0., 10., 4096, 0., 4096., "s");
00191       mePnPedMapG16_[i]->setAxisTitle("channel", 1);
00192       mePnPedMapG16_[i]->setAxisTitle("pedestal", 2);
00193       dqmStore_->tag(mePnPedMapG16_[i], i+1);
00194     }
00195 
00196   }
00197 
00198 }


Member Data Documentation

float EETestPulseTask::amplitudeThreshold_ [private]

Definition at line 89 of file EETestPulseTask.h.

DQMStore* EETestPulseTask::dqmStore_ [private]

Definition at line 60 of file EETestPulseTask.h.

Referenced by beginJob(), cleanup(), EETestPulseTask(), and setup().

edm::InputTag EETestPulseTask::EcalPnDiodeDigiCollection_ [private]

Definition at line 70 of file EETestPulseTask.h.

Referenced by analyze(), and EETestPulseTask().

edm::InputTag EETestPulseTask::EcalRawDataCollection_ [private]

Definition at line 68 of file EETestPulseTask.h.

Referenced by analyze(), and EETestPulseTask().

edm::InputTag EETestPulseTask::EcalUncalibratedRecHitCollection_ [private]

Definition at line 71 of file EETestPulseTask.h.

Referenced by analyze(), and EETestPulseTask().

edm::InputTag EETestPulseTask::EEDigiCollection_ [private]

Definition at line 69 of file EETestPulseTask.h.

Referenced by analyze(), and EETestPulseTask().

bool EETestPulseTask::enableCleanup_ [private]

Definition at line 64 of file EETestPulseTask.h.

Referenced by EETestPulseTask(), and endJob().

int EETestPulseTask::ievt_ [private]

Definition at line 58 of file EETestPulseTask.h.

Referenced by analyze(), beginJob(), and endJob().

bool EETestPulseTask::init_ [private]

Definition at line 91 of file EETestPulseTask.h.

Referenced by analyze(), cleanup(), EETestPulseTask(), and setup().

MonitorElement* EETestPulseTask::meAmplMapG01_[18] [private]

Definition at line 77 of file EETestPulseTask.h.

Referenced by analyze(), cleanup(), EETestPulseTask(), reset(), and setup().

MonitorElement* EETestPulseTask::meAmplMapG06_[18] [private]

Definition at line 78 of file EETestPulseTask.h.

Referenced by analyze(), cleanup(), EETestPulseTask(), reset(), and setup().

MonitorElement* EETestPulseTask::meAmplMapG12_[18] [private]

Definition at line 79 of file EETestPulseTask.h.

Referenced by analyze(), cleanup(), EETestPulseTask(), reset(), and setup().

MonitorElement* EETestPulseTask::mePnAmplMapG01_[18] [private]

Definition at line 81 of file EETestPulseTask.h.

Referenced by analyze(), cleanup(), EETestPulseTask(), reset(), and setup().

MonitorElement* EETestPulseTask::mePnAmplMapG16_[18] [private]

Definition at line 82 of file EETestPulseTask.h.

Referenced by analyze(), cleanup(), EETestPulseTask(), reset(), and setup().

MonitorElement* EETestPulseTask::mePnPedMapG01_[18] [private]

Definition at line 84 of file EETestPulseTask.h.

Referenced by analyze(), cleanup(), EETestPulseTask(), reset(), and setup().

MonitorElement* EETestPulseTask::mePnPedMapG16_[18] [private]

Definition at line 85 of file EETestPulseTask.h.

Referenced by analyze(), cleanup(), EETestPulseTask(), reset(), and setup().

bool EETestPulseTask::mergeRuns_ [private]

Definition at line 66 of file EETestPulseTask.h.

Referenced by beginRun(), and EETestPulseTask().

MonitorElement* EETestPulseTask::meShapeMapG01_[18] [private]

Definition at line 73 of file EETestPulseTask.h.

Referenced by analyze(), cleanup(), EETestPulseTask(), reset(), and setup().

MonitorElement* EETestPulseTask::meShapeMapG06_[18] [private]

Definition at line 74 of file EETestPulseTask.h.

Referenced by analyze(), cleanup(), EETestPulseTask(), reset(), and setup().

MonitorElement* EETestPulseTask::meShapeMapG12_[18] [private]

Definition at line 75 of file EETestPulseTask.h.

Referenced by analyze(), cleanup(), EETestPulseTask(), reset(), and setup().

std::string EETestPulseTask::prefixME_ [private]

Definition at line 62 of file EETestPulseTask.h.

Referenced by beginJob(), cleanup(), EETestPulseTask(), and setup().


The documentation for this class was generated from the following files:
Generated on Tue Jun 9 18:20:09 2009 for CMSSW by  doxygen 1.5.4