11 using namespace GEMDetLabel;
38 string track_eta_title =
string(
"track_eta")+
";SimTrack |#eta|;# of tracks";
41 for (
unsigned int k = 0 ;
k<3 ;
k++) {
44 string track_phi_title =
string(
"track_phi")+suffix+
";SimTrack #phi;# of tracks";
48 for(
unsigned int i=0 ;
i< 4;
i++) {
52 string sh_eta_title = sh_eta_name+
"; tracks |#eta|; # of tracks";
55 for (
unsigned int k = 0 ;
k<3 ;
k++) {
58 string sh_phi_title = sh_phi_name+
"; tracks #phi; # of tracks";
59 sh_phi[
i][
j][
k] = ibooker.
book1D( (sh_phi_name).c_str(), sh_phi_title.c_str(), 200,-
PI,
PI) ;
96 for (
auto&
t: sim_trks)
101 track_.
pt =
t.momentum().pt();
102 track_.
phi =
t.momentum().phi();
103 track_.
eta =
t.momentum().eta();
106 for(
int i=0 ;
i<3 ;
i++) {
107 for (
int j=0 ;
j<2 ;
j++) {
118 for(
auto d: gem_sh_ids_ch)
121 if (
id.chamber() %2 ==0 ) track_.
hitEven[
id.station()-1] =
true;
122 else if (
id.chamber() %2 ==1 ) track_.
hitOdd[
id.station()-1] =
true;
123 else {
std::cout<<
"Error to get chamber id"<<std::endl;}
124 track_.
gem_sh[
id.station()-1][ (
id.layer()-1)] =
true;
T getParameter(std::string const &) const
T getUntrackedParameter(std::string const &, T const &) const
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 analyze(const edm::Event &e, const edm::EventSetup &) override
void setGeometry(const GEMGeometry &geom)
edm::EDGetToken simTracksToken_
const std::vector< const GEMRegion * > & regions() const
Return a vector of all GEM regions.
MonitorElement * book1D(Args &&...args)
static const std::string l_suffix[4]
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)
static const std::string c_suffix[3]
static const std::string s_suffix[3]
bool isSimTrackGood(const SimTrack &)
std::vector< SimTrack > SimTrackContainer