1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
|
#ifndef _CSCL1TPPARAMETERSCONDITIONS_H
#define _CSCL1TPPARAMETERSCONDITIONS_H
#include "FWCore/Framework/interface/ESHandle.h"
#include "FWCore/Framework/interface/ESProducer.h"
#include "FWCore/Framework/interface/Event.h"
#include "FWCore/Framework/interface/EventSetup.h"
#include "FWCore/Framework/interface/EventSetupRecordIntervalFinder.h"
#include "FWCore/Framework/interface/Frameworkfwd.h"
#include "FWCore/Framework/interface/MakerMacros.h"
#include "FWCore/Framework/interface/SourceFactory.h"
#include "FWCore/ParameterSet/interface/ParameterSet.h"
#include <cmath>
#include <memory>
#include "CondFormats/CSCObjects/interface/CSCL1TPParameters.h"
#include "CondFormats/DataRecord/interface/CSCL1TPParametersRcd.h"
#include <DataFormats/MuonDetId/interface/CSCDetId.h>
class CSCL1TPParametersConditions : public edm::ESProducer, public edm::EventSetupRecordIntervalFinder {
public:
CSCL1TPParametersConditions(const edm::ParameterSet &);
~CSCL1TPParametersConditions() override;
inline static CSCL1TPParameters *prefillCSCL1TPParameters();
typedef std::unique_ptr<CSCL1TPParameters> ReturnType;
ReturnType produceCSCL1TPParameters(const CSCL1TPParametersRcd &);
private:
// ----------member data ---------------------------
void setIntervalFor(const edm::eventsetup::EventSetupRecordKey &,
const edm::IOVSyncValue &,
edm::ValidityInterval &) override;
CSCL1TPParameters *CSCl1TPParameters;
};
#include <fstream>
#include <iostream>
#include <vector>
// to workaround plugin library
inline CSCL1TPParameters *CSCL1TPParametersConditions::prefillCSCL1TPParameters() {
CSCL1TPParameters *cnl1tp = new CSCL1TPParameters();
cnl1tp->setAlctFifoTbins(16);
cnl1tp->setAlctFifoPretrig(10);
cnl1tp->setAlctDriftDelay(2);
cnl1tp->setAlctNplanesHitPretrig(3); // was 2, new is 3
cnl1tp->setAlctNplanesHitPattern(4);
cnl1tp->setAlctNplanesHitAccelPretrig(3); // was 2, new is 3
cnl1tp->setAlctNplanesHitAccelPattern(4);
cnl1tp->setAlctTrigMode(2);
cnl1tp->setAlctAccelMode(0);
cnl1tp->setAlctL1aWindowWidth(7);
cnl1tp->setClctFifoTbins(12);
cnl1tp->setClctFifoPretrig(7);
cnl1tp->setClctHitPersist(4); // was 6, new is 4
cnl1tp->setClctDriftDelay(2);
cnl1tp->setClctNplanesHitPretrig(3); // was 2, new is 3
cnl1tp->setClctNplanesHitPattern(4);
cnl1tp->setClctPidThreshPretrig(2);
cnl1tp->setClctMinSeparation(10);
return cnl1tp;
}
#endif
|