|
| DTFineDelayCorr (const edm::ParameterSet &ps) |
| Constructor. More...
|
|
virtual | ~DTFineDelayCorr () |
| Destructor. More...
|
|
| DTLocalTriggerBaseTest () |
| Constructor. More...
|
|
virtual | ~DTLocalTriggerBaseTest () |
| Destructor. More...
|
|
void | callWhenNewProductsRegistered (std::function< void(BranchDescription const &)> const &func) |
|
| EDAnalyzer () |
|
ModuleDescription const & | moduleDescription () const |
|
std::string | workerType () const |
|
virtual | ~EDAnalyzer () |
|
| EDConsumerBase () |
|
ProductHolderIndexAndSkipBit | indexFrom (EDGetToken, BranchType, TypeID const &) const |
|
void | itemsMayGet (BranchType, std::vector< ProductHolderIndexAndSkipBit > &) const |
|
void | itemsToGet (BranchType, std::vector< ProductHolderIndexAndSkipBit > &) const |
|
std::vector
< ProductHolderIndexAndSkipBit >
const & | itemsToGetFromEvent () const |
|
void | labelsForToken (EDGetToken iToken, Labels &oLabels) const |
|
void | modulesDependentUpon (const std::string &iProcessName, std::vector< const char * > &oModuleLabels) const |
|
bool | registeredToConsume (ProductHolderIndex, bool, BranchType) const |
|
bool | registeredToConsumeMany (TypeID const &, BranchType) const |
|
void | updateLookup (BranchType iBranchType, ProductHolderIndexHelper const &) |
|
virtual | ~EDConsumerBase () |
|
|
void | beginJob () |
| Begin Job. More...
|
|
void | beginRun (const edm::Run &run, const edm::EventSetup &evSU) |
| Begin Run. More...
|
|
void | endJob () |
| End Job. More...
|
|
void | runClientDiagnostic () |
| DQM Client Diagnostic. More...
|
|
void | writeConsts (const std::string &outputFileName) const |
|
void | analyze (const edm::Event &e, const edm::EventSetup &c) |
| Analyze. More...
|
|
void | beginJob () |
| BeginJob. More...
|
|
void | beginLuminosityBlock (edm::LuminosityBlock const &lumiSeg, edm::EventSetup const &context) |
| Perform begin lumiblock operations. More...
|
|
void | beginRun (edm::Run const &run, edm::EventSetup const &context) |
| BeginRun. More...
|
|
void | bookCmsHistos (std::string hTag, std::string folder="", bool isGlb=false) |
| Book the new MEs (CMS summary) More...
|
|
void | bookSectorHistos (int wheel, int sector, std::string hTag, std::string folder="") |
| Book the new MEs (for each sector) More...
|
|
void | bookWheelHistos (int wheel, std::string hTag, std::string folder="") |
| Book the new MEs (for each wheel) More...
|
|
std::string | category () |
| Get message logger name. More...
|
|
void | endJob () |
| EndJob. More...
|
|
void | endLuminosityBlock (edm::LuminosityBlock const &lumiSeg, edm::EventSetup const &context) |
| Perform client diagnostic in online. More...
|
|
void | endRun (edm::Run const &run, edm::EventSetup const &context) |
| Perform client diagnostic in offline. More...
|
|
std::string | fullName (std::string htype) |
| Create fullname from histo partial name. More...
|
|
template<class T > |
T * | getHisto (MonitorElement *me) |
| Convert ME to Histogram fo type T. More...
|
|
std::string | getMEName (std::string histoTag, std::string subfolder, const DTChamberId &chambid) |
| Get the ME name (by chamber) More...
|
|
std::string | getMEName (std::string histoTag, std::string subfolder, int wh) |
| Get the ME name (by wheel) More...
|
|
std::pair< float, float > | phiRange (const DTChamberId &id) |
| Calculate phi range for histograms. More...
|
|
void | setConfig (const edm::ParameterSet &ps, std::string name) |
| Set configuration variables. More...
|
|
std::string & | topFolder (bool isDCC) |
| Get top folder name. More...
|
|
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) |
|
Definition at line 26 of file DTFineDelayCorr.h.
void DTFineDelayCorr::runClientDiagnostic |
( |
| ) |
|
|
protectedvirtual |
DQM Client Diagnostic.
Implements DTLocalTriggerBaseTest.
Definition at line 86 of file DTFineDelayCorr.cc.
References python.rootplot.argparse::category, gather_cfg::cout, DTChamberId, DTLayerId, DTTopology::firstChannel(), DTConfigPedestals::getOffset(), DTLayer::id(), geometryCSVtoXML::line, timingPdfMaker::mean, TrigPrimClient_cfi::minEntries, DTTimeUnits::ns, DetId::rawId(), DTChamberId::sector(), DTLayer::specificTopology(), DTChamberId::station(), relativeConstraints::station, and DTChamberId::wheel().
87 int coarseDelay = -999;
88 float oldFineDelay = -999;
94 while (getline(oldDelaysFile, line)) {
95 if( line ==
"" || line[0] ==
'#' )
continue;
97 int wheelKey,sectorKey, stationKey;
106 pair<int,float> oldDelays = make_pair(coarseDelay,oldFineDelay);
108 oldDelayMap.insert(make_pair(oldDelayKey,oldDelays));
113 vector<const DTChamber*>::const_iterator chambIt =
muonGeom->chambers().begin();
114 vector<const DTChamber*>::const_iterator chambEnd =
muonGeom->chambers().end();
115 for (; chambIt!=chambEnd; ++chambIt) {
117 uint32_t indexCh = chId.
rawId();
118 int wheel = chId.
wheel();
119 int sector = chId.
sector();
123 vector<float> newDelays;
130 coarseDelay = int(delay/25.);
131 oldFineDelay = delay - coarseDelay * 25.;
140 float newFineDelay = -999;
146 TF1 *funct = t0H->GetFunction(
"gaus");
147 mean = funct->GetParameter(1);
150 mean = t0H->GetMean();
159 float bpFineDelay = (wpFineDelay < 12.5)? (wpFineDelay + 12.5) : (wpFineDelay - 12.5);
161 float diffFineDelays = oldFineDelay + (mean - bpFineDelay);
162 int bxDiff = (int) (diffFineDelays / 25);
163 coarseDelay += bxDiff;
164 newFineDelay = fmodf(diffFineDelays, 25);
173 newDelays.push_back(wheel);
174 newDelays.push_back(sector);
175 newDelays.push_back(station);
176 newDelays.push_back(coarseDelay);
177 newDelays.push_back(newFineDelay);
178 pair< DTChamberId, vector<float> > chDelays;
179 chDelays.first = chId;
180 chDelays.second = newDelays;
edm::ESHandle< DTConfigManager > dtConfig
DTLayerId id() const
Return the DetId of this SL.
std::map< DTChamberId, std::pair< int, float > > oldDelayMap
edm::ESHandle< DTGeometry > muonGeom
int firstChannel() const
Returns the wire number of the first wire.
uint32_t rawId() const
get the raw id
const DTTopology & specificTopology() const
float getOffset(const DTWireId &wire) const
Get wire by wire delay.
MonitorElement * get(const std::string &path) const
get ME from full pathname (e.g. "my/long/dir/my_histo")
std::string category()
Get message logger name.
std::map< DTChamberId, std::vector< float > > delayMap
std::string t0MeanHistoTag
std::string getMEName(std::string histoTag, std::string subfolder, const DTChamberId &chambid)
Get the ME name (by chamber)
edm::ESHandle< DTTPGParameters > worstPhaseMap
std::string oldDelaysInputFile
int station() const
Return the station number.
int wheel() const
Return the wheel number.