CMS 3D CMS Logo

List of all members | Public Member Functions | Static Public Member Functions | Static Public Attributes | Protected Member Functions | Protected Attributes | Static Protected Attributes | Private Member Functions | Private Attributes
SiPixelOfflineCalibAnalysisBase Class Reference

#include <CalibTracker/SiPixelTools/src/SiPixelOfflineCalibAnalysisBase.cc>

Inheritance diagram for SiPixelOfflineCalibAnalysisBase:
edm::EDAnalyzer edm::EDConsumerBase SiPixelGainCalibrationAnalysis SiPixelIsAliveCalibration SiPixelSCurveCalibrationAnalysis

Public Member Functions

void addTF1ToDQMMonitoringElement (MonitorElement *ele, TF1 *func)
 
MonitorElementbookDQMHistogram1D (uint32_t detid, std::string name, std::string title, int nchX, double lowX, double highX)
 
MonitorElementbookDQMHistogram1D (uint32_t detid, std::string name, std::string title, int nchX, float *xbinsize)
 
MonitorElementbookDQMHistogram2D (uint32_t detid, std::string name, std::string title, int nchX, double lowX, double highX, int nchY, double lowY, double highY)
 
MonitorElementbookDQMHistoPlaquetteSummary2D (uint32_t detid, std::string name, std::string title)
 
virtual bool doFits (uint32_t detid, std::vector< SiPixelCalibDigi >::const_iterator ipix)
 
std::vector< uint32_t > & getRunNumbers ()
 
bool setDQMDirectory (std::string dirName)
 
bool setDQMDirectory (uint32_t detID)
 
 SiPixelOfflineCalibAnalysisBase (const edm::ParameterSet &)
 
 SiPixelOfflineCalibAnalysisBase ()
 
std::string translateDetIdToString (uint32_t detid)
 
 ~SiPixelOfflineCalibAnalysisBase ()
 
- Public Member Functions inherited from edm::EDAnalyzer
void callWhenNewProductsRegistered (std::function< void(BranchDescription const &)> const &func)
 
 EDAnalyzer ()
 
ModuleDescription const & moduleDescription () const
 
std::string workerType () const
 
virtual ~EDAnalyzer ()
 
- Public Member Functions inherited from edm::EDConsumerBase
std::vector< ConsumesInfoconsumesInfo () const
 
void convertCurrentProcessAlias (std::string const &processName)
 Convert "@currentProcess" in InputTag process names to the actual current process name. More...
 
 EDConsumerBase ()
 
 EDConsumerBase (EDConsumerBase const &)=delete
 
 EDConsumerBase (EDConsumerBase &&)=default
 
ProductResolverIndexAndSkipBit indexFrom (EDGetToken, BranchType, TypeID const &) const
 
void itemsMayGet (BranchType, std::vector< ProductResolverIndexAndSkipBit > &) const
 
void itemsToGet (BranchType, std::vector< ProductResolverIndexAndSkipBit > &) const
 
std::vector< ProductResolverIndexAndSkipBit > const & itemsToGetFrom (BranchType iType) const
 
void labelsForToken (EDGetToken iToken, Labels &oLabels) const
 
void modulesWhoseProductsAreConsumed (std::vector< ModuleDescription const * > &modules, ProductRegistry const &preg, std::map< std::string, ModuleDescription const * > const &labelsToDesc, std::string const &processName) const
 
EDConsumerBase const & operator= (EDConsumerBase const &)=delete
 
EDConsumerBaseoperator= (EDConsumerBase &&)=default
 
bool registeredToConsume (ProductResolverIndex, bool, BranchType) const
 
bool registeredToConsumeMany (TypeID const &, BranchType) const
 
void updateLookup (BranchType iBranchType, ProductResolverIndexHelper const &, bool iPrefetchMayGet)
 
virtual ~EDConsumerBase () noexcept(false)
 

Static Public Member Functions

static const std::vector< short > * getVcalValues ()
 
- Static Public Member Functions inherited from edm::EDAnalyzer
static const std::string & baseType ()
 
static void fillDescriptions (ConfigurationDescriptions &descriptions)
 
static void prevalidate (ConfigurationDescriptions &)
 

Static Public Attributes

static TF1 * fitFunction_ = NULL
 

Protected Member Functions

uint32_t & EventNumber ()
 
- Protected Member Functions inherited from edm::EDConsumerBase
template<typename ProductType , BranchType B = InEvent>
EDGetTokenT< ProductType > consumes (edm::InputTag const &tag)
 
EDGetToken consumes (const TypeToGet &id, edm::InputTag const &tag)
 
template<BranchType B>
EDGetToken consumes (TypeToGet const &id, edm::InputTag const &tag)
 
ConsumesCollector consumesCollector ()
 Use a ConsumesCollector to gather consumes information from helper functions. More...
 
template<typename ProductType , BranchType B = InEvent>
void consumesMany ()
 
void consumesMany (const TypeToGet &id)
 
template<BranchType B>
void consumesMany (const TypeToGet &id)
 
template<typename ProductType , BranchType B = InEvent>
EDGetTokenT< ProductType > mayConsume (edm::InputTag const &tag)
 
EDGetToken mayConsume (const TypeToGet &id, edm::InputTag const &tag)
 
template<BranchType B>
EDGetToken mayConsume (const TypeToGet &id, edm::InputTag const &tag)
 

Protected Attributes

edm::ESHandle< SiPixelCalibConfigurationcalib_
 
std::string calibrationMode_
 
edm::ESHandle< TrackerGeometrygeom_
 
short nTriggers_
 
edm::ESHandle< SiPixelFedCablingMaptheCablingMap_
 

Static Protected Attributes

static std::vector< short > vCalValues_
 

Private Member Functions

void analyze (const edm::Event &, const edm::EventSetup &)
 
void beginJob ()
 
virtual void beginRun (const edm::Run &, const edm::EventSetup &)
 
void beginRun (const edm::EventSetup &iSetup)
 
virtual void calibrationEnd ()
 
virtual void calibrationSetup (const edm::EventSetup &iSetup)
 
virtual bool checkCorrectCalibrationType ()
 
bool checkPixel (uint32_t detid, short row, short column)
 
void endJob ()
 
virtual void newDetID (uint32_t detid)
 

Private Attributes

bool createOutputFile_
 
DQMStoredaqBE_
 
std::map< uint32_t, std::string > detIdNames_
 
std::map< uint32_t, int > detIdsEntered_
 
uint32_t eventCounter_
 
SiPixelFolderOrganizerfolderMaker_
 
std::string outputFileName_
 
std::vector< uint32_t > runnumbers_
 
edm::InputTag siPixelCalibDigiProducer_
 
SiPixelHistogramIdtheHistogramIdWorker_
 
edm::EDGetTokenT< edm::DetSetVector< SiPixelCalibDigi > > tPixelCalibDigi
 

Additional Inherited Members

- Public Types inherited from edm::EDAnalyzer
typedef EDAnalyzer ModuleType
 
- Public Types inherited from edm::EDConsumerBase
typedef ProductLabels Labels
 

Detailed Description

Description: Base class for Pixel calibrations

Implementation: <Notes on="" implementation>="">

Definition at line 67 of file SiPixelOfflineCalibAnalysisBase.h.

Constructor & Destructor Documentation

SiPixelOfflineCalibAnalysisBase::SiPixelOfflineCalibAnalysisBase ( const edm::ParameterSet iConfig)
explicit

Definition at line 36 of file SiPixelOfflineCalibAnalysisBase.cc.

References createOutputFile_, daqBE_, folderMaker_, edm::ParameterSet::getParameter(), edm::ParameterSet::getUntrackedParameter(), outputFileName_, siPixelCalibDigiProducer_, AlCaHLTBitMon_QueryRunRegistry::string, and tPixelCalibDigi.

37 {
38  siPixelCalibDigiProducer_ = iConfig.getParameter<edm::InputTag>("DetSetVectorSiPixelCalibDigiTag");
39  createOutputFile_ = iConfig.getUntrackedParameter<bool>("saveFile",false);
40  outputFileName_ = iConfig.getParameter<std::string>("outputFileName");
43  tPixelCalibDigi = consumes <edm::DetSetVector<SiPixelCalibDigi> > (siPixelCalibDigiProducer_);
44 
45 }
T getParameter(std::string const &) const
T getUntrackedParameter(std::string const &, T const &) const
edm::EDGetTokenT< edm::DetSetVector< SiPixelCalibDigi > > tPixelCalibDigi
SiPixelOfflineCalibAnalysisBase::~SiPixelOfflineCalibAnalysisBase ( )

Definition at line 52 of file SiPixelOfflineCalibAnalysisBase.cc.

53 {
54 }
SiPixelOfflineCalibAnalysisBase::SiPixelOfflineCalibAnalysisBase ( )

Definition at line 47 of file SiPixelOfflineCalibAnalysisBase.cc.

References Exception.

48 {
49  throw cms::Exception("") << "ERROR: Classes derived from SiPixelOfflineCalibAnalysisBase must call SiPixelOfflineCalibAnalysisBase::SiPixelOfflineCalibAnalysisBase(const edm::ParameterSet& iConfig) from their constructor." << std::endl;
50 }

Member Function Documentation

void SiPixelOfflineCalibAnalysisBase::addTF1ToDQMMonitoringElement ( MonitorElement ele,
TF1 *  func 
)

Definition at line 333 of file SiPixelOfflineCalibAnalysisBase.cc.

References DEFINE_FWK_MODULE, and MonitorElement::getTH1().

333  {
334 
335  if(func){
336  ele->getTH1()->GetListOfFunctions()->Add(func);
337  }
338  return;
339 }
TH1 * getTH1(void) const
void SiPixelOfflineCalibAnalysisBase::analyze ( const edm::Event iEvent,
const edm::EventSetup iSetup 
)
private

Definition at line 63 of file SiPixelOfflineCalibAnalysisBase.cc.

References edm::DetSetVector< T >::begin(), calib_, calibrationSetup(), checkCorrectCalibrationType(), detIdNames_, detIdsEntered_, doFits(), edm::DetSetVector< T >::end(), eventCounter_, geom_, edm::EventSetup::get(), edm::Event::getByToken(), edm::EventBase::id(), newDetID(), edm::EventID::run(), cond::runnumber, runnumbers_, theCablingMap_, tPixelCalibDigi, and translateDetIdToString().

64 {
65  using namespace edm;
66 
67  iSetup.get<TrackerDigiGeometryRecord>().get( geom_ );
70  if(eventCounter_==0)
71  this->calibrationSetup(iSetup);
72  eventCounter_++;
73 
74  // check first if you're analyzing the right type of calibration
76  return;
77 
78  uint32_t runnumber=iEvent.id().run();
79  if(runnumbers_.size()==0)
80  runnumbers_.push_back(runnumber);
81  else{
82  bool foundnumber=false;
83  for(size_t iter=0; iter<runnumbers_.size() && !foundnumber; ++ iter){
84  if(runnumbers_[iter]==runnumber){
85  foundnumber=true;
86  continue;
87  }
88  }
89  if(!foundnumber)
90  runnumbers_.push_back(runnumber);
91  }
92 
94  iEvent.getByToken( tPixelCalibDigi, thePlaquettes);
95 
97 
98  //loop over the plaquettes pulsed in this pattern
99  for(digiIter=thePlaquettes->begin(); digiIter!=thePlaquettes->end(); ++digiIter)
100  {
101  uint32_t detId = digiIter->id;
102  //check to see if this detID has not been encountered. If not, run the newDetID (pure virtual) function
103  if (detIdsEntered_.find(detId) == detIdsEntered_.end())
104  {
105  detIdsEntered_.insert(std::make_pair(detId, 0));
106  detIdNames_.insert(std::make_pair(detId, translateDetIdToString(detId)));
107  newDetID(detId);
108  }
110  //loop over pixels pulsed in the current plaquette
111  for(ipix=digiIter->data.begin(); ipix!=digiIter->end(); ++ipix)
112  {
113  //called derived function to fit this curve
114  this->doFits(detId, ipix);
115  }
116  }
117 
118 }
RunNumber_t run() const
Definition: EventID.h:39
edm::ESHandle< SiPixelCalibConfiguration > calib_
bool getByToken(EDGetToken token, Handle< PROD > &result) const
Definition: Event.h:460
std::map< uint32_t, std::string > detIdNames_
std::string translateDetIdToString(uint32_t detid)
edm::ESHandle< TrackerGeometry > geom_
virtual void calibrationSetup(const edm::EventSetup &iSetup)
iterator end()
Return the off-the-end iterator.
Definition: DetSetVector.h:361
const T & get() const
Definition: EventSetup.h:55
edm::EventID id() const
Definition: EventBase.h:60
HLT enums.
virtual bool doFits(uint32_t detid, std::vector< SiPixelCalibDigi >::const_iterator ipix)
iterator begin()
Return an iterator to the first DetSet.
Definition: DetSetVector.h:346
collection_type::const_iterator const_iterator
Definition: DetSet.h:33
collection_type::const_iterator const_iterator
Definition: DetSetVector.h:104
edm::ESHandle< SiPixelFedCablingMap > theCablingMap_
edm::EDGetTokenT< edm::DetSetVector< SiPixelCalibDigi > > tPixelCalibDigi
void SiPixelOfflineCalibAnalysisBase::beginJob ( void  )
privatevirtual

Reimplemented from edm::EDAnalyzer.

Definition at line 137 of file SiPixelOfflineCalibAnalysisBase.cc.

138 {
139 
140 }
void SiPixelOfflineCalibAnalysisBase::beginRun ( const edm::Run ,
const edm::EventSetup iSetup 
)
privatevirtual

Definition at line 120 of file SiPixelOfflineCalibAnalysisBase.cc.

References calib_, calibrationMode_, calibrationSetup(), gather_cfg::cout, geom_, edm::EventSetup::get(), SiPixelCalibConfiguration::getCalibrationMode(), SiPixelCalibConfiguration::getNTriggers(), SiPixelCalibConfiguration::getVCalValues(), edm::InputTag::label(), nTriggers_, siPixelCalibDigiProducer_, theCablingMap_, theHistogramIdWorker_, and vCalValues_.

121 {
122  //load the calibration information from the database
123  iSetup.get<SiPixelCalibConfigurationRcd>().get(calib_);
124  iSetup.get<TrackerDigiGeometryRecord>().get( geom_ );
126 
130  std::cout << "!!!! in beginRun" << std::endl;
131  edm::LogInfo("SiPixelOfflineCalibAnalysisBase") << "Calibration file loaded. Mode: " << calibrationMode_ << " nTriggers: " << nTriggers_ << " Vcal steps: " << vCalValues_.size() << std::endl;
132  //call calibrationSetup virtual function
133  this->calibrationSetup(iSetup);
135 }
edm::ESHandle< SiPixelCalibConfiguration > calib_
edm::ESHandle< TrackerGeometry > geom_
virtual void calibrationSetup(const edm::EventSetup &iSetup)
const T & get() const
Definition: EventSetup.h:55
std::string const & label() const
Definition: InputTag.h:36
std::string getCalibrationMode() const
const std::vector< short > getVCalValues() const
edm::ESHandle< SiPixelFedCablingMap > theCablingMap_
void SiPixelOfflineCalibAnalysisBase::beginRun ( const edm::EventSetup iSetup)
private
MonitorElement * SiPixelOfflineCalibAnalysisBase::bookDQMHistogram1D ( uint32_t  detid,
std::string  name,
std::string  title,
int  nchX,
double  lowX,
double  highX 
)
MonitorElement * SiPixelOfflineCalibAnalysisBase::bookDQMHistogram1D ( uint32_t  detid,
std::string  name,
std::string  title,
int  nchX,
float *  xbinsize 
)
MonitorElement * SiPixelOfflineCalibAnalysisBase::bookDQMHistogram2D ( uint32_t  detid,
std::string  name,
std::string  title,
int  nchX,
double  lowX,
double  highX,
int  nchY,
double  lowY,
double  highY 
)

Definition at line 203 of file SiPixelOfflineCalibAnalysisBase.cc.

References daqBE_, SiPixelHistogramId::setHistoId(), AlCaHLTBitMon_QueryRunRegistry::string, and theHistogramIdWorker_.

204 {
206  return daqBE_->book2D(hid, title, nchX, lowX, highX, nchY, lowY, highY);
207 }
std::string setHistoId(std::string variable, uint32_t &rawId)
Set Histogram Id.
MonitorElement * SiPixelOfflineCalibAnalysisBase::bookDQMHistoPlaquetteSummary2D ( uint32_t  detid,
std::string  name,
std::string  title 
)

Definition at line 209 of file SiPixelOfflineCalibAnalysisBase.cc.

References daqBE_, geom_, TrackerGeometry::idToDet(), PixelTopology::ncolumns(), PixelTopology::nrows(), SiPixelHistogramId::setHistoId(), PixelGeomDetUnit::specificTopology(), AlCaHLTBitMon_QueryRunRegistry::string, and theHistogramIdWorker_.

Referenced by SiPixelIsAliveCalibration::newDetID(), SiPixelGainCalibrationAnalysis::newDetID(), and SiPixelSCurveCalibrationAnalysis::newDetID().

209  {
210  DetId detId(detid);
211  const TrackerGeometry &theTracker(*geom_);
212  const PixelGeomDetUnit *theGeomDet = dynamic_cast<const PixelGeomDetUnit*> ( theTracker.idToDet(detId) );
213  int maxcol = theGeomDet->specificTopology().ncolumns();
214  int maxrow = theGeomDet->specificTopology().nrows();
215 
216 
218  return daqBE_->book2D(hid,title,maxcol,0,maxcol,maxrow,0,maxrow);
219 }
virtual int nrows() const =0
edm::ESHandle< TrackerGeometry > geom_
std::string setHistoId(std::string variable, uint32_t &rawId)
Set Histogram Id.
Definition: DetId.h:18
virtual const PixelTopology & specificTopology() const
Returns a reference to the pixel proxy topology.
virtual int ncolumns() const =0
void SiPixelOfflineCalibAnalysisBase::calibrationEnd ( )
privatevirtual

Reimplemented in SiPixelSCurveCalibrationAnalysis, SiPixelGainCalibrationAnalysis, and SiPixelIsAliveCalibration.

Definition at line 270 of file SiPixelOfflineCalibAnalysisBase.cc.

Referenced by endJob().

271 {
272  // do nothing
273 }
void SiPixelOfflineCalibAnalysisBase::calibrationSetup ( const edm::EventSetup iSetup)
privatevirtual

Reimplemented in SiPixelSCurveCalibrationAnalysis, SiPixelGainCalibrationAnalysis, and SiPixelIsAliveCalibration.

Definition at line 265 of file SiPixelOfflineCalibAnalysisBase.cc.

Referenced by analyze(), and beginRun().

266 {
267  //do nothing
268 }
bool SiPixelOfflineCalibAnalysisBase::checkCorrectCalibrationType ( )
privatevirtual

Reimplemented in SiPixelSCurveCalibrationAnalysis, SiPixelGainCalibrationAnalysis, and SiPixelIsAliveCalibration.

Definition at line 237 of file SiPixelOfflineCalibAnalysisBase.cc.

Referenced by analyze().

238 {
239  return true;
240 }
bool SiPixelOfflineCalibAnalysisBase::checkPixel ( uint32_t  detid,
short  row,
short  column 
)
private

Definition at line 282 of file SiPixelOfflineCalibAnalysisBase.cc.

References calib_, sipixelobjects::ElectronicIndex::dcol, sipixelobjects::LocalPixel::DcolPxid::dcol, gamEcalExtractorBlocks_cff::detector, SiPixelCalibConfiguration::getColumnPattern(), SiPixelCalibConfiguration::getRowPattern(), create_public_lumi_plots::loc, edm::ESHandle< T >::product(), sipixelobjects::ElectronicIndex::pxid, sipixelobjects::LocalPixel::DcolPxid::pxid, sipixelobjects::LocalPixel::rocCol(), sipixelobjects::LocalPixel::rocRow(), and theCablingMap_.

283 {
284  // finds the fed ID:
285  int thefedid = -1;
286  for(int fedid=0; fedid<=40 && thefedid==-1; ++fedid)
287  {
289  if(converter.hasDetUnit(detid))
290  {
291  thefedid=fedid;
292  }
293  }
294  if(thefedid==-1)
295  return false; // fed ID not associated with det ID. No pattern check possible
296 
297  SiPixelFrameConverter formatter(theCablingMap_.product(),thefedid);
300 
301  formatter.toCabling(cabling,detector);
302  // cabling should now contain cabling.roc and cabling.dcol and cabling.pxid
303 
304  // however, the coordinates now need to be converted from dcl, pxid to the row,col coordinates used in the calibration info
306  loc.dcol = cabling.dcol;
307  loc.pxid = cabling.pxid;
308  sipixelobjects::LocalPixel locpixel(loc);
309  short localrow = locpixel.rocRow();
310  short localcol = locpixel.rocCol();
311 
312  // now get the patterns from the calib object:
313  std::vector<short> calibcols = calib_->getColumnPattern();
314  std::vector<short> calibrows = calib_->getRowPattern();
315  // first check rows:
316  for(size_t irow=0; irow<calibrows.size(); ++irow)
317  {
318  if(calibrows[irow]==localrow)
319  {
320  // check the columns
321  for(size_t icol=0; icol<calibcols.size(); ++icol)
322  {
323  if(calibcols[icol]==localcol)
324  return true;
325  }
326  }
327  }
328 
329  return false;
330 }
std::vector< short > getRowPattern() const
edm::ESHandle< SiPixelCalibConfiguration > calib_
identify pixel inside single ROC
Definition: LocalPixel.h:7
double collumn and pixel ID in double collumn representation
Definition: LocalPixel.h:22
std::vector< short > getColumnPattern() const
col
Definition: cuy.py:1008
edm::ESHandle< SiPixelFedCablingMap > theCablingMap_
T const * product() const
Definition: ESHandle.h:86
bool SiPixelOfflineCalibAnalysisBase::doFits ( uint32_t  detid,
std::vector< SiPixelCalibDigi >::const_iterator  ipix 
)
virtual

Reimplemented in SiPixelSCurveCalibrationAnalysis, SiPixelGainCalibrationAnalysis, and SiPixelIsAliveCalibration.

Definition at line 243 of file SiPixelOfflineCalibAnalysisBase.cc.

References cuy::col, gather_cfg::cout, and mps_fire::i.

Referenced by analyze().

244 {
245  short row=ipix->row();
246  short col=ipix->col();
247  std::vector<uint8_t> nentries = ipix->getnentries();
248  std::vector<uint32_t> sum = ipix->getsum();
249  std::vector<uint32_t> sumquares = ipix->getsumsquares();
250  //do nothing
251  //return false;
252  //
253  //DEBUG
254  std::cout << "Row: " << row << " Col: " << col << std::endl;
255  for (unsigned int i = 0; i < sum.size(); i++)
256  {
257  std::cout << sum[i] << " ";
258  }
259  std::cout << std::endl;
260  return false;
261 
262 }
col
Definition: cuy.py:1008
void SiPixelOfflineCalibAnalysisBase::endJob ( void  )
privatevirtual

Reimplemented from edm::EDAnalyzer.

Definition at line 145 of file SiPixelOfflineCalibAnalysisBase.cc.

References calibrationEnd(), createOutputFile_, daqBE_, and outputFileName_.

Referenced by o2olib.O2ORunMgr::executeJob().

145  {
146  this->calibrationEnd();
147  edm::LogInfo("SiPixelOfflineCalibAnalysisBase") << "Running end job... output file name is: " << outputFileName_;
148  if (!outputFileName_.empty() && createOutputFile_)
149  {
150  edm::LogInfo("SiPixelOfflineCalibAnalysisBase") << "Writing ROOT file to: " << outputFileName_ << std::endl;
151  daqBE_->save(outputFileName_);
152  }
153 }
uint32_t& SiPixelOfflineCalibAnalysisBase::EventNumber ( )
inlineprotected
std::vector<uint32_t>& SiPixelOfflineCalibAnalysisBase::getRunNumbers ( )
inline

Definition at line 96 of file SiPixelOfflineCalibAnalysisBase.h.

References runnumbers_.

96 { return runnumbers_;}
const std::vector< short > * SiPixelOfflineCalibAnalysisBase::getVcalValues ( )
static
void SiPixelOfflineCalibAnalysisBase::newDetID ( uint32_t  detid)
privatevirtual

Reimplemented in SiPixelSCurveCalibrationAnalysis, SiPixelGainCalibrationAnalysis, and SiPixelIsAliveCalibration.

Definition at line 275 of file SiPixelOfflineCalibAnalysisBase.cc.

References detIdNames_.

Referenced by analyze().

276 {
277  //do nothing
278  edm::LogInfo("SiPixelOfflineCalibAnalysisBase") << "SiPixelOfflineCalibAnalysisBase - Found new DetID: " << detid << " Name: " << detIdNames_[detid];
279 }
std::map< uint32_t, std::string > detIdNames_
bool SiPixelOfflineCalibAnalysisBase::setDQMDirectory ( std::string  dirName)
bool SiPixelOfflineCalibAnalysisBase::setDQMDirectory ( uint32_t  detID)

Definition at line 229 of file SiPixelOfflineCalibAnalysisBase.cc.

References folderMaker_, and SiPixelFolderOrganizer::setModuleFolder().

230 {
231  return folderMaker_->setModuleFolder(detID,0);
232 }
bool setModuleFolder(const uint32_t &rawdetid=0, int type=0, bool isUpgrade=false)
Set folder name for a module or plaquette.
std::string SiPixelOfflineCalibAnalysisBase::translateDetIdToString ( uint32_t  detid)

Definition at line 164 of file SiPixelOfflineCalibAnalysisBase.cc.

References detIdNames_, PixelEndcapName::name(), PixelBarrelName::name(), convertSQLitetoXML_cfg::output, AlCaHLTBitMon_QueryRunRegistry::string, and DetId::subdetId().

Referenced by analyze(), SiPixelSCurveCalibrationAnalysis::buildACurveHistogram(), SiPixelIsAliveCalibration::calibrationEnd(), SiPixelGainCalibrationAnalysis::doFits(), SiPixelIsAliveCalibration::newDetID(), SiPixelGainCalibrationAnalysis::newDetID(), SiPixelSCurveCalibrationAnalysis::newDetID(), and SiPixelGainCalibrationAnalysis::printSummary().

165 {
166  std::map<uint32_t, std::string>::iterator detNameIter = detIdNames_.find(detid);
167  if (detNameIter != detIdNames_.end()) {
168  return detNameIter->second;
169  }
170  std::string output = "DetID translation error";
171  DetId detId(detid);
172  uint32_t detSubId = detId.subdetId();
173  if (detSubId > 2 || detSubId < 1)
174  {
175  edm::LogError("SiPixelOfflineCalibAnalysisBase") << "ERROR: Expected a pixel detector ID (1 - barrel, 2 - forward) but got " << detSubId << std::endl;
176  return output;
177  }
178  if (detSubId == 2) //FPIX
179  {
180  PixelEndcapName nameworker(detid);
181  output = nameworker.name();
182  } else //BPIX
183  {
184  PixelBarrelName nameworker(detid);
185  output = nameworker.name();
186  }
187  detIdNames_.insert(std::make_pair(detid, output));
188  return output;
189 }
std::map< uint32_t, std::string > detIdNames_
Definition: DetId.h:18

Member Data Documentation

edm::ESHandle<SiPixelCalibConfiguration> SiPixelOfflineCalibAnalysisBase::calib_
protected
std::string SiPixelOfflineCalibAnalysisBase::calibrationMode_
protected
bool SiPixelOfflineCalibAnalysisBase::createOutputFile_
private

Definition at line 117 of file SiPixelOfflineCalibAnalysisBase.h.

Referenced by endJob(), and SiPixelOfflineCalibAnalysisBase().

DQMStore* SiPixelOfflineCalibAnalysisBase::daqBE_
private
std::map<uint32_t, std::string> SiPixelOfflineCalibAnalysisBase::detIdNames_
private

Definition at line 125 of file SiPixelOfflineCalibAnalysisBase.h.

Referenced by analyze(), newDetID(), and translateDetIdToString().

std::map<uint32_t, int> SiPixelOfflineCalibAnalysisBase::detIdsEntered_
private

Definition at line 124 of file SiPixelOfflineCalibAnalysisBase.h.

Referenced by analyze().

uint32_t SiPixelOfflineCalibAnalysisBase::eventCounter_
private

Definition at line 120 of file SiPixelOfflineCalibAnalysisBase.h.

Referenced by analyze(), and EventNumber().

TF1 * SiPixelOfflineCalibAnalysisBase::fitFunction_ = NULL
static
SiPixelFolderOrganizer* SiPixelOfflineCalibAnalysisBase::folderMaker_
private
edm::ESHandle<TrackerGeometry> SiPixelOfflineCalibAnalysisBase::geom_
protected
short SiPixelOfflineCalibAnalysisBase::nTriggers_
protected
std::string SiPixelOfflineCalibAnalysisBase::outputFileName_
private

Definition at line 116 of file SiPixelOfflineCalibAnalysisBase.h.

Referenced by endJob(), and SiPixelOfflineCalibAnalysisBase().

std::vector<uint32_t> SiPixelOfflineCalibAnalysisBase::runnumbers_
private

Definition at line 119 of file SiPixelOfflineCalibAnalysisBase.h.

Referenced by analyze(), and getRunNumbers().

edm::InputTag SiPixelOfflineCalibAnalysisBase::siPixelCalibDigiProducer_
private

Definition at line 127 of file SiPixelOfflineCalibAnalysisBase.h.

Referenced by beginRun(), and SiPixelOfflineCalibAnalysisBase().

edm::ESHandle<SiPixelFedCablingMap> SiPixelOfflineCalibAnalysisBase::theCablingMap_
protected
SiPixelHistogramId* SiPixelOfflineCalibAnalysisBase::theHistogramIdWorker_
private
edm::EDGetTokenT<edm::DetSetVector<SiPixelCalibDigi> > SiPixelOfflineCalibAnalysisBase::tPixelCalibDigi
private

Definition at line 129 of file SiPixelOfflineCalibAnalysisBase.h.

Referenced by analyze(), and SiPixelOfflineCalibAnalysisBase().

std::vector< short > SiPixelOfflineCalibAnalysisBase::vCalValues_
staticprotected