7 hltPathNames_ = iConfig.getParameter< std::vector<std::string> > (
"HLTPathNames");
8 simVertexCollection_ = consumes<std::vector<SimVertex> >(
edm::InputTag(
"g4SimHits"));
10 EDConsumerBase::labelsForToken(hlTriggerResults_,
label);
11 hlTriggerResults_Label =
label.module;
13 for(
unsigned int i=0;
i<VertexCollection_.size() ;
i++){
14 EDConsumerBase::labelsForToken(VertexCollection_[
i],
label);
15 VertexCollection_Label.push_back(
label.module);
34 unsigned int found = 1;
36 for (
size_t it=0 ; it < allHltPathNames.size() ; ++it )
68 excp <<
"TriggerResults ==> Empty";
73 if (TriggerResulsHandler.isValid()) trigRes=
true;
75 if ( !trigRes ) { excp <<
"TriggerResults ==> not readable"; excp.
raise(); }
85 const SimVertex simPVh = *(simVertexCollection->begin());
103 if (VertexHandler.isValid()) VertexOK=
true;
108 float value=VertexHandler->begin()->z()-simPV;
112 if(value>maxValue) value=maxValue-0.0001;
113 if(value<-maxValue) value=-maxValue+0.0001;
128 dqmFolder = Form(
"HLT/BTag/Vertex/%s",
hltPathNames_[ind].c_str());
129 H1_.push_back(std::map<std::string, MonitorElement *>());
132 float maxValue = 0.02;
134 float vertexU = maxValue;
135 float vertexL = -maxValue;
136 int vertexBins = 100;
T getParameter(std::string const &) const
bool getByToken(EDGetToken token, Handle< PROD > &result) const
#define DEFINE_FWK_MODULE(type)
const std::vector< std::string > & triggerNames() const
names of trigger paths
auto vector_transform(std::vector< InputType > const &input, Function predicate) -> std::vector< typename std::remove_cv< typename std::remove_reference< decltype(predicate(input.front()))>::type >::type >
void Fill(HcalDetId &id, double val, std::vector< TH2F > &depth)
MonitorElement * book1D(Args &&...args)
const math::XYZTLorentzVectorD & position() const
static std::string const triggerResults
void setCurrentFolder(const std::string &fullpath)
bool init(const edm::Run &iRun, const edm::EventSetup &iSetup, const std::string &processName, bool &changed)
d'tor