32 const char*
l_suffix[4] = {
"_l1",
"_l2",
"_l1or2",
"_l1and2"};
33 const char*
s_suffix[3] = {
"_st1",
"_st2_short",
"_st2_long"};
34 const char*
c_suffix[3] = {
"_even",
"_odd",
"_all"};
38 string track_eta_name =
string(
"track_eta")+s_suffix[
j];
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";
50 for(
unsigned int i=0 ;
i< 4;
i++) {
53 string rh_eta_title = rh_eta_name+
"; tracks |#eta|; # of tracks";
57 string rh_sh_eta_title = rh_sh_eta_name+
"; tracks |#eta|; # of tracks";
60 for (
unsigned int k = 0 ;
k<3 ;
k++) {
63 string rh_phi_title = rh_phi_name+
"; tracks #phi; # of tracks";
64 rh_phi[
i][
j][
k] = ibooker.
book1D( (rh_phi_name).c_str(), rh_phi_title.c_str(), 200, -
PI,
PI) ;
67 string rh_sh_phi_title = rh_sh_phi_name+
"; tracks #phi; # of tracks";
96 for (
auto&
t: sim_trks)
106 track_.
pt =
t.momentum().pt();
108 track_.
phi =
t.momentum().phi();
109 track_.
eta =
t.momentum().eta();
113 for (
int i= 0 ;
i< 3 ;
i++) {
114 for (
int j= 0 ;
j<2 ;
j++) {
122 for(
auto d: gem_sh_ids_ch)
125 if (
id.chamber() %2 ==0 ) track_.
hitEven[
id.station()-1] =
true;
126 else if (
id.chamber() %2 ==1 ) track_.
hitOdd[
id.station()-1] =
true;
127 else {
std::cout<<
"Error to get chamber id"<<std::endl;}
129 track_.
gem_sh[
id.station()-1][ (
id.layer()-1)] =
true;
133 const auto gem_rh_ids_ch = match_rh.
chamberIds();
135 for(
auto d: gem_rh_ids_ch)
138 track_.
gem_rh[
id.station()-1][ (
id.layer()-1)] =
true;
T getParameter(std::string const &) const
T getUntrackedParameter(std::string const &, T const &) const
std::set< unsigned int > chamberIds() const
MonitorElement * rh_phi[4][3][3]
bool getByToken(EDGetToken token, Handle< PROD > &result) const
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]
void setGeometry(const GEMGeometry &geom)
GEMRecHitTrackMatch(const edm::ParameterSet &ps)
void bookHistograms(DQMStore::IBooker &, edm::Run const &, edm::EventSetup const &) override
MonitorElement * rh_sh_eta[4][3]
edm::EDGetToken simTracksToken_
const std::vector< const GEMRegion * > & regions() const
Return a vector of all GEM regions.
MonitorElement * book1D(Args &&...args)
edm::EDGetToken gem_recHitToken_
static const std::string l_suffix[4]
T const * product() const
MonitorElement * track_eta[3]
void FillWithTrigger(MonitorElement *me[3], Float_t eta)
static const std::string c_suffix[3]
void analyze(const edm::Event &e, const edm::EventSetup &) override
MonitorElement * rh_eta[4][3]
static const std::string s_suffix[3]
bool isSimTrackGood(const SimTrack &)
std::vector< SimTrack > SimTrackContainer