|
|
#include <DTt0DBValidation.h>
|
void | analyze (const edm::Event &event, const edm::EventSetup &setup) override |
|
void | beginRun (const edm::Run &run, const edm::EventSetup &setup) override |
| Operations. More...
|
|
| DTt0DBValidation (const edm::ParameterSet &pset) |
| Constructor. More...
|
|
void | endJob () override |
|
void | endRun (edm::Run const &, edm::EventSetup const &) override |
|
| ~DTt0DBValidation () override |
| Destructor. More...
|
|
void | callWhenNewProductsRegistered (std::function< void(BranchDescription const &)> const &func) |
|
| EDAnalyzer () |
|
SerialTaskQueue * | globalLuminosityBlocksQueue () |
|
SerialTaskQueue * | globalRunsQueue () |
|
ModuleDescription const & | moduleDescription () const |
|
std::string | workerType () const |
|
| ~EDAnalyzer () override |
|
std::vector< ConsumesInfo > | consumesInfo () const |
|
void | convertCurrentProcessAlias (std::string const &processName) |
| Convert "@currentProcess" in InputTag process names to the actual current process name. More...
|
|
| EDConsumerBase () |
|
| EDConsumerBase (EDConsumerBase &&)=default |
|
| EDConsumerBase (EDConsumerBase const &)=delete |
|
ESProxyIndex const * | esGetTokenIndices (edm::Transition iTrans) const |
|
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 & | operator= (EDConsumerBase &&)=default |
|
EDConsumerBase const & | operator= (EDConsumerBase const &)=delete |
|
bool | registeredToConsume (ProductResolverIndex, bool, BranchType) const |
|
bool | registeredToConsumeMany (TypeID const &, BranchType) const |
|
ProductResolverIndexAndSkipBit | uncheckedIndexFrom (EDGetToken) const |
|
void | updateLookup (BranchType iBranchType, ProductResolverIndexHelper const &, bool iPrefetchMayGet) |
|
void | updateLookup (eventsetup::ESRecordsToProxyIndices const &) |
|
virtual | ~EDConsumerBase () noexcept(false) |
|
|
static const std::string & | baseType () |
|
static void | fillDescriptions (ConfigurationDescriptions &descriptions) |
|
static void | prevalidate (ConfigurationDescriptions &) |
|
static bool | wantsGlobalLuminosityBlocks () |
|
static bool | wantsGlobalRuns () |
|
static bool | wantsStreamLuminosityBlocks () |
|
static bool | wantsStreamRuns () |
|
EDGetToken | consumes (const TypeToGet &id, edm::InputTag const &tag) |
|
template<typename ProductType , BranchType B = InEvent> |
EDGetTokenT< ProductType > | consumes (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 ESProduct , typename ESRecord , Transition Tr = Transition::Event> |
auto | esConsumes () |
|
template<typename ESProduct , typename ESRecord , Transition Tr = Transition::Event> |
auto | esConsumes (ESInputTag const &tag) |
|
EDGetToken | mayConsume (const TypeToGet &id, edm::InputTag const &tag) |
|
template<BranchType B> |
EDGetToken | mayConsume (const TypeToGet &id, edm::InputTag const &tag) |
|
template<typename ProductType , BranchType B = InEvent> |
EDGetTokenT< ProductType > | mayConsume (edm::InputTag const &tag) |
|
Plot the t0 from the DB
- Author
- G. Mila - INFN Torino
Definition at line 30 of file DTt0DBValidation.h.
◆ DQMStore
◆ MonitorElement
◆ DTt0DBValidation()
◆ ~DTt0DBValidation()
DTt0DBValidation::~DTt0DBValidation |
( |
| ) |
|
|
override |
◆ analyze()
◆ beginRun()
Operations.
Reimplemented from edm::EDAnalyzer.
Definition at line 62 of file DTt0DBValidation.cc.
63 metname_ =
"InterChannelSynchDBValidation";
95 int channelId =
tzero->channelId;
104 <<
" T0 mean (TDC counts): " << t0mean <<
" T0_rms (TDC counts): " << t0rms;
120 int channelId =
tzero->channelId;
129 <<
" T0 mean (TDC counts): " << t0mean <<
" T0_rms (TDC counts): " << t0rms;
131 t0Map_[wireId].push_back(t0mean);
132 t0Map_[wireId].push_back(t0rms);
135 double difference = 0;
139 difference =
t0Map_[(*theMap).first][0] - (*theMap).second[0];
142 DTLayerId layerId = (*theMap).first.layerId();
150 LogTrace(
metname_) <<
"Filling the histo for wire: " << (*theMap).first <<
" difference: " << difference;
151 t0DiffHistos_[layerId]->Fill((*theMap).first.wire(), difference);
References bookHistos(), DTTimeUnits::counts, DTTopology::firstChannel(), edm::get(), DTTopology::lastChannel(), LogTrace, genParticles_cff::map, singleTopDQM_cfi::setup, FrontierCondition_GT_autoExpress_cfi::t0, tzero, DTT0::version(), and makeMuonMisalignmentScenario::wheel.
◆ bookHistos() [1/2]
void DTt0DBValidation::bookHistos |
( |
DTLayerId |
lId, |
|
|
int |
firstWire, |
|
|
int |
lastWire |
|
) |
| |
|
private |
Definition at line 192 of file DTt0DBValidation.cc.
202 stringstream superLayer;
205 layer << lId.
layer();
207 string lHistoName =
"_W" +
wheel.str() +
"_St" +
station.str() +
"_Sec" + sector.str() +
"_SL" + superLayer.str() +
211 "/Sector" + sector.str() +
"/SuperLayer" + superLayer.str());
214 hDifference =
dbe_->
book1D(
"T0Difference" + lHistoName,
215 "difference between the two t0 values",
216 lastWire - firstWire + 1,
References dqm::implementation::IBooker::book1D(), DTSuperLayerId::chamberId(), dbe_, DTLayerId::layer(), LogTrace, DTChamberId::sector(), dqm::implementation::DQMStore::setCurrentFolder(), DTChamberId::station(), relativeConstraints::station, DTSuperLayerId::superlayer(), DTLayerId::superlayerId(), DTChamberId::wheel(), and makeMuonMisalignmentScenario::wheel.
◆ bookHistos() [2/2]
void DTt0DBValidation::bookHistos |
( |
int |
wheel | ) |
|
|
private |
Definition at line 224 of file DTt0DBValidation.cc.
229 "SummaryWrongT0_W" + wh.str(),
"W" + wh.str() +
": summary of wrong t0 differences", 44, 1, 45, 14, 1, 15);
References dqm::implementation::IBooker::book2D(), dbe_, dqm::impl::MonitorElement::setBinLabel(), dqm::implementation::DQMStore::setCurrentFolder(), and makeMuonMisalignmentScenario::wheel.
◆ endJob()
void DTt0DBValidation::endJob |
( |
void |
| ) |
|
|
overridevirtual |
◆ endRun()
◆ dbe_
◆ dtGeom_
◆ labelDB_
std::string DTt0DBValidation::labelDB_ |
|
private |
◆ labelDBRef_
std::string DTt0DBValidation::labelDBRef_ |
|
private |
◆ metname_
std::string DTt0DBValidation::metname_ |
|
private |
◆ outputFileName_
std::string DTt0DBValidation::outputFileName_ |
|
private |
◆ outputMEsInRootFile_
bool DTt0DBValidation::outputMEsInRootFile_ |
|
private |
◆ t0DiffHistos_
◆ t0Map_
std::map<DTWireId, std::vector<float> > DTt0DBValidation::t0Map_ |
|
private |
◆ t0RefMap_
std::map<DTWireId, std::vector<float> > DTt0DBValidation::t0RefMap_ |
|
private |
◆ t0TestName_
std::string DTt0DBValidation::t0TestName_ |
|
private |
◆ tZeroMap_
const DTT0* DTt0DBValidation::tZeroMap_ |
|
private |
◆ tZeroRefMap_
const DTT0* DTt0DBValidation::tZeroRefMap_ |
|
private |
◆ wheelSummary_
edm::ESHandle< DTGeometry > dtGeom_
std::string outputFileName_
std::map< DTWireId, std::vector< float > > t0RefMap_
const std::string & version() const
access version
int superlayer() const
Return the superlayer number (deprecated method name)
void bookHistos(DTLayerId lId, int firstWire, int lastWire)
std::map< int, MonitorElement * > wheelSummary_
int get(int wheelId, int stationId, int sectorId, int slId, int layerId, int cellId, float &t0mean, float &t0rms, DTTimeUnits::type unit) const
int firstChannel() const
Returns the wire number of the first wire.
float getQTresult() const
get test result i.e. prob value
void setCurrentFolder(std::string const &fullpath) override
const std::vector< DQMChannel > & getBadChannels() const
DQM_DEPRECATED void save(std::string const &filename, std::string const &path="")
static const double tzero[3]
const DTLayer * layer(const DTLayerId &id) const
Return a layer given its id.
DTChamberId chamberId() const
Return the corresponding ChamberId.
std::map< DTWireId, std::vector< float > > t0Map_
int lastChannel() const
Returns the wire number of the last wire.
int getStatus() const
get test status
const_iterator end() const
std::map< DTLayerId, MonitorElement * > t0DiffHistos_
MonitorElement * book2D(TString const &name, TString const &title, int nchX, double lowX, double highX, int nchY, double lowY, double highY, FUNC onbooking=NOOP())
DTSuperLayerId superlayerId() const
Return the corresponding SuperLayerId.
const_iterator begin() const
const DTT0 * tZeroRefMap_
const std::string & getMessage() const
get message attached to test
const DTTopology & specificTopology() const
bool outputMEsInRootFile_
int layer() const
Return the layer number.
int wheel() const
Return the wheel number.
int station() const
Return the station number.
std::vector< DTT0Data >::const_iterator const_iterator
Access methods to data.
MonitorElement * book1D(TString const &name, TString const &title, int const nchX, double const lowX, double const highX, FUNC onbooking=NOOP())