31 LogDebug(
"GEMSimTrackMatch") <<
"ibooker set current folder\n";
39 string track_eta_title =
string(
"track_eta") +
";SimTrack |#eta|;# of tracks";
42 for (
unsigned int k = 0;
k < 3;
k++) {
45 string track_phi_title =
string(
"track_phi") + suffix +
";SimTrack #phi;# of tracks";
49 for (
unsigned int i = 0;
i < 4;
i++) {
53 string sh_eta_title = sh_eta_name +
"; tracks |#eta|; # of tracks";
56 for (
unsigned int k = 0;
k < 3;
k++) {
59 string sh_phi_title = sh_phi_name +
"; tracks #phi; # of tracks";
60 sh_phi[
i][
j][
k] = ibooker.
book1D((sh_phi_name).c_str(), sh_phi_title.c_str(), 200, -
PI,
PI);
89 for (
auto&
t : sim_trks) {
94 track_.
pt =
t.momentum().pt();
95 track_.
phi =
t.momentum().phi();
96 track_.
eta =
t.momentum().eta();
99 for (
int i = 0;
i < 3;
i++) {
100 for (
int j = 0;
j < 2;
j++) {
112 for (
auto d : gem_sh_ids_ch) {
115 track_.
hitEven[
id.station() - 1] =
true;
116 else if (
id.
chamber() % 2 == 1)
117 track_.
hitOdd[
id.station() - 1] =
true;
119 std::cout <<
"Error to get chamber id" << std::endl;
121 track_.
gem_sh[
id.station() - 1][(
id.layer() - 1)] =
true;
MonitorElement * book1D(TString const &name, TString const &title, int const nchX, double const lowX, double const highX)
T getParameter(std::string const &) const
T getUntrackedParameter(std::string const &, T const &) const
static const std::array< std::string, 4 > l_suffix
bool getByToken(EDGetToken token, Handle< PROD > &result) const
MonitorElement * track_eta[3]
std::set< unsigned int > chamberIdsGEM() const
GEM chamber detIds with SimHits.
edm::EDGetToken simHitsToken_
edm::EDGetToken simVerticesToken_
void setCurrentFolder(std::string const &fullpath)
void analyze(const edm::Event &e, const edm::EventSetup &) override
void setGeometry(const GEMGeometry &geom)
static const std::array< std::string, 2 > s_suffix
edm::EDGetToken simTracksToken_
const std::vector< const GEMRegion * > & regions() const
Return a vector of all GEM regions.
GEMSimTrackMatch(const edm::ParameterSet &ps)
MonitorElement * track_phi[3][3]
void bookHistograms(DQMStore::IBooker &, edm::Run const &, edm::EventSetup const &) override
MonitorElement * sh_phi[4][3][3]
T const * product() const
MonitorElement * sh_eta[4][3]
void FillWithTrigger(MonitorElement *me[3], Float_t eta)
bool isSimTrackGood(const SimTrack &)
~GEMSimTrackMatch() override
std::vector< SimTrack > SimTrackContainer
static const std::array< std::string, 3 > c_suffix