|
void | analyze (const edm::Event &e, const edm::EventSetup &) override |
|
void | bookHistograms (DQMStore::IBooker &, edm::Run const &, edm::EventSetup const &) override |
|
| GEMRecHitTrackMatch (const edm::ParameterSet &ps) |
|
| ~GEMRecHitTrackMatch () override |
|
void | buildLUT (const int maxChamberId) |
|
void | FillWithTrigger (MonitorElement *me[3], Float_t eta) |
|
void | FillWithTrigger (MonitorElement *me[3][3], Float_t eta, Float_t phi, bool odd[3], bool even[3]) |
|
void | FillWithTrigger (MonitorElement *me[4][3], bool array[3][2], Float_t value) |
|
void | FillWithTrigger (MonitorElement *me[4][3][3], bool array[3][2], Float_t eta, Float_t phi, bool odd[3], bool even[3]) |
|
| GEMTrackMatch (const edm::ParameterSet &cfg) |
|
std::pair< int, int > | getClosestChambers (const int maxChamberId, int region, float phi) |
|
std::pair< double, double > | getEtaRange (int station, int chamber) |
|
std::pair< double, double > | getEtaRangeForPhi (int station) |
|
bool | isSimTrackGood (const SimTrack &) |
|
void | setGeometry (const GEMGeometry &geom) |
|
| ~GEMTrackMatch () override |
|
void | accumulate (edm::Event const &event, edm::EventSetup const &setup) final |
|
virtual void | analyze (edm::Event const &, edm::EventSetup const &) |
|
void | beginLuminosityBlock (edm::LuminosityBlock const &lumi, edm::EventSetup const &setup) final |
|
void | beginRun (edm::Run const &run, edm::EventSetup const &setup) final |
|
virtual void | dqmBeginLuminosityBlock (edm::LuminosityBlock const &, edm::EventSetup const &) |
|
virtual void | dqmBeginRun (edm::Run const &, edm::EventSetup const &) |
|
| DQMEDAnalyzer () |
|
virtual void | dqmEndLuminosityBlock (edm::LuminosityBlock const &, edm::EventSetup const &) |
|
virtual void | dqmEndRun (edm::Run const &, edm::EventSetup const &) |
|
void | endLuminosityBlock (edm::LuminosityBlock const &, edm::EventSetup const &) final |
|
void | endLuminosityBlockProduce (edm::LuminosityBlock &lumi, edm::EventSetup const &setup) final |
|
void | endRun (edm::Run const &, edm::EventSetup const &) final |
|
void | endRunProduce (edm::Run &run, edm::EventSetup const &setup) final |
|
virtual bool | getCanSaveByLumi () |
|
| EDProducer ()=default |
|
SerialTaskQueue * | globalLuminosityBlocksQueue () final |
|
SerialTaskQueue * | globalRunsQueue () final |
|
bool | hasAbilityToProduceInBeginLumis () const final |
|
bool | hasAbilityToProduceInBeginRuns () const final |
|
bool | hasAbilityToProduceInEndLumis () const final |
|
bool | hasAbilityToProduceInEndRuns () const final |
|
bool | wantsGlobalLuminosityBlocks () const final |
|
bool | wantsGlobalRuns () const final |
|
| EDProducerBase () |
|
ModuleDescription const & | moduleDescription () const |
|
bool | wantsStreamLuminosityBlocks () const |
|
bool | wantsStreamRuns () const |
|
| ~EDProducerBase () override |
|
void | callWhenNewProductsRegistered (std::function< void(BranchDescription const &)> const &func) |
|
std::vector< edm::ProductResolverIndex > const & | indiciesForPutProducts (BranchType iBranchType) const |
|
| ProducerBase () |
|
std::vector< edm::ProductResolverIndex > const & | putTokenIndexToProductResolverIndex () const |
|
void | registerProducts (ProducerBase *, ProductRegistry *, ModuleDescription const &) |
|
std::function< void(BranchDescription const &)> | registrationCallback () const |
| used by the fwk to register list of products More...
|
|
void | resolvePutIndicies (BranchType iBranchType, ModuleToResolverIndicies const &iIndicies, std::string const &moduleLabel) |
|
| ~ProducerBase () noexcept(false) 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 const &)=delete |
|
| EDConsumerBase (EDConsumerBase &&)=default |
|
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 const & | operator= (EDConsumerBase const &)=delete |
|
EDConsumerBase & | operator= (EDConsumerBase &&)=default |
|
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) |
|
|
typedef dqm::reco::DQMStore | DQMStore |
|
typedef dqm::reco::MonitorElement | MonitorElement |
|
typedef EDProducerBase | ModuleType |
|
using | ModuleToResolverIndicies = std::unordered_multimap< std::string, std::tuple< edm::TypeID const *, const char *, edm::ProductResolverIndex >> |
|
typedef ProductRegistryHelper::TypeLabelList | TypeLabelList |
|
typedef ProductLabels | Labels |
|
static const std::string & | baseType () |
|
static void | fillDescriptions (ConfigurationDescriptions &descriptions) |
|
static void | prevalidate (ConfigurationDescriptions &descriptions) |
|
ProducesCollector | producesCollector () |
|
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 ESProduct , typename ESRecord , Transition Tr = Transition::Event> |
auto | esConsumes () |
|
template<typename ESProduct , typename ESRecord , Transition Tr = Transition::Event> |
auto | esConsumes (ESInputTag const &tag) |
|
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) |
|
edm::ParameterSet | cfg_ |
|
float | chamberHeight_ |
|
bool | detailPlot_ |
|
std::vector< double > | etaRangeForPhi |
|
const GEMGeometry * | gem_geom_ |
|
float | maxEta_ |
|
float | minEta_ |
|
float | minPt_ |
|
std::pair< std::vector< float >, std::vector< int > > | negativeLUT_ |
|
unsigned int | nstation |
|
std::pair< std::vector< float >, std::vector< int > > | positiveLUT_ |
|
float | radiusCenter_ |
|
edm::EDGetToken | simHitsToken_ |
|
edm::EDGetToken | simTracksToken_ |
|
edm::EDGetToken | simVerticesToken_ |
|
int | useRoll_ |
|
edm::EDPutTokenT< DQMToken > | lumiToken_ |
|
edm::EDPutTokenT< DQMToken > | runToken_ |
|
Definition at line 15 of file GEMRecHitTrackMatch.h.
Implements GEMTrackMatch.
Definition at line 83 of file GEMRecHitTrackMatch.cc.
References begin, GEMTrackMatch::cfg_, relativeConstraints::chamber, GEMRecHitMatcher::chamberIds(), SimHitMatcher::chamberIdsGEM(), ztail::d, end, MySimTrack::eta, ntuplemaker::fill, GEMTrackMatch::FillWithTrigger(), gem_recHitToken_, MySimTrack::gem_rh, MySimTrack::gem_sh, relativeConstraints::geom, edm::EventSetup::get(), edm::Event::getByToken(), MySimTrack::hitEven, MySimTrack::hitOdd, mps_fire::i, triggerObjects_cff::id, GEMTrackMatch::isSimTrackGood(), edm::HandleBase::isValid(), dqmiolumiharvest::j, MySimTrack::phi, edm::Handle< T >::product(), MySimTrack::pt, rh_eta, rh_phi, rh_sh_eta, rh_sh_phi, HLTBitAnalyser_cfi::simhits, GEMTrackMatch::simHitsToken_, GEMTrackMatch::simTracksToken_, GEMTrackMatch::simVerticesToken_, OrderedSet::t, track_eta, and track_phi.
84 edm::LogInfo(
"GEMRecHitTrackMatch") <<
"GEM RecHitTrackMatch :: analyze" << std::endl;
104 for (
auto &
t : sim_trks) {
115 track_.
pt =
t.momentum().pt();
117 track_.
phi =
t.momentum().phi();
118 track_.
eta =
t.momentum().eta();
122 for (
int i = 0;
i < 3;
i++) {
123 for (
int j = 0;
j < 2;
j++) {
131 for (
auto d : gem_sh_ids_ch) {
134 track_.
hitEven[
id.station() - 1] =
true;
135 else if (
id.
chamber() % 2 == 1)
136 track_.
hitOdd[
id.station() - 1] =
true;
138 edm::LogInfo(
"GEMRecHitTrackMatch") <<
"Error to get chamber id" << std::endl;
141 track_.
gem_sh[
id.station() - 1][(
id.layer() - 1)] =
true;
144 const auto gem_rh_ids_ch = match_rh.
chamberIds();
146 for (
auto d : gem_rh_ids_ch) {
148 track_.
gem_rh[
id.station() - 1][(
id.layer() - 1)] =
true;
std::set< unsigned int > chamberIds() const
MonitorElement * rh_phi[4][3][3]
MonitorElement * track_phi[3][3]
std::set< unsigned int > chamberIdsGEM() const
GEM chamber detIds with SimHits.
edm::EDGetToken simHitsToken_
edm::EDGetToken simVerticesToken_
MonitorElement * rh_sh_phi[4][3][3]
MonitorElement * rh_sh_eta[4][3]
edm::EDGetToken simTracksToken_
edm::EDGetToken gem_recHitToken_
T const * product() const
MonitorElement * track_eta[3]
void FillWithTrigger(MonitorElement *me[3], Float_t eta)
MonitorElement * rh_eta[4][3]
bool isSimTrackGood(const SimTrack &)
std::vector< SimTrack > SimTrackContainer
Implements DQMEDAnalyzer.
Definition at line 25 of file GEMRecHitTrackMatch.cc.
References dqm::dqmstoreimpl::DQMStore::IBooker::book1D(), GEMDetLabel::c_suffix, relativeConstraints::geom, edm::EventSetup::get(), mps_fire::i, dqmiolumiharvest::j, dqmdumpme::k, GEMDetLabel::l_suffix, GEMTrackMatch::maxEta_, GEMTrackMatch::minEta_, GEMTrackMatch::nstation, Pi, PI, GEMGeometry::regions(), rh_eta, rh_phi, rh_sh_eta, rh_sh_phi, GEMDetLabel::s_suffix, dqm::dqmstoreimpl::DQMStore::IBooker::setCurrentFolder(), GEMTrackMatch::setGeometry(), AlCaHLTBitMon_QueryRunRegistry::string, createPayload::suffix, track_eta, and track_phi.
28 edm::LogInfo(
"GEMRecHitTrackMatch") <<
"GEM RecHitTrackMatch :: bookHistograms" << std::endl;
32 edm::LogInfo(
"GEMRecHitTrackMatch") <<
"GEM RecHitTrackMatch :: about to set the geometry" << std::endl;
34 edm::LogInfo(
"GEMRecHitTrackMatch") <<
"GEM RecHitTrackMatch :: successfully set the geometry" << std::endl;
35 edm::LogInfo(
"GEMRecHitTrackMatch") <<
"GEM RecHitTrackMatch :: geom = " << &geom << std::endl;
37 ibooker.setCurrentFolder(
"MuonGEMRecHitsV/GEMRecHitsTask");
38 edm::LogInfo(
"GEMRecHitTrackMatch") <<
"ibooker set current folder\n";
47 string track_eta_title =
string(
"track_eta") +
";SimTrack |#eta|;# of tracks";
50 for (
unsigned int k = 0;
k <
c_suffix.size();
k++) {
53 string track_phi_title =
string(
"track_phi") + suffix +
";SimTrack #phi;# of tracks";
54 track_phi[
j][
k] = ibooker.book1D(track_phi_name.c_str(), track_phi_title.c_str(), 200, -
PI,
PI);
57 for (
unsigned int i = 0;
i <
l_suffix.size();
i++) {
60 string rh_eta_title = rh_eta_name +
"; tracks |#eta|; # of tracks";
64 string rh_sh_eta_title = rh_sh_eta_name +
"; tracks |#eta|; # of tracks";
67 for (
unsigned int k = 0;
k <
c_suffix.size();
k++) {
70 string rh_phi_title = rh_phi_name +
"; tracks #phi; # of tracks";
71 rh_phi[
i][
j][
k] = ibooker.book1D((rh_phi_name).c_str(), rh_phi_title.c_str(), 200, -
PI,
PI);
74 string rh_sh_phi_title = rh_sh_phi_name +
"; tracks #phi; # of tracks";
75 rh_sh_phi[
i][
j][
k] = ibooker.book1D((rh_sh_phi_name).c_str(), rh_sh_phi_title.c_str(), 200, -
PI,
PI);
static const std::array< std::string, 4 > l_suffix
MonitorElement * rh_phi[4][3][3]
MonitorElement * track_phi[3][3]
MonitorElement * rh_sh_phi[4][3][3]
void setGeometry(const GEMGeometry &geom)
MonitorElement * rh_sh_eta[4][3]
static const std::array< std::string, 2 > s_suffix
const std::vector< const GEMRegion * > & regions() const
Return a vector of all GEM regions.
MonitorElement * track_eta[3]
MonitorElement * rh_eta[4][3]
static const std::array< std::string, 3 > c_suffix