12 : namePattern_(
pset.getUntrackedParameter<
std::
string>(
"FilenamePattern",
"/tmp/HTB_%06d.root")) {
15 std::vector<edm::ParameterSet>
names =
pset.getUntrackedParameter<std::vector<edm::ParameterSet> >(
"ChunkNames");
16 std::vector<edm::ParameterSet>::iterator
j;
19 int num =
j->getUntrackedParameter<
int>(
"Number");
30 if (
file_ !=
nullptr) {
33 ri_.
setInfo(
"DAQSofwareRelease",
"UNKNOWN -- HcalTBWriter");
50 if (
file_ ==
nullptr) {
63 c->adoptBuffer((ULong64_t*)frd.
data(), frd.
size() / 8);
79 tree_ =
new TTree(
"CMSRAW",
"CMS Common Data Format Tree");
83 for (
int i = 0;
i < 2048;
i++) {
93 snprintf(sname, 64,
"Chunk%03d",
i);
102 if (
name ==
"HCAL_Trigger" ||
name ==
"SliceTest_Trigger")
136 int runno =
id.run();
137 const char* seqid =
"";
138 int eventNo =
id.event();
149 bunchNo = head.
bxID();
uint32_t triggerTime_base
StandardTrgMsgBlk stdBlock
CDFEventInfo * eventInfo_
edm::EDGetTokenT< FEDRawDataCollection > tok_raw_
#define DEFINE_FWK_MODULE(type)
size_t size() const
Lenght of the data buffer in bytes.
struct StandardTrgMsgBlkStruct StandardTrgMsgBlk
const std::string names[nVars_]
void setInfo(const char *key, const char *value)
add some information to the run info
void store(TFile *toFile)
void Set(UInt_t runNo, const char *seqid, ULong64_t eventNo, UInt_t l1aNo, ULong64_t orbitNo, UInt_t bunchNo)
setter routine
std::map< int, int > chunkMap_
HcalTBWriter(const edm::ParameterSet &pset)
Global information about an event such as event number and run number.
uint32_t triggerTime_usec
const FEDRawData & FEDData(int fedid) const
retrieve data for fed
Log< level::Info, false > LogInfo
char runNumberSequenceId[16]
CDFChunk * chunkList_[1024]
void buildTree(const FEDRawDataCollection &raw)
void extractEventInfo(const FEDRawDataCollection &raw, const edm::EventID &id)
struct newExtendedTrgMsgBlkStruct newExtendedTrgMsgBlk
const unsigned char * data() const
Return a const pointer to the beginning of the data buffer.
void analyze(const edm::Event &e, const edm::EventSetup &es) override
std::map< int, std::string > blockToName_