34 LogDebug(
"GEMDigiTrackMatch")<<
"ibooker set current folder\n";
40 for(
unsigned int j=0 ; j<
nstation ; j++) {
42 string track_eta_title =
string(
"track_eta")+
";SimTrack |#eta|;# of tracks";
45 for (
unsigned int k = 0 ;
k<3 ;
k++) {
48 string track_phi_title =
string(
"track_phi")+suffix+
";SimTrack #phi;# of tracks";
53 for(
unsigned int i=0 ;
i< 4;
i++) {
56 string dg_eta_title = dg_eta_name+
"; tracks |#eta|; # of tracks";
60 string dg_sh_eta_title = dg_sh_eta_name+
"; tracks |#eta|; # of tracks";
64 string pad_eta_title = pad_eta_name+
"; tracks |#eta|; # of tracks";
68 string copad_eta_title = copad_eta_name+
"; tracks |#eta|; # of tracks";
71 for (
unsigned int k = 0 ;
k<3 ;
k++) {
74 string dg_phi_title = dg_phi_name+
"; tracks #phi; # of tracks";
75 dg_phi[
i][j][
k] = ibooker.
book1D( (dg_phi_name).c_str(), dg_phi_title.c_str(), 200, -
PI,
PI) ;
78 string dg_sh_phi_title = dg_sh_phi_name+
"; tracks #phi; # of tracks";
82 string pad_phi_title = pad_phi_name+
"; tracks #phi; # of tracks";
83 pad_phi[
i][j][
k] = ibooker.
book1D( (pad_phi_name).c_str(), pad_phi_title.c_str(), 200, -
PI,
PI) ;
86 string copad_phi_title = copad_phi_name+
"; tracks #phi; # of tracks";
87 copad_phi[
i][j][
k] = ibooker.
book1D( (copad_phi_name).c_str(), copad_phi_title.c_str(), 200, -
PI,
PI) ;
124 for (
auto&
t: sim_trks)
134 track_.
pt =
t.momentum().pt();
135 track_.
phi =
t.momentum().phi();
136 track_.
eta =
t.momentum().eta();
140 for (
int i= 0 ;
i< 3 ;
i++) {
141 for (
int j= 0 ; j<2 ; j++) {
150 for(
auto d: gem_sh_ids_ch)
154 else if (
id.
chamber() %2 ==1 ) track_.
hitOdd[
id.station()-1] =
true;
155 else {
std::cout<<
"Error to get chamber id"<<std::endl;}
157 track_.
gem_sh[
id.station()-1][ (
id.layer()-1)] =
true;
161 const auto gem_dg_ids_ch = match_gd.
chamberIds();
163 for(
auto d: gem_dg_ids_ch)
166 track_.
gem_dg[
id.station()-1][ (
id.layer()-1)] =
true;
169 for(
auto d: gem_pad_ids_ch)
172 track_.
gem_pad[
id.station()-1][ (
id.layer()-1)] =
true;
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
std::set< unsigned int > chamberIdsGEM() const
GEM chamber detIds with SimHits.
edm::EDGetToken simHitsToken_
edm::EDGetToken simVerticesToken_
MonitorElement * pad_phi[4][3][3]
void bookHistograms(DQMStore::IBooker &, edm::Run const &, edm::EventSetup const &) override
void analyze(const edm::Event &e, const edm::EventSetup &) override
MonitorElement * dg_phi[4][3][3]
MonitorElement * copad_phi[4][3][3]
void setGeometry(const GEMGeometry &geom)
static const std::array< std::string, 2 > s_suffix
edm::EDGetToken simTracksToken_
MonitorElement * track_eta[3]
const std::vector< const GEMRegion * > & regions() const
Return a vector of all GEM regions.
MonitorElement * book1D(Args &&...args)
edm::EDGetToken gem_copadToken_
edm::EDGetToken gem_digiToken_
MonitorElement * track_phi[3][3]
void setCurrentFolder(const std::string &fullpath)
MonitorElement * pad_eta[4][3]
T const * product() const
MonitorElement * dg_sh_phi[4][3][3]
GEMDigiTrackMatch(const edm::ParameterSet &ps)
void FillWithTrigger(MonitorElement *me[3], Float_t eta)
MonitorElement * dg_eta[4][3]
std::set< unsigned int > chamberIdsWithPads() const
bool isSimTrackGood(const SimTrack &)
std::set< unsigned int > chamberIds() const
edm::EDGetToken gem_padToken_
std::vector< SimTrack > SimTrackContainer
MonitorElement * dg_sh_eta[4][3]
static const std::array< std::string, 3 > c_suffix
MonitorElement * copad_eta[4][3]