13 m_detsels(), m_selnames(), m_seltitles(), m_histocluslenangle(),
14 m_tsosy(), m_tsosx(), m_tsosxy(),
15 m_ttrhy(), m_ttrhx(), m_ttrhxy(),
16 m_tsosdy(), m_tsosdx(), m_tsosdxdy()
20 m_2dhistos(iConfig.getUntrackedParameter<bool>(
"wanted2DHistos",
false)),
29 std::vector<edm::ParameterSet> wantedsubds(iConfig.
getParameter<std::vector<edm::ParameterSet> >(
"wantedSubDets"));
31 std::cout <<
"selections found: " << wantedsubds.size() << std::endl;
33 for(std::vector<edm::ParameterSet>::iterator ps=wantedsubds.begin();ps!=wantedsubds.end();++ps) {
44 for(
unsigned int isel=0;isel<
m_detsels.size();++isel) {
50 m_tsosy.push_back(subdir.
make<TH1F>(name.c_str(),title.c_str(),200,-20.,20.));
53 m_tsosx.push_back(subdir.
make<TH1F>(name.c_str(),title.c_str(),200,-20.,20.));
57 m_tsosxy.push_back(subdir.
make<TH2F>(name.c_str(),title.c_str(),200,-20.,20.,200,-20.,20.));
62 m_tsosprojx.push_back(subdir.
make<TH1F>(name.c_str(),title.c_str(),400,-2.,2.));
65 m_tsosprojy.push_back(subdir.
make<TH1F>(name.c_str(),title.c_str(),400,-2.,2.));
69 m_ttrhy.push_back(subdir.
make<TH1F>(name.c_str(),title.c_str(),200,-20.,20.));
72 m_ttrhx.push_back(subdir.
make<TH1F>(name.c_str(),title.c_str(),200,-20.,20.));
76 m_ttrhxy.push_back(subdir.
make<TH2F>(name.c_str(),title.c_str(),200,-20.,20.,200,-20.,20.));
81 m_tsosdy.push_back(subdir.
make<TH1F>(name.c_str(),title.c_str(),200,-5.,5.));
84 m_tsosdx.push_back(subdir.
make<TH1F>(name.c_str(),title.c_str(),200,-0.1,0.1));
88 m_tsosdxdy.push_back(subdir.
make<TH2F>(name.c_str(),title.c_str(),200,-0.1,0.1,200,-5.,5.));
92 title =
"Cluster Length vs Track Angle " +
m_seltitles[isel];
100 if(hit==0 || !hit->isValid())
return;
104 if(
m_detsels[
i].isSelected(hit->geographicalId())) {
109 m_ttrhy[
i]->Fill(hit->localPosition().y());
110 m_ttrhx[
i]->Fill(hit->localPosition().x());
T getParameter(std::string const &) const
std::vector< std::string > m_selnames
std::vector< TH1F * > m_tsosprojy
std::vector< TH1F * > m_tsosdx
std::vector< TH2F * > m_tsosdxdy
LocalVector localDirection() const
LocalPoint localPosition() const
void fill(const TrajectoryStateOnSurface &tsos, TransientTrackingRecHit::ConstRecHitPointer hit) const
std::vector< TH1F * > m_tsosdy
std::vector< TH1F * > m_tsosprojx
std::vector< TH1F * > m_tsosy
std::vector< std::string > m_seltitles
std::shared_ptr< TrackingRecHit const > ConstRecHitPointer
T * make(const Args &...args) const
make new ROOT object
std::vector< TH1F * > m_tsosx
std::vector< TH1F * > m_ttrhx
TFileDirectory mkdir(const std::string &dir, const std::string &descr="")
create a new subdirectory
std::vector< DetIdSelector > m_detsels
std::vector< TH2F * > m_tsosxy
std::vector< TH2F * > m_histocluslenangle
std::vector< TH2F * > m_ttrhxy
std::vector< TH1F * > m_ttrhy