7 hltPathNames_ = iConfig.getParameter< std::vector<std::string> > (
"HLTPathNames");
8 simVertexCollection_ = consumes<std::vector<SimVertex> >(iConfig.getParameter<
edm::InputTag> (
"SimVertexCollection"));
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 )
67 edm::LogInfo(
"NoTriggerResults") <<
"TriggerResults ==> Empty";
71 if (TriggerResulsHandler.isValid()) trigRes=
true;
72 if ( !trigRes ) {
edm::LogInfo(
"NoTriggerResults") <<
"TriggerResults ==> not readable";
return;}
80 const SimVertex simPVh = *(simVertexCollection->begin());
95 if (VertexHandler.isValid()>0) VertexOK=
true;
100 float value=VertexHandler->begin()->z()-simPV;
104 if(value>maxValue) value=maxValue-0.0001;
105 if(value<-maxValue) value=-maxValue+0.0001;
120 dqmFolder = Form(
"HLT/BTag/Vertex/%s",
hltPathNames_[ind].c_str());
121 H1_.push_back(std::map<std::string, MonitorElement *>());
124 float maxValue = 0.02;
126 float vertexU = maxValue;
127 float vertexL = -maxValue;
128 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